Loading...
Loading...
GoldRush Foundational API — REST API for historical and near-real-time blockchain data across 100+ chains. Use this skill whenever the user needs wallet token balances, transaction history, NFT holdings, token prices, token approvals, cross-chain activity, block data, portfolio value tracking, or any on-chain data query via REST. This is the default skill for blockchain data lookups, portfolio dashboards, tax tools, compliance checks, block explorers, and any application that fetches historical or current chain data. If the user needs real-time streaming or WebSocket push data, use goldrush-streaming-api instead. If the user needs pay-per-request access without an API key, use goldrush-x402 instead.
npx skill4agent add covalenthq/goldrush-agent-skills goldrush-foundational-apiimport { GoldRushClient } from "@covalenthq/client-sdk";
const client = new GoldRushClient("YOUR_API_KEY");
const resp = await client.BalanceService.getTokenBalancesForWalletAddress(
"eth-mainnet",
"demo.eth"
);
if (!resp.error) {
console.log(resp.data.items);
} else {
console.error(resp.error_message);
}npm install @covalenthq/client-sdkcurl "https://api.covalenthq.com/v1/eth-mainnet/address/demo.eth/balances_v2/" \
-H "Authorization: Bearer YOUR_API_KEY"| Task | Endpoint |
|---|---|
| Check wallet balance | |
| Get native token only (lightweight) | |
| Get recent transactions | |
| Get full transaction history | |
| Look up a single transaction | |
| Get ERC20 transfer history | |
| Get transaction summary/count | |
| Check token approvals (security) | |
| Get NFT holdings | |
| Verify NFT ownership | |
| Get portfolio value over time | |
| Get balance at a specific block | |
| Get token price history | |
| Find which chains a wallet is active on | |
| Get balances across all chains | |
| Get token holders | |
| Get Bitcoin balance (HD wallet) | |
| Get contract event logs | |
| Get block details | |
eth-mainnetethereumEth-MainnetAuthorization: Bearer YOUR_API_KEY0resp.errorresp.data10^contract_decimalsvitalik.ethno-spam=true| File | When to read |
|---|---|
| overview.md | Need API setup details, authentication methods, or SDK quickstart code |
| endpoints-balances.md | Building a balance query — parameters, response schema, Bitcoin-specific endpoints |
| endpoints-transactions.md | Building a transaction query — pagination, decoded logs, block-level queries |
| endpoints-nft-security-crosschain.md | Need NFT metadata, token approvals, or cross-chain activity lookups |
| endpoints-utility.md | Need block data, event logs, gas prices, token prices, or chain metadata |
| integration-guide.md | Need full chain names table, validation rules, error codes, or FAQ answers |
| workflows.md | Planning a multi-step workflow or debugging a common error |