Token API

What is this request?

You can see all your ERC-20 tokens and Native coins in these services ethereum, binance smart chain, avalanche and polygon network by wallet.

What can I do with this service?

You can use it as a bag service for your project. With this service, you can tell whether the tokens in the bag are verified or not. In addition, the instant prices of the tokens in the bag also come with this request. In addition to all this, between the contract information and the variables in the photo. All of these combined make the following example very easy to do.

Tutorial

var axios = require('axios');

axios.get('https://api.getdefy.co/v2/wallet/tokens', {
    params: {
      address: '0x787970ad122d5947579e613c2464d9540081b46f',
      apikey: 'API_KEY',
    },
  })
  .then(function (response) {
    console.log(JSON.stringify(response.data));
  })
  .catch(function (error) {
    console.log(error);
  });

Options

  • address (required): A user address (i.e. 0x1a2b3x...). If specified, the user attached to the query is ignored and the address will be used instead.

  • apikey (required): API key for requests.

Request Example

GET https://api.getdefy.co/v2/wallet/tokens

Query Parameters

{
    "data": [
        {
            "name": "TBBT.org",
            "valid": false,
            "symbol": "TBBT.org",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 50000,
            "contract_address": "0x5de9eb5baa578666dfcdc00d3b2ee3f94c4f1c55",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "Black Rock Token",
            "valid": true,
            "symbol": "BLR",
            "chainId": 56,
            "network": "bsc",
            "decimals": 9,
            "quantity": 5325697.155,
            "contract_address": "0x9b11bc99f7e20ef5b954a23e953c842c2962d7e3",
            "price": 0.00054759,
            "image": "https://assets.coingecko.com/coins/images/26382/large/logo200.png?1657678445",
            "total_value": 2916.29850510645
        },
        {
            "name": "eCash",
            "valid": true,
            "symbol": "XEC",
            "chainId": 56,
            "network": "bsc",
            "decimals": 6,
            "quantity": 29000000,
            "contract_address": "0x5f7a1a4dafd0718caee1184caa4862543f75edb1",
            "price": 0.00003792,
            "image": "https://assets.coingecko.com/coins/images/16646/large/Logo_final-22.png?1628239446",
            "total_value": 1099.68
        },
        {
            "name": "ArenaPlay",
            "valid": true,
            "symbol": "APC",
            "chainId": 56,
            "network": "bsc",
            "decimals": 6,
            "quantity": 124.889,
            "contract_address": "0xda2d21872999e700a715a1bda3153eb9079770bb",
            "price": 0.00000801,
            "image": "https://assets.coingecko.com/coins/images/6725/large/alpha-coin.png?1547042955",
            "total_value": 0.00100036089
        },
        {
            "name": "GGBoxs.com",
            "valid": false,
            "symbol": "GGBoxs.com",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 60000,
            "contract_address": "0xcf68f02d7dd6a4642ae6a77f6a3676d0cbc834c9",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "USD Coin (PoS)",
            "valid": true,
            "symbol": "USDC",
            "chainId": 137,
            "network": "matic",
            "decimals": 6,
            "quantity": 2.108186,
            "contract_address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
            "price": 0.999373,
            "image": "https://assets.coingecko.com/coins/images/6319/large/USD_Coin_icon.png?1547042389",
            "total_value": 2.1068641673779998
        },
        {
            "name": "Matic",
            "valid": true,
            "symbol": "MATIC",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 2.5661084315933773,
            "contract_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
            "price": 0.510621,
            "image": "https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png?1624446912",
            "total_value": 1.3103088534486418
        },
        {
            "name": "(PoS) Tether USD",
            "valid": true,
            "symbol": "USDT",
            "chainId": 137,
            "network": "matic",
            "decimals": 6,
            "quantity": 0.294961,
            "contract_address": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
            "price": 0.999705,
            "image": "https://assets.coingecko.com/coins/images/325/large/Tether.png?1668148663",
            "total_value": 0.29487398650499996
        },
        {
            "name": "CRV (PoS)",
            "valid": true,
            "symbol": "CRV",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 0.14414251175939075,
            "contract_address": "0x172370d5cd63279efa6d502dab29171933a610af",
            "price": 0.251019,
            "image": "https://assets.coingecko.com/coins/images/12124/large/Curve.png?1597369484",
            "total_value": 0.0361825091593305
        },
        {
            "name": "SAND",
            "valid": true,
            "symbol": "SAND",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 0.2628802010519141,
            "contract_address": "0xbbba073c31bf03b8acf7c28ef0738decf3695683",
            "price": 0.32392,
            "image": "https://assets.coingecko.com/coins/images/12129/large/sandbox_logo.jpg?1597397942",
            "total_value": 0.08515215472473601
        },
        {
            "name": "(PoS) Dai Stablecoin",
            "valid": true,
            "symbol": "DAI",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 0.022270664524754995,
            "contract_address": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
            "price": 1,
            "image": "https://assets.coingecko.com/coins/images/9956/large/4943.png?1636636734",
            "total_value": 0.022270664524754995
        },
        {
            "name": "Binance Smart Chain",
            "valid": true,
            "symbol": "BNB",
            "chainId": 56,
            "network": "bsc",
            "decimals": 18,
            "quantity": 0.00006567599227661,
            "contract_address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
            "price": 584.5,
            "image": "https://assets.coingecko.com/coins/images/825/large/bnb-icon2_2x.png?1644979850",
            "total_value": 0.038387617485678545
        },
        {
            "name": "Tether USD",
            "valid": true,
            "symbol": "USDT",
            "chainId": 56,
            "network": "bsc",
            "decimals": 18,
            "quantity": 0.000005653225494855,
            "contract_address": "0x55d398326f99059ff775485246999027b3197955",
            "price": 0.999705,
            "image": "https://assets.coingecko.com/coins/images/325/large/Tether.png?1668148663",
            "total_value": 0.000005651557793334017
        },
        {
            "name": "BUSD Token",
            "valid": true,
            "symbol": "BUSD",
            "chainId": 56,
            "network": "bsc",
            "decimals": 18,
            "quantity": 0.00000285700897391,
            "contract_address": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
            "price": 0.997116,
            "image": "https://assets.coingecko.com/coins/images/9576/large/BUSD.png?1568947766",
            "total_value": 0.0000028487693600292434
        },
        {
            "name": "TiFiToken",
            "valid": true,
            "symbol": "TiFi",
            "chainId": 56,
            "network": "bsc",
            "decimals": 9,
            "quantity": 3000000,
            "contract_address": "0x4865e1a37409209dabe288bcb539e86b774aad2c",
            "price": 1.2722e-8,
            "image": "https://assets.coingecko.com/coins/images/24990/large/logo200_%281%29.png?1649686507",
            "total_value": 0.038166
        },
        {
            "name": "Fist Coin DAO",
            "valid": false,
            "symbol": "FISTDAO",
            "chainId": 56,
            "network": "bsc",
            "decimals": 9,
            "quantity": 880,
            "contract_address": "0x41791dab02a1f9b2430cd46f2c6a2b33aa7fd25d",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "3worlds.io",
            "valid": false,
            "symbol": "3worlds.io",
            "chainId": 56,
            "network": "bsc",
            "decimals": 9,
            "quantity": 12000,
            "contract_address": "0xc3238c3b7b8e32588a49c751aed808368e85122d",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "dashswap.io",
            "valid": true,
            "symbol": "DASH",
            "chainId": 56,
            "network": "bsc",
            "decimals": 18,
            "quantity": 100,
            "contract_address": "0x3291a9352e553740bf78ce94fad611924b640d0f",
            "price": 26.47,
            "image": "https://assets.coingecko.com/coins/images/19/large/dash-logo.png?1548385930",
            "total_value": 2647
        },
        {
            "name": "Atom",
            "valid": true,
            "symbol": "Atom",
            "chainId": 56,
            "network": "bsc",
            "decimals": 6,
            "quantity": 99.56148,
            "contract_address": "0x725e02c7f9168f45b3699cfb7c262fb6dd355e84",
            "price": 5.97,
            "image": "https://assets.coingecko.com/coins/images/1481/large/cosmos_hub.png?1555657960",
            "total_value": 594.3820356
        },
        {
            "name": "0Apply Rich Token",
            "valid": true,
            "symbol": "ART",
            "chainId": 56,
            "network": "bsc",
            "decimals": 18,
            "quantity": 0.576,
            "contract_address": "0x949e0a0672299e6fcd6bec3bd1735d6647b20618",
            "price": 0.00613048,
            "image": "https://assets.coingecko.com/coins/images/1025/large/maecenas.png?1547034953",
            "total_value": 0.0035311564799999995
        },
        {
            "name": "ARCY.io",
            "valid": false,
            "symbol": "Visit [ arcy.io ] and claim special rewards",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 4279,
            "contract_address": "0xf284121100433b49a04618978715fbf2049e1a4c",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "0Ant Chain Token",
            "valid": true,
            "symbol": "ACT",
            "chainId": 56,
            "network": "bsc",
            "decimals": 6,
            "quantity": 166.666666,
            "contract_address": "0xaecc1f18298868f0d7d509ada0239ba18b43e549",
            "price": 0.00315008,
            "image": "https://assets.coingecko.com/coins/images/1147/large/achain-logo.png?1547035157",
            "total_value": 0.52501333123328
        },
        {
            "name": "SAND Rewards",
            "valid": false,
            "symbol": "Claim via sand-rewards.xyz",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 1000,
            "contract_address": "0xcaf0d67ebe214741dba3c293239ad6decde2eb93",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "SAND",
            "valid": false,
            "symbol": "sandbox-rewards.xyz",
            "chainId": 137,
            "network": "matic",
            "decimals": 18,
            "quantity": 1227,
            "contract_address": "0xbbdc1d5be42211ede5ff776ba0886187a7fb371f",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "DogX.AI NFT",
            "valid": false,
            "symbol": "DogX.AI NFT",
            "chainId": 137,
            "network": "matic",
            "decimals": 6,
            "quantity": 1024,
            "contract_address": "0x2aad6b23c189b82e50d8c24c8c1c6058a3ef9960",
            "price": 0,
            "image": null,
            "total_value": 0
        },
        {
            "name": "TheSandBox.PRO",
            "valid": false,
            "symbol": "TheSandBox.PRO",
            "chainId": 137,
            "network": "matic",
            "decimals": 2,
            "quantity": 52,
            "contract_address": "0x0839ded1edc8ae842574f0fe3ced4dcb456352dd",
            "price": 0,
            "image": null,
            "total_value": 0
        }
    ],
    "code": 0,
    "message": "OK"
}

Last updated