NFT Tranfers

What is this request?

Details of all transfers, sales and similar actions for a particular NFT at a contract address are included.

What can I do with this service?

It is a service that provides information about where the NFT produced with this request was sold, how much it was sold, when it was sold and similar information. You can use this service according to your project.

Tutorial

var axios = require('axios');

axios.get('https://api.getdefy.co/outsource/nft/token_transfers', {
    params: {
      address: '0x8c186802b1992f7650ac865d4ca94d55ff3c0d17',
      id: '32',
      network: 'ethereum',
      key: 'API_KEY',
    },
  })
  .then(function (response) {
    console.log(JSON.stringify(response.data));
  })
  .catch(function (error) {
    console.log(error);
  });

Options

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

  • id (required): A token id (i.e. 23).

  • network (required): Blockchain network. Can be "ethereum", "bsc", "avalanche", "polygon"

  • key (required): API key for requests.

Request Example

GET https://api.getdefy.co/outsource/nft/token_transfers

Query Parameters

NameTypeDescription

key*

String

API Key

address*

String

Wallet Address

id*

String

Token ID

network*

String

Can be "ethereum", "bsc", "avalanche", "polygon"

{
    "result": {
        "code": 0,
        "status": "success"
    },
    "data": [
        {
            "chain": "ethereum",
            "contract_address": "0x8C186802b1992f7650Ac865d4CA94D55fF3C0d17",
            "from": "0xc16e3FB154aE0bb6805389D0DF00B16efea51A70",
            "to": "0x3FD3A5F600f940ccD2be1FE3E5C8F8f4d51D4EB6",
            "token_id": "8052",
            "timestamp": "2022-03-26T11:26:35Z",
            "block_number": 14461555,
            "hash": "0x70322dce3627d39654c667d78a334f8180a18d9eece4d580d8bfc1b116afae8f",
            "event_type": "TRANSFER",
            "details": null
        },
        {
            "chain": "ethereum",
            "contract_address": "0x8C186802b1992f7650Ac865d4CA94D55fF3C0d17",
            "from": "0x72a0f106E274cF026047ccEB6BDA5027000d841B",
            "to": "0xc16e3FB154aE0bb6805389D0DF00B16efea51A70",
            "token_id": "8052",
            "timestamp": "2022-03-22T17:27:00Z",
            "block_number": 14437458,
            "hash": "0x8690935537f86ef10a06dce38a9092b616b3d2f792005ab4f155e8a17e7c2423",
            "event_type": "SALE",
            "details": {
                "marketplace_name": "OpenSea",
                "payment_token_name": "Ether",
                "payment_token_symbol": "ETH",
                "payment_token_decimals": 18,
                "payment_unit_price": 340000000000000000,
                "payment_total_price": 340000000000000000
            }
        },
        {
            "chain": "ethereum",
            "contract_address": "0x8C186802b1992f7650Ac865d4CA94D55fF3C0d17",
            "from": "0x3786efE23D0F22342d19131676C8542c384E853D",
            "to": "0x72a0f106E274cF026047ccEB6BDA5027000d841B",
            "token_id": "8052",
            "timestamp": "2021-11-22T09:43:33Z",
            "block_number": 13663770,
            "hash": "0x460eacc46985cb28dc80ab54144b2cd3bf3ecafd98c59a06435af8f92eed0b20",
            "event_type": "SALE",
            "details": {
                "marketplace_name": "OpenSea",
                "payment_token_name": "Ether",
                "payment_token_symbol": "ETH",
                "payment_token_decimals": 18,
                "payment_unit_price": 79000000000000000,
                "payment_total_price": 79000000000000000
            }
        },
        {
            "chain": "ethereum",
            "contract_address": "0x8C186802b1992f7650Ac865d4CA94D55fF3C0d17",
            "from": null,
            "to": "0x3786efE23D0F22342d19131676C8542c384E853D",
            "token_id": "8052",
            "timestamp": "2021-11-20T20:24:37Z",
            "block_number": 13653986,
            "hash": "0x929e3b1f9ef8e664be0ab302957d4eaa07a225090a077b2337b89db6e1dc893b",
            "event_type": "MINT",
            "details": null
        }
    ]
}

Last updated