get https://deep-index.moralis.io/api/v2/block//nft/transfers
Get transfers of NFTs given a block number or block hash.
Log in to see full request history
Response
Get transfers of NFTs given a block number or block hash.
xxxxxxxxxx
21import Moralis from 'moralis';
import { EvmChain } from '@moralisweb3/evm-utils';
​
try {
const chain = EvmChain.ETHEREUM;
​
await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});
​
const response = await Moralis.EvmApi.nft.getNFTTransfersByBlock({
blockNumberOrHash,
chain,
});
​
console.log(response?.result);
} catch (e) {
console.error(e);
}
Try It!
to start a request and see the response here! Or choose an example: