Chainstream icon

Chainstream

Consume Chainstream API

Token → Price by Time

AI-generated

Summary

Fetches the price of a token at a specified timestamp via the Chainstream API.

Inputs

  • chain (required) — The blockchain or network chain identifier. Select from the list or provide an expression to resolve the chain ID.
  • tokenAddress (required) — The token contract address.
  • timestamp — The timestamp at which to fetch the price. If omitted, the API returns the latest available price.

Output shape

main

Returns JSON data containing the token price from the Chainstream API.

Examples

Example 1: Get the price of an ERC-20 token at a specific block timestamp.

Set Chain to the desired network, Token Address to the contract, and Timestamp to the target block time.

Discussion