Skip to main content

Utility Endpoints

Get a block

Operation Identity:
  • Operation ID: getBlock
  • GET /v1/{chainName}/block_v2/{blockHeight}/
  • SDK: BaseService.getBlock()
Role: specialized | Credit Cost: 1 per call | API Type: REST Chains: All supported chains

Path Parameters

Response Fields

Item Fields

Credit Cost: 1 per call Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.

Get all chain statuses

Operation Identity:
  • Operation ID: getAllChainStatus
  • GET /v1/chains/status/
  • SDK: BaseService.getAllChainStatus()
Role: specialized | Credit Cost: 1 per call | API Type: REST Chains: All supported chains

Response Fields

Item Fields

Credit Cost: 1 per call Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.

Get all chains

Operation Identity:
  • Operation ID: getAllChains
  • GET /v1/chains/
  • SDK: BaseService.getAllChains()
Role: specialized | Credit Cost: 0.01 per call | API Type: REST Chains: All supported chains

Response Fields

Item Fields

Credit Cost: 0.01 per call Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.

Get block heights

Operation Identity:
  • Operation ID: getBlockHeights
  • GET /v1/{chainName}/block_v2/{startDate}/{endDate}/
  • SDK: BaseService.getBlockHeights()
Role: specialized | Credit Cost: 1 per call | API Type: REST Chains: All supported chains

Path Parameters

Query Parameters

Response Fields

Item Fields

Pagination Fields

Credit Cost: 1 per call Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.

Get gas prices

Operation Identity:
  • Operation ID: getGasPrices
  • GET /v1/{chainName}/event/{eventType}/gas_prices/
  • SDK: BaseService.getGasPrices()
Role: primary | Credit Cost: 1 per call | API Type: REST Chains: All supported chains

Path Parameters

Query Parameters

Response Fields

Item Fields

Credit Cost: 1 per call Processing: Batch
Tip: Estimate your monthly cost for this API using the Pricing Calculator.
Note: Currently support these event types: erc20 token transfers, nativetokens transfer, and uniswapv3 swap events.
How to Fetch Onchain Gas Prices and Estimate Gas Costs

Get historical token prices

Operation Identity:
  • Operation ID: getTokenPrices
  • GET /v1/pricing/historical_by_addresses_v2/{chainName}/{quoteCurrency}/{contractAddress}/
  • SDK: PricingService.getTokenPrices()
Role: primary | Credit Cost: 1 per call | API Type: REST Chains: All supported chains

Path Parameters

Query Parameters

Response Fields

Logo Url Fields

Item Fields

Credit Cost: 1 per call Processing: Batch
Tip: Estimate your monthly cost for this API using the Pricing Calculator.
Note: Supports a comma separated list of token contract addresses.
If no date range is provided, the spot price (with a 5 minute refresh) is provided.

Get log events by contract address

Operation Identity:
  • Operation ID: getLogEventsByAddress
  • GET /v1/{chainName}/events/address/{contractAddress}/
  • SDK: BaseService.getLogEventsByAddress()
Role: specialized | Credit Cost: 0.01 per item | API Type: REST Chains: All supported chains

Path Parameters

Query Parameters

Response Fields

Item Fields

Pagination Fields

Credit Cost: 0.01 per item Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.

Get log events by topic hash(es)

Operation Identity:
  • Operation ID: getLogEventsByTopicHash
  • GET /v1/{chainName}/events/topics/{topicHash}/
  • SDK: BaseService.getLogEventsByTopicHash()
Role: specialized | Credit Cost: 0.01 per item | API Type: REST Chains: All supported chains

Path Parameters

Query Parameters

Response Fields

Item Fields

Pagination Fields

Credit Cost: 0.01 per item Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.

Get logs

Operation Identity:
  • Operation ID: getLogs
  • GET /v1/{chainName}/events/
  • SDK: BaseService.getLogs()
Role: primary | Credit Cost: 0.01 per item | API Type: REST Chains: All supported chains

Path Parameters

Query Parameters

Response Fields

Item Fields

Credit Cost: 0.01 per item Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.
Note: Limits:
  • For a block range of 2,000 blocks or less, the response will include all logs within the range.
  • For a block range greater than 2,000 blocks:- The response will include up to 10,000 logs.
  • If the number of logs exceeds 10,000, no logs will be included in the response. Instead, the response will contain a suggested range within the info object, including a link and message.

Get pool spot prices

Operation Identity:
  • Operation ID: getPoolSpotPrices
  • GET /v1/pricing/spot_prices/{chainName}/pools/{contractAddress}/
  • SDK: PricingService.getPoolSpotPrices()
Role: specialized | Credit Cost: 1 per call | API Type: REST Chains: eth-mainnet, matic-mainnet, base-mainnet, optimism-mainnet, bsc-mainnet, gnosis-mainnet

Path Parameters

Query Parameters

Response Fields

Credit Cost: 1 per call Processing: Batch
Tip: Estimate your monthly cost for this API using the Pricing Calculator.
Note: Supports pools on Uniswap V2, V3 and their forks on all Foundational Chains.

Get resolved address for registered address

Operation Identity:
  • Operation ID: getResolvedAddress
  • GET /v1/{chainName}/address/{walletAddress}/resolve_address/
  • SDK: BaseService.getResolvedAddress()
Role: primary | Credit Cost: 1 per call | API Type: REST Chains: eth-mainnet, axie-mainnet, base-mainnet, matic-mainnet

Path Parameters

Response Fields

Item Fields

Credit Cost: 1 per call Processing: Realtime
Tip: Estimate your monthly cost for this API using the Pricing Calculator.
How to Resolve a Wallet Address Given an ENS Domain

Enhanced Spam Lists

The GoldRush Enhanced Spam Lists are a public good designed to restore trust and transparency in the Web3 ecosystem by helping developers, explorers, wallets, and indexers protect their users from scam tokens and malicious contracts. The Enhanced Spam Lists can be accessed as an npm package.
Note: This package requires Node.js v18 or above.

Step 1. Install the Package

You can install the package using npm, yarn or pnpm:
npm
yarn
pnpm

Step 2. Use Cases

Verify if an ERC20 token is spam on a given network
For a potential spam check for an ERC20 token, Confidence.MAYBE can be used
Verify if an NFT token is spam on a given network
Control caching behavior
For more control, you can get the full lists:
Get the specific spam score for a given contract