Agents/GitHub Copilot
GitHub Copilot logo

GitHub Copilot + GoldRush

by GitHub
IDE
Extension
GitHub Copilot is the most widely-adopted AI coding assistant, available as a VS Code extension and in GitHub.com. With MCP Server support in Copilot Chat, it can query GoldRush APIs to provide context-aware blockchain code suggestions and generate Web3 integrations directly in your editor.

Quick Start

1
Install GitHub Copilot ExtensionInstall the GitHub Copilot extension in VS Code from the marketplace.
2
Install GoldRush CLIQuery onchain data directly from your terminal, useful for testing queries before using them in Copilot.
npm install -g @covalenthq/goldrush-cli
3
Configure GoldRush MCP ServerAdd the MCP server config to your VS Code settings.json or .vscode/mcp.json.
{
  "mcpServers": {
    "goldrush": {
      "command": "npx",
      "args": ["-y", "@covalenthq/goldrush-mcp-server"],
      "env": { "GOLDRUSH_API_KEY": "YOUR_API_KEY" }
    }
  }
}
4
Open Copilot ChatUse Ctrl+Shift+I to open the Copilot Chat panel in VS Code.
5
Query blockchain dataAsk: "Use the GoldRush tools to get token balances for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"

Example Prompts

Get wallet balances on Ethereum using GoldRush
Show me recent transactions for this address on Base
Generate a function to fetch token prices from GoldRush
Create an API route that returns NFT data for a wallet
Add GoldRush SDK to this project and fetch portfolio data
Write a utility that checks token balances across multiple chains
Help me build a transaction history component with GoldRush
Create a typed GoldRush API client for this project

Available MCP Tools (27)

Cross-Chain

multichain_balancesFetch spot and historical balances for an address on up to 10 EVM chains.
multichain_transactionsFetch paginated transactions for up to 10 addresses and 10 chains.
multichain_address_activityLocate chains an address is active on with a single API call.

Balances

token_balancesGet native and ERC20 token balances with spot prices and metadata.
historical_token_balancesGet token balances at a specific block height or date.
historical_portfolio_valueGet daily portfolio balance broken down by token.
erc20_token_transfersGet transfer-in and transfer-out events with historical prices.
token_holdersGet paginated current or historical holders of a token.
native_token_balanceGet native token balance with current market value.

Transactions

transactionFetch a single transaction with decoded log events.
transaction_summaryGet earliest/latest transactions and count for a wallet.
transactions_for_addressGet paginated transactions with decoded logs for an address.
transactions_for_blockGet all transactions in a block with decoded events.

Bitcoin

bitcoin_hd_wallet_balancesGet balances for child addresses from an HD wallet xpub key.
bitcoin_transactionsGet full transaction history for a Bitcoin wallet.
bitcoin_non_hd_wallet_balancesGet balance for a non-HD Bitcoin address.

NFTs

nft_for_addressGet ERC721 and ERC1155 NFTs held by an address.
nft_check_ownershipVerify NFT ownership within a collection.
nft_check_ownership_token_idVerify ownership of a specific NFT by token ID.

Pricing

historical_token_pricesGet historical prices for ERC20 and native tokens.
pool_spot_pricesGet spot prices for a Uniswap V2/V3 pool.

Security

token_approvalsGet token approvals categorized by spender with risk levels.

Utility

gas_pricesGet real-time gas estimates for low, medium, and high speeds.
blockFetch a single block with timestamp, tx count, and miner info.
block_heightsGet block heights within a date range.
log_events_by_addressGet event logs emitted from a contract address.
log_events_by_topicGet event logs by topic hash across all contracts.

GoldRush Agent Skills

GoldRush Agent Skills give AI agents structured context for every endpoint, parameter, and credit cost. View all skills on GitHub →
Install GoldRush Skills
npx skills add covalenthq/goldrush-agent-skills
Available skills
Foundational APIREST endpoints for historical blockchain data. Balances, transactions, NFTs, token prices, security checks, cross-chain queries across 100+ networks.
Streaming APIReal-time GraphQL subscriptions. OHLCV candles, new DEX pairs, wallet activity monitoring, token search, and PnL queries via WebSocket.
x402Pay-per-request access without API keys. Agents pay with stablecoins using the HTTP 402 protocol. No accounts, no rate limits, no key management.
CLITerminal-first blockchain data with native MCP support. 17 commands that work for both humans and AI agents.

Common Workflows

Generate Web3 Functions

1Start typing a function signature related to blockchain data
2Copilot suggests completions using GoldRush SDK patterns
3Accept and iterate with Tab completions
4Use Copilot Chat for more complex multi-step generation

Build API Endpoints

1Ask Copilot Chat to generate API routes for GoldRush data
2It creates endpoints with proper error handling and typing
3Copilot suggests test cases for the endpoints

Code Review with Onchain Context

1Select code that interacts with blockchain data
2Ask Copilot to review it and suggest improvements
3Copilot can use MCP tools to verify API responses match expectations

Add GoldRush to Existing Projects

1Ask Copilot Chat to add GoldRush SDK to your package.json
2Request it to create a GoldRush client utility file
3Have Copilot refactor existing data fetching to use GoldRush

Tips for Success

Use @workspace in Copilot Chat to give full project context
Copilot's inline suggestions work best when you have GoldRush SDK imported
Pin relevant GoldRush types files for better completions
Use Copilot Chat's /explain command to understand GoldRush API responses

GitHub Copilot FAQ

Yes, GitHub Copilot Chat in VS Code supports MCP Servers. Add the GoldRush MCP config to your VS Code settings or project .vscode/mcp.json file.

Troubleshooting

MCP tools not available in Copilot ChatEnsure you're using the latest VS Code and Copilot extension. MCP support requires VS Code 1.99+ and Copilot extension updates.
Copilot suggesting outdated GoldRush patternsPin the latest GoldRush SDK types file in your project. Copilot learns from local project files and will prefer up-to-date patterns.
Rate limit errors in Copilot ChatMCP tool calls count against your GoldRush API limits. Monitor your usage at goldrush.dev/platform/usage and upgrade if needed.

Get Started

Get started with GoldRush API in minutes. Sign up for a free API key and start building.

Support

Explore multiple support options! From FAQs for self-help to real-time interactions on Discord.

Contact Sales

Interested in our professional or enterprise plans? Contact our sales team to learn more.