Skip to main content

zks_getTokenPrice RPC Method

Returns the price of a given token in USD.

Updated on
Jul 15, 2024

zks_getTokenPrice RPC Method

Parameters

address
string
REQUIRED
The address of the token

Returns

result
The price of a given token in USD
Request
1
curl https://docs-demo.zksync-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"zks_getTokenPrice","params":["0x0000000000000000000000000000000000000000" ],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free