API Reference

zks_getTokenPrice

Returns the price of a given token in USD.

Example

Request

curl --location --request POST 'https://zksync-era-mainnet.unifra.io/v1/your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0", "id": 1, "method": "zks_getTokenPrice", "params": [ "0x0000000000000000000000000000000000000000" ]}'

Result

{
    "jsonrpc": "2.0",
    "result": "1908.42",
    "id": 1
}
Language
Click Try It! to start a request and see the response here!