Skip to main content

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.

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
limitnumber
The desired page size of the result.
disable_totalboolean
If the result should skip returning the total count (Improves performance).
cursorstring
The cursor returned in the previous response (used for getting the next page). Learn more on cursor pagination here.
Responses
💡INDIRECT NFT TRANSFERS

Note that this endpoint won't include transfers that are conducted through a smart contract also known as indirect transfers.

For example using OpenSea to transfer NFTs is a indirect transfer as it uses the OpenSea smart contract.

API KEY
import Moralis  from 'moralis';
import { EvmChain } from '@moralisweb3/evm-utils';

try {
const address = '0x1234567890123456789012345678901234567890';

const chain = EvmChain.ETHEREUM;

await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});

const response = await Moralis.EvmApi.nft.getWalletNFTTransfers({
address,
chain,
});

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