All requests and examples are made for Ethereum mainnet, if you plan to use the API for Binance Smart Chain, change the request url as follows: https://api.1inch.exchange/v3.0/56/<method>
"tokens": {"tokenAddress": { // token contract address"symbol": "string","name": "string","decimals": 0, // how divisible a token can be, from 0 to 18"address": "string", // token contract address"logoURI": "string" // link to the token logo}}
Request url
https://api.1inch.exchange/v3.0/1/tokens
curl
curl -X GET "https://api.1inch.exchange/v3.0/1/tokens" -H "accept: application/json"
{"tokens": {"0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f": {"symbol": "SNX","name": "Synthetix Network Token","decimals": 18,"address": "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f","logoURI": "https://tokens.1inch.exchange/0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f.png"},//..."0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {"symbol": "USDC","name": "USD Coin","address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","decimals": 6,"logoURI": "https://tokens.1inch.exchange/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.png"}}
access-control-allow-origin: *cache-control: public,max-age=300,s-maxage=300cf-cache-status: EXPIREDcf-ray: 5f635fc2bcd62d28-LHRcf-request-id: 0691fa2db600002d2812849000000001content-encoding: gzipcontent-type: application/json; charset=utf-8date: Sun,22 Nov 2020 14:34:56 GMTetag: W/"1cdc4-vy/SnvhGu34/huIysfy9eQGPttQ"expect-ct: max-age=604800,report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"server: cloudflarestatus: 200vary: Origin,Accept-Encodingx-powered-by: Express
Test your request in web interface: https://api.1inch.exchange/swagger/ethereum/#/Tokens/TokensController_getProtocols