cURL
curl --request GET \ --url https://{environment}.pragma.build/node/v1/onchain/{base}/{quote}
{ "asset_type": "<string>", "components": [ { "price": "<string>", "publisher": "<string>", "source": "<string>", "timestamp": 1, "tx_hash": "<string>" } ], "decimals": 1, "last_updated_timestamp": 1, "nb_sources_aggregated": 1, "pair_id": "<string>", "price": "<string>", "variations": {} }
Base Asset
Quote Asset
starknet-mainnet
starknet-sepolia
median
twap
Get the onchain entry
The response is of type object.
object
Was this page helpful?