Skip to main content
Version: 2.0

Get NFT transfers by wallet

GEThttps://deep-index.moralis.io/api/v2/:address/nft/transfers

Get transfers of NFTs given the wallet and other parameters.

⚠️QUERY PARAMETER CHANGE

From the 4th September 2023, the direction query parameter will be removed. Read more here.

PATH PARAMS
addressstringrequired
The wallet address of the sender or recipient of the transfers
QUERY PARAMS
chainstring
The chain to query
formatstring
The format of the token ID
directionstring
The transfer direction
from_blocknumber

The minimum block number from which to get the transfers

  • Provide the param 'from_block' or 'from_date'
  • If 'from_date' and 'from_block' are provided, 'from_block' will be used.
to_blockstring
To get the reserves at this block number
from_datestring

The date from where to get the transfers (any format that is accepted by momentjs)

  • Provide the param 'from_block' or 'from_date'
  • If 'from_date' and 'from_block' are provided, 'from_block' will be used.
to_datestring

Get transfers up until this date (any format that is accepted by momentjs)

  • Provide the param 'to_block' or 'to_date'
  • If 'to_date' and 'to_block' are provided, 'to_block' will be used.
limitnumber
The desired page size of the result.
disable_totalboolean
⚠️ Deprecating soon. If the result should skip returning the total count (Improves performance). This parameter defaults to true.
cursorstring
The cursor returned in the previous response (used for getting the next page). Learn more on cursor pagination here.
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.nft.getWalletNFTTransfers({
"chain": "0x1",
"format": "decimal",
"direction": "both",
"address": "0x26fcbd3afebbe28d0a8684f790c48368d21665b5"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"total": "2000",
"page": "2",
"page_size": "100",
"cursor": "",
"result": {
"token_address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"token_id": "15",
"from_address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"from_address_label": "Binance 1",
"to_address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"to_address_label": "Binance 2",
"value": "1000000000000000",
"amount": "1",
"contract_type": "ERC721",
"block_number": "88256",
"block_timestamp": "2021-06-04T16:00:15",
"block_hash": "",
"transaction_hash": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"transaction_type": "",
"transaction_index": "",
"log_index": "",
"operator": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"possible_spam": "false",
"verified_collection": "false"
},
"block_exists": true,
"index_complete": true
}