Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get NFT transfers by block

🚨Deprecating Endpoint Notice

This endpoint will be deprecated soon. Please use our NFT Transfers by Contract endpoint or migrate to our Streams API to monitor all NFT transfers in real-time. For more details and updates, please check the changelog.

GEThttps://deep-index.moralis.io/api/v2.2/block/:block_number_or_hash/nft/transfers

Get transfers of NFTs given a block number or block hash.

PATH PARAMS
block_number_or_hashstringrequired
The block number or block hash
QUERY PARAMS
chainstring
The chain to query
limitnumber
The desired page size of the result.
orderstring
The order of the result, in ascending (ASC) or descending (DESC)
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.getNFTTransfersByBlock({
"chain": "0x1",
"order": "DESC",
"blockNumberOrHash": "15846571"
});

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_entity": "Opensea",
"from_address_entity_logo": "https://opensea.io/favicon.ico",
"from_address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"from_address_label": "Binance 1",
"to_address_entity": "Beaver Build",
"to_address_entity_logo": "https://beaverbuild.com/favicon.ico",
"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
}