Get Token Price By Contract logo

Catalog action Blockchain Data

Get token prices by contract address on a specific blockchain (Ethereum, Polygon, Base, Arbitrum, etc.). Returns real-time prices in multiple currencies (USD, EUR, BTC, ETH). Optionally includes market cap, 24h volume, and price change. Use when you have contract addresses instead of CoinGecko IDs. Supports 250+ networks and 100 tokens per request. Ideal for: DeFi applications, multi-chain portfolio tracking, price verification, smart contract integrations.

At a Glance

FieldValue
Action IDcoingecko-get-token-price-by-contract
CategoryBlockchain Data
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagscoingecko, price, token, contract, erc20, defi, multi-chain, read

Payload Schema

FieldTypeRequiredDescription
platformstringYesAsset platform ID (blockchain network). Common values: 'ethereum', 'polygon-pos', 'arbitrum-one', 'optimistic-ethereum', 'base', 'binance-smart-chain', 'avalanche'. Use get-asset-platforms action for full list.
contractAddressesarrayYesArray of token contract addresses on the specified platform. Must be valid addresses for the platform (e.g., 0x... for EVM chains).
vsCurrenciesarrayYesArray of target currencies to get prices in (e.g., ['usd', 'eur', 'btc']). Common options: usd, eur, gbp, jpy, btc, eth.
includeMarketCapbooleanNoInclude market cap data for each token. Default: false
include24hVolbooleanNoInclude 24-hour trading volume. Default: false
include24hChangebooleanNoInclude 24-hour price change percentage. Default: false
includeLastUpdatedAtbooleanNoInclude last updated timestamp for each token. Default: false

Result Schema

FieldTypeRequiredDescription
tokensarrayYesArray of token prices. Each item contains: contractAddress, platform, prices (price in each currency), and optionally marketCaps, volumes24h, priceChange24h, lastUpdatedAt.

Examples

json
{ "type": "coingecko-get-token-price-by-contract", "payload": { "platform": "example-platform", "contractAddresses": "0x0000000000000000000000000000000000000000", "vsCurrencies": [] }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I