🪙ERC20

Various api endpoints to fetch ERC20-related token information.

Fetch wrapped token address

Each native token on a specific network has a wrapped version that can be used. We keep a mapping of every wrapped token version of the native token on a chain.

Retrieve the wrapped token of the provided network

GET https://api.decentri.fi/erc20/{network}/wrapped

Retrieve the wrapped version of a network's native token.

Path Parameters

NameTypeDescription

network*

String

ex: ETHEREUM

{
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}

Fetch ERC20 Token Information

Fetch more information about the token. This result will indicate which type of token we're dealing with.

GET https://api.decentri.fi/erc20/{network}/{address}/token

Path Parameters

NameTypeDescription

network*

String

name of the network

address*

String

address of the token

{
   "logo": "https://google.com",
   "name":"USD Coin",
   "symbol":"USDC",
   "address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
   "decimals":6,
   "type":"SINGLE",
   "totalSupply":0,
   "underlyingTokens":[],
   "protocol":null
}

Last updated