Returns info on an EVM (ERC-20, ...) token on the runtime.
Path parameters
The runtime which to query.
The staking address of the token contract.
Response
The requested token.
Example response
{
"contract_addr": "oasis1qp2hssandc7dekjdr6ygmtzt783k3gn38uupdeys",
"name": "Uniswap",
"symbol": "USDT",
"decimals": 18,
"total_supply": "1234567890123456789012",
"num_holders": 123,
"ref_swap": {
"reserve0": "1234567890123456789012",
"reserve1": "1234567890123456789012"
},
"ref_token": {
"name": "Wrapped ROSE",
"symbol": "wROSE",
"decimals": 18
}
}Changes
Changed in 2 of the 3 revisions of this API.55
- ○
added the optional property
ref_swapto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ref_tokento the response with the200statusresponse-optional-property-added
- ○
added the optional property
relative_priceto the response with the200statusresponse-optional-property-added
- ○
added the optional property
relative_token_addressto the response with the200statusresponse-optional-property-added
- ○
added the optional property
relative_total_valueto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the optional property
ref_swapfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
ref_tokenfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
relative_pricefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
relative_token_addressfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
relative_total_valuefrom the response with the200statusresponse-optional-property-removed
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●