Get On-Chain Token Prices logo

Catalog action Blockchain Data

Get real-time on-chain token prices by contract addresses using DEX data (Uniswap, PancakeSwap, etc.). Returns USD price with optional market cap, 24h volume, price change percentage, and total liquidity. Works for any token with on-chain liquidity. Ideal for: DeFi price feeds, pricing unlisted tokens, real-time portfolio valuation, trading bot triggers.

At a Glance

FieldValue
Action IDcoingecko-get-onchain-simple-price
CategoryBlockchain Data
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagscoingecko, onchain, price, token, dex, read

Payload Schema

FieldTypeRequiredDescription
networkstringYesNetwork ID (e.g., 'eth', 'bsc', 'polygon_pos', 'arbitrum', 'optimism'). Use /networks endpoint for full list.
addressesarrayYesArray of token contract addresses.
includeMarketCapbooleanNoInclude market cap in response (default: false).
mcapFdvFallbackbooleanNoUse FDV if market cap not available (default: false).
include24hVolbooleanNoInclude 24h volume in response (default: false).
include24hPriceChangebooleanNoInclude 24h price change percentage (default: false).
includeTotalReserveInUsdbooleanNoInclude total reserve in USD (default: false).
includeInactiveSourcebooleanNoInclude price data from inactive pools (default: false).

Result Schema

FieldTypeRequiredDescription
networkstringYesNetwork ID (e.g., 'eth', 'bsc', 'polygon_pos').
tokensarrayYesArray of token price data from DEX sources.

Examples

json
{ "type": "coingecko-get-onchain-simple-price", "payload": { "network": "example-network", "addresses": [] }, "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