Links

nft_mints

Get NFT mint records without scanning the entire chain.
Through nft_mints, you can fetch all the mint records. If you specify the contract address and account address, the API will return all the mint records of that collection which the account address has.
Supported on Ethereum, BNB Chain, Optimism, and Arbitrum.

Parameters

Object - An object with the following fields (required):
  • contractAddress(hex string, optional) - the contract address of the collection. BlockVision currently support both ERC721 and ERC1155.
  • accountAddress(hex string, optional) - the account address you want to query.
  • pageSize(integer number, optional, default 20 max 50) - max number of results to return per call.
  • pageIndex(integer number, optional, default 1) - page index.

Returns

Object - An object with the following fields:
  • id(integer number) - JSON-RPC id.
  • jsonrpc(string) - JSON-RPC version.
  • result(object) - an object with the following fields:
    • nextPageIndex(integer number) - next page index.
    • total(integer number) - total mint records.
    • data(array of object, defined below) - response data.
  • Object schema:
    • accountAddress(hex string) - account address which mint the collection.
    • contractAddress(hex string) - contract of address of the collection.
    • blockNumber(integer number) - the NFT is mint in this block.
    • tokenID(string) - id of the NFT.
    • standard(string) - the protocol version of the NFT.
    • value(string) - the amount of the NFT.

Example

Request

curl
TypeScript
curl https://api.blockvision.org/v1/<api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "nft_mints",
"params": {
"accountAddress":"",
"contractAddress":"0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"pageSize": 10,
"pageIndex": 1
}
}'
import { BlockVisionProvider, BvNetwork } from 'blockvision.js'
​
// Optional parameters, but default to eth-mainnet and default api-key.
const bv = new BlockVisionProvider(BvNetwork.ETH_MAINNET)
​
// Access the BlockVision NFT API
bv.getNFTMints({
contractAddress: '0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c'
}).then(console.log)

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"accountAddress": "0x199c5c53a4B654811A6E06084d516076EB504214",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246627,
"tokenID": "0",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0x199c5c53a4B654811A6E06084d516076EB504214",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246630,
"tokenID": "4",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0xE204C40b2775C13c5490C7A396B62bf33e67B71b",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246630,
"tokenID": "3",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0xE204C40b2775C13c5490C7A396B62bf33e67B71b",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246630,
"tokenID": "2",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0xE204C40b2775C13c5490C7A396B62bf33e67B71b",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246630,
"tokenID": "1",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0x199c5c53a4B654811A6E06084d516076EB504214",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246639,
"tokenID": "17",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0xE204C40b2775C13c5490C7A396B62bf33e67B71b",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246639,
"tokenID": "16",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0xE204C40b2775C13c5490C7A396B62bf33e67B71b",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246639,
"tokenID": "15",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0xE204C40b2775C13c5490C7A396B62bf33e67B71b",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246639,
"tokenID": "14",
"standard": "erc721",
"value": ""
},
{
"accountAddress": "0xE204C40b2775C13c5490C7A396B62bf33e67B71b",
"contractAddress": "0x86e4dc25259Ee2191cD8ae40e1865b9f0319646c",
"blockNumber": 6246639,
"tokenID": "13",
"standard": "erc721",
"value": ""
}
],
"nextPageIndex": 2,
"total": 4995
}
}