Chainstream icon

Chainstream

Consume Chainstream API

Token → Prices

AI-generated

Summary

Fetches price data from the Chainstream API for a specified token and chain.

Inputs

  • authentication — Authentication method. Defaults to API Key.
  • chain — Chain identifier or name. Loads available chains via getChains.
  • tokenAddress (required) — Token contract address.

Output shape

Price data returned by the Chainstream API endpoint GET token/{chainId}/{tokenAddress}/prices.

The operation resolves the chain ID via the chain parameter and constructs the path using the token address. No additional query parameters are appended for the Prices operation.

Examples

Example 1: Fetch prices for an ERC-20 token on Ethereum

Set ChainName to 'Ethereum' (or appropriate chain ID) and Token Address to the token contract address. Authentication uses the default API Key.

Discussion