Get a Token by Network and Address
Returns the token corresponding to the requested currency name and contract address.
Authorizations
X-Ledger-API-KeystringRequired
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
X-Ledger-API-UserstringRequired
(required) Username of a registered API User
Path parameters
contract_addressstringRequired
The token contract address.
currency_namestringRequired
The currency name.
Responses
200
token
application/json
404
Token not found
application/json
get
/currencies/{currency_name}/tokens/{contract_address}GET /currencies/{currency_name}/tokens/{contract_address} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Accept: */*
{
"contract_address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"name": "USD Tether (erc20)",
"parent_currency": "ethereum",
"units": {
"code": "USDT",
"magnitude": 6
}
}Last updated