Skip to main content

AppController_getTokenPrice

GET 

https://api.socket.tech/v2/token-price

AppController_getTokenPrice

Request​

Query Parameters

    tokenAddress stringrequired

    Token contract address on network, e.g USDC on Ethereum Mainnet

    Example: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
    chainId stringrequired

    ID of chain, e.g Ethereum Mainnet = 1

    Example: 1

Header Parameters

    API-KEY string

Responses​

Returns price of token for a given chain

Schema

    success booleanrequired

    result

    object

    required

    chainId number
    tokenAddress string
    tokenPrice number
    currency string
Loading...