/SKILL.md
Comprehensive blockchain data API integration using GoldRush Foundational and Streaming APIs with TypeScript and Python SDKs
npx skillsauth add themystic07/covalentagentskill Covalent GoldRush API IntegrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
GoldRush is Covalent's blockchain data API suite providing access to structured blockchain data across 100+ chains. This skill enables you to integrate with:
TypeScript/JavaScript:
npm install @covalenthq/client-sdk
Python:
pip3 install covalent-api-sdk
All API calls require a GoldRush API key passed as a Bearer token or when initializing the SDK client.
TypeScript:
import { GoldRushClient } from "@covalenthq/client-sdk";
const client = new GoldRushClient("YOUR_API_KEY");
Python:
from covalent import CovalentClient
client = CovalentClient("YOUR_API_KEY")
The Foundational API provides REST endpoints for structured historical blockchain data.
| Service | TypeScript | Python | Purpose |
|---------|------------|--------|---------|
| Balance | BalanceService | balance_service | Token balances (native, ERC20, NFTs) |
| Transaction | TransactionService | transaction_service | Transaction history and details |
| NFT | NftService | nft_service | NFT ownership, metadata, traits |
| Base | BaseService | base_service | Blocks, logs, chains, gas prices |
| Security | SecurityService | security_service | Token approvals/allowances |
| Pricing | PricingService | pricing_service | Historical token prices |
Fetch native and ERC20 token balances with USD prices.
TypeScript:
const response = await client.BalanceService.getTokenBalancesForWalletAddress(
"eth-mainnet",
"0xYourAddress"
);
if (!response.error) {
for (const token of response.data.items) {
console.log(`${token.contract_ticker_symbol}: ${token.pretty_quote}`);
}
}
Python:
response = client.balance_service.get_token_balances_for_wallet_address(
"eth-mainnet",
"0xYourAddress"
)
if not response.error:
for token in response.data.items:
print(f"{token.contract_ticker_symbol}: {token.pretty_quote}")
Parameters:
chain_name: Chain identifier (e.g., eth-mainnet, matic-mainnet, base-mainnet)wallet_address: Wallet address, ENS name, or Lens handlequote_currency (optional): USD, EUR, GBP, etc.no_spam (optional): Filter spam tokensFetch transaction history with decoded logs.
TypeScript:
const response = await client.TransactionService.getTransactionsForAddressV3(
"eth-mainnet",
"0xYourAddress"
);
for (const tx of response.data.items) {
console.log(`TX: ${tx.tx_hash}`);
console.log(`Value: ${tx.value}`);
console.log(`Gas: ${tx.gas_spent}`);
}
Python:
response = client.transaction_service.get_transactions_for_address_v3(
"eth-mainnet",
"0xYourAddress"
)
for tx in response.data.items:
print(f"TX: {tx.tx_hash}, Value: {tx.value}")
Get wallet age, transaction count, and gas expenditure.
TypeScript:
const response = await client.TransactionService.getTransactionSummary(
"eth-mainnet",
"0xYourAddress"
);
const summary = response.data.items[0];
console.log(`Total Transactions: ${summary.total_count}`);
console.log(`Gas Spent: ${summary.gas_summary.pretty_total_gas_quote}`);
Fetch all NFTs owned by a wallet.
TypeScript:
const response = await client.NftService.getNftsForAddress(
"eth-mainnet",
"0xYourAddress"
);
for (const nft of response.data.items) {
console.log(`Collection: ${nft.contract_name}`);
console.log(`Token ID: ${nft.nft_data?.token_id}`);
}
Python:
response = client.nft_service.get_nfts_for_address(
"eth-mainnet",
"0xYourAddress"
)
for nft in response.data.items:
print(f"Collection: {nft.contract_name}")
Find all chains where an address has activity.
TypeScript:
const response = await client.BaseService.getAddressActivity(
"0xYourAddress"
);
for (const chain of response.data.items) {
console.log(`Active on: ${chain.name} (Chain ID: ${chain.chain_id})`);
console.log(`Last seen: ${chain.last_seen_at}`);
}
Python:
response = client.base_service.get_address_activity("0xYourAddress")
for chain in response.data.items:
print(f"Active on: {chain.name}")
Check token approvals and value-at-risk.
TypeScript:
const response = await client.SecurityService.getApprovals(
"eth-mainnet",
"0xYourAddress"
);
for (const approval of response.data.items) {
console.log(`Token: ${approval.token_address}`);
console.log(`Spender: ${approval.spender_address}`);
console.log(`Value at Risk: ${approval.value_at_risk}`);
}
TypeScript:
const response = await client.PricingService.getTokenPrices(
"eth-mainnet",
"USD",
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
{
from: "2024-01-01",
to: "2024-01-31"
}
);
TypeScript:
const response = await client.BaseService.getLogEventsByAddress(
"eth-mainnet",
"0xContractAddress",
{
startingBlock: 18000000,
endingBlock: 18001000
}
);
TypeScript:
const response = await client.BaseService.getGasPrices("eth-mainnet");
console.log(`Safe: ${response.data.items[0].gas_price}`);
console.log(`Fast: ${response.data.items[1].gas_price}`);
The Streaming API provides real-time blockchain data via GraphQL over WebSocket.
TypeScript:
import {
GoldRushClient,
StreamingChain,
StreamingInterval,
StreamingTimeframe
} from "@covalenthq/client-sdk";
const client = new GoldRushClient(
"YOUR_API_KEY",
{},
{
onConnecting: () => console.log("Connecting..."),
onOpened: () => console.log("Connected!"),
onClosed: () => console.log("Disconnected"),
onError: (error) => console.error("Error:", error),
}
);
| Stream | Purpose | Use Cases | |--------|---------|-----------| | OHLCV Tokens | Token price candles | Trading bots, charts | | OHLCV Pairs | Pair price candles | DEX analytics | | New DEX Pairs | New pair detection | Sniping bots | | Update Pairs | Liquidity updates | Portfolio monitoring | | Wallet Activity | Live transactions | Copy trading |
Real-time price candlestick data.
client.StreamingService.subscribeToOHLCVTokens(
{
chain_name: StreamingChain.BASE_MAINNET,
token_addresses: ["0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b"],
interval: StreamingInterval.ONE_MINUTE,
timeframe: StreamingTimeframe.ONE_HOUR,
},
{
next: (data) => {
console.log("OHLCV:", data);
console.log(`Open: ${data.open}, Close: ${data.close}`);
},
error: (error) => console.error(error),
complete: () => console.log("Stream ended"),
}
);
Detect newly created trading pairs.
client.StreamingService.subscribeToNewDEXPairs(
{
chain_name: StreamingChain.BASE_MAINNET,
dex_name: "UNISWAP_V2",
},
{
next: (pair) => {
console.log("New Pair Detected!");
console.log(`Token: ${pair.base_token.contract_ticker_symbol}`);
console.log(`Address: ${pair.base_token.contract_address}`);
},
error: (error) => console.error(error),
complete: () => console.log("Stream ended"),
}
);
Track wallet transactions in real-time.
client.StreamingService.subscribeToWalletActivity(
{
chain_name: StreamingChain.SOLANA_MAINNET,
wallet_addresses: ["YourSolanaWalletAddress"],
},
{
next: (activity) => {
console.log("Wallet Activity:", activity);
},
error: (error) => console.error(error),
complete: () => console.log("Stream ended"),
}
);
| Chain | DEXes | |-------|-------| | BASE_MAINNET | UNISWAP_V2, UNISWAP_V3, VIRTUALS_V2, CLANKER | | SOLANA_MAINNET | RAYDIUM_AMM, RAYDIUM_CPMM, PUMP_FUN, METEORA_DAMM, METEORA_DLMM | | ETH_MAINNET | UNISWAP_V2, UNISWAP_V3 | | BSC_MAINNET | PANCAKESWAP_V2, PANCAKESWAP_V3 |
Common chain names for the Foundational API:
| Chain | Name | Chain ID |
|-------|------|----------|
| Ethereum | eth-mainnet | 1 |
| Polygon | matic-mainnet | 137 |
| Arbitrum | arbitrum-mainnet | 42161 |
| Optimism | optimism-mainnet | 10 |
| Base | base-mainnet | 8453 |
| BSC | bsc-mainnet | 56 |
| Avalanche | avalanche-mainnet | 43114 |
| Solana | solana-mainnet | (Solana) |
For a complete list, use:
const chains = await client.BaseService.getAllChains();
TypeScript:
const response = await client.BalanceService.getTokenBalancesForWalletAddress(
"eth-mainnet",
"0xAddress"
);
if (response.error) {
console.error(`Error: ${response.error_message}`);
console.error(`Code: ${response.error_code}`);
} else {
// Process response.data
}
Python:
response = client.balance_service.get_token_balances_for_wallet_address(
"eth-mainnet",
"0xAddress"
)
if response.error:
print(f"Error: {response.error_message}")
else:
# Process response.data
response.error before accessing datanext() and prev() methods for paginated responsesno_spam=true to filter spam tokensSee the examples/ directory for complete working examples:
examples/typescript/foundational/ - REST API examplesexamples/typescript/streaming/ - WebSocket streaming examplesexamples/python/ - Python SDK examplesdevelopment
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.