nft_mints
Allows you to easily query NFT mints records without scanning the entire chain.
You can specify the contract address and account address, then you can obtain all the mint records of that collection which the account address has. If you don't specify the account address, the API can return all the mint records happening in that collection.
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(object array, define below) - response datas.
  • 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 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
}
}'

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
}
}
Copy link
Outline
Parameters
Returns
Example
Request
Result