Skip to main content

GoldRush API for Solana

GoldRush’s Solana coverage today:
  • SPL token balances for any wallet - Foundational REST.
  • New DEX pairs decoded in real time - Streaming newPairs on SOLANA_MAINNET.
  • Wallet activity for arbitrary wallets in real time - Streaming walletTxs on SOLANA_MAINNET.
  • OHLCV candles for pools and tokens - Streaming ohlcvCandlesForPair and ohlcvCandlesForToken on SOLANA_MAINNET.
  • DEX swaps decoded - Pipeline swaps normalizer (warehouse).
  • SPL token transfers decoded - Pipeline transfers normalizer (warehouse).

Not supported on Solana today

  • SPL token transfer history on the Foundational REST API (use the warehouse transfers normalizer instead).
  • Solana transactions (signature lookup, paginated history, summary).
  • NFTs (Metaplex Token Metadata, Bubblegum compressed NFTs).
  • Token pricing REST endpoints (historical or pool spot).
  • Solana-native primitives (stake, validators, IDL, Token-2022 extensions, SPL delegations).
  • PumpFun-specific lifecycle tables.

Quick examples

Token balances (REST)

curl https://api.covalenthq.com/v1/solana-mainnet/address/4ZJhPQAgUseCsWhKvJLTmmRRUV74fdoTpQLNfKoekbPY/balances_v2/ \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY"

New-pair firehose (Streaming)

subscription {
  newPairs(chain_name: SOLANA_MAINNET) {
    block_signed_at
    protocol
    pair_address
    base_token { contract_address contract_ticker_symbol contract_decimals }
    quote_token { contract_address contract_ticker_symbol contract_decimals }
    liquidity
  }
}

Wallet activity (Streaming)

subscription {
  walletTxs(
    wallet_addresses: ["4ZJhPQAgUseCsWhKvJLTmmRRUV74fdoTpQLNfKoekbPY"]
    chain_name: SOLANA_MAINNET
  ) {
    tx_hash
    block_signed_at
    successful
    decoded_details {
      typeString
      ... on SwapTransaction {
        amount_in amount_out
        token_in { contract_address contract_ticker_symbol contract_decimals }
        token_out { contract_address contract_ticker_symbol contract_decimals }
      }
      ... on TransferTransaction {
        amount from to quote_usd
        contract_metadata { contract_address contract_ticker_symbol contract_decimals }
      }
    }
  }
}

OHLCV candles (Streaming)

subscription {
  ohlcvCandlesForPair(
    chain_name: SOLANA_MAINNET
    pair_addresses: ["<base58-pool-address>"]
    interval: ONE_MINUTE
    timeframe: ONE_HOUR
  ) {
    pair_address timestamp open high low close volume_usd
  }
}

Decoded swaps and SPL transfers to a warehouse (Pipeline)

In the platform, create a pipeline with chain Solana and data type Swaps or Transfers. Pick ClickHouse / BigQuery / Postgres / Kafka / S3 as the destination. Decoded rows begin flowing within seconds.

Critical rules

  1. Chain name (REST) - solana-mainnet (kebab-case). Used in Foundational API paths: /v1/solana-mainnet/....
  2. Chain enum (Streaming) - SOLANA_MAINNET (SCREAMING_SNAKE_CASE). Used in GraphQL: chain_name: SOLANA_MAINNET. Not interchangeable with the REST kebab-case form.
  3. Wallet address format - base58, 32-44 chars, case-preserved (unlike EVM 0x-hex which is lowercased).
  4. Token mint - base58 mint pubkey. USDC = EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. Wrapped SOL = So11111111111111111111111111111111111111112.
  5. Native unit - lamports. 1 SOL = 10⁹ lamports.

Decision matrix

NeedUse
SPL token balances for a walletFoundational get-token-balances-for-address
Real-time new DEX pair eventsStreaming newPairs on SOLANA_MAINNET
Real-time wallet activity (swaps + transfers)Streaming walletTxs on SOLANA_MAINNET
Real-time OHLCV for a poolStreaming ohlcvCandlesForPair on SOLANA_MAINNET
Real-time OHLCV aggregated for a tokenStreaming ohlcvCandlesForToken on SOLANA_MAINNET
Decoded DEX swaps in a warehousePipeline swaps normalizer
Decoded SPL transfers in a warehousePipeline transfers normalizer
SPL transfer history via REST / Solana transactions / NFTs / pricing RESTNot supported on Solana today

Agent routing

Reference Files

FileWhen to read
overview.mdProduct overview for Solana
foundational.mdREST reference for SPL balances on Solana
streaming.mdStreaming reference for newPairs, walletTxs, and OHLCV on Solana