Skip to main content

Get all token transfers of a contract

Overview

This API is an essential tool for tracking the movement of tokens tied to a specific smart contract. It helps various users—such as DeFi platforms, NFT marketplaces, and blockchain analytic apps offering an efficient way to monitor token transfers.

Get all token transfers of a contract

To get all token transfers list, use this get collection token transfers API

It requires one parameter (in path):

  • contractAddress: collection address

Optional parameters (in query):

  • limit: how many items can be return in a single response, maximum 200
  • cursor: the current pointer of the result set, to iterate to the next part of the results, it's returned by the previous call (nextCursor field), you get it and pass to the next call, present nextCursor means there will be more results to scroll, empty nextCursor means it reaches to the end of results
  • order: specify the order of result set. For most APIs, order might not be supported but the default value desc, otherwise you can choose between desc and asc. Desc ordering usually refers to show latest elements over older elements

This API accepts paging order. Example of Axie 0x32950db2a7164ae833121501c797d79e7b79d74c NFTs:

curl --location 'https://api-gateway.skymavis.com/skynet/ronin/web3/v2/collections/0x32950db2a7164ae833121501c797d79e7b79d74c/transfers?limit=2' \
--header 'Accept: application/json' \
--header 'X-API-KEY: <YOUR_API_KEY>'

Response:

{
"result": {
"items": [
{
"blockNumber": 38670422,
"logIndex": 5,
"tokenId": "2033107",
"contractAddress": "0x32950db2a7164ae833121501c797d79e7b79d74c",
"tokenStandard": "ERC721",
"decimals": 0,
"from": "0x3756a20833046b666fb5668fe94a375145c01e23",
"to": "0x3d18fd39f1cf2d5989955817bb63277a7ef7e5da",
"value": "1",
"blockHash": "0x4fd2a2f43c77e031765415908a329893a40f54701b7f8364c189355623c1e5be",
"transactionHash": "0xf64d620c2e9da06d88e5e363ec4f6d6419f811bf8b0e7a63e66f2e2ae5a72904",
"blockTime": 1727851039
},
{
"blockNumber": 38670420,
"logIndex": 4,
"tokenId": "10885966",
"contractAddress": "0x32950db2a7164ae833121501c797d79e7b79d74c",
"tokenStandard": "ERC721",
"decimals": 0,
"from": "0x7f0b1b2b4eb22809b88d8d7e3c8ec33ee1bcab9e",
"to": "0x243b27bb07230242fae5b1d19a48c0fa8ac52d92",
"value": "1",
"blockHash": "0xb70ad49a06dff9764357d3e86801a5dab159e01b2115ca361f3b3632a8b620ee",
"transactionHash": "0x49b33cd975db8291880c33a6af23d9cb4e935cf10fe55e0b7892a8bcce6ff2a8",
"blockTime": 1727851033
}
],
"paging": {
"nextCursor": "Mzg2NzA0MjA6NDoxMDg4NTk2Ng=="
}
}
}

The response returned from the API may vary in the future as the state of NFTs/Ownership/Collections can change.