nft_auctionRecords
Allows you to easily query historical auction records for any NFTs.
You can specify the contract address and token id, then you can obtain all auction records related to that NFT, including platform, currency, etc. Using this API, you could clearly see the thorough auction records for certain NFT.
Supported on Ethereum and BNB Chain.

Parameters

Object - An object with the following fields (required):
  • tokenId(string, required) - id of the NFT.
  • contractAddress(hex string, required) - the contract address of the collection. BlockVision currently support both ERC721 and ERC1155.
  • 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:
    • data(object array, defined below) - response datas.
  • Object schema:
    • contractAddress(string) - contract address.
    • tokenID(string) - id of the NFT.
    • from(hex string) - from address.
    • to(string) - to address.
    • amount(string) - the NFT transaction price with decimals.
    • originAmount(string) - the NFT transaction price without decimals.
    • currency(string) - currency for payment.
    • platform(string) - the NFT marketplace like OpenSea, LooksRare, Larvalabs.
    • txHash(hex string) - transaction hash.
    • timestamp(integer number) - timestamp in block.

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_auctionRecords",
"params": {
"contractAddress": "0x4a8C9D751EEAbc5521A68FB080DD7E72E46462aF",
"tokenId": "7305",
"pageSize": 5,
"pageIndex": 1
}
}'

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"contractAddress": "0x4a8C9D751EEAbc5521A68FB080DD7E72E46462aF",
"tokenID": "7305",
"amount": "1169000000000000000",
"originAmount": "1.169",
"currency": "ETH",
"from": "0xF1a9F5AEb0F975489aC2628A22040Cf42E9fE8DD",
"to": "0xEE57a6C7ed5CEB919E6dC6998AF553c21489a353",
"txHash": "0xe23a7a050039d4f656177ea0424d0e7c447bb23ad8aa6ce3783980e62c08663c",
"platform": "OpenSea",
"timestamp": 1649578665
},
{
"contractAddress": "0x4a8C9D751EEAbc5521A68FB080DD7E72E46462aF",
"tokenID": "7305",
"amount": "1100000000000000000",
"originAmount": "1.1",
"currency": "ETH",
"from": "0xa2FCC7138DEf685FC93826367eFf64e5FA486af8",
"to": "0xF1a9F5AEb0F975489aC2628A22040Cf42E9fE8DD",
"txHash": "0x33b7572f23c75ecf3fbf70bc749d09dfac7282fea9d372abf951c77f1d2a6e43",
"platform": "OpenSea",
"timestamp": 1649535096
},
{
"contractAddress": "0x4a8C9D751EEAbc5521A68FB080DD7E72E46462aF",
"tokenID": "7305",
"amount": "675000000000000000",
"originAmount": "0.675",
"currency": "ETH",
"from": "0x321DcdE7354053BBe4a983A10567c747e1740A81",
"to": "0xa2FCC7138DEf685FC93826367eFf64e5FA486af8",
"txHash": "0xa25d1d4483a1ce90a998169100a0234119f98770295bd631e5698f582246bd51",
"platform": "OpenSea",
"timestamp": 1648796834
}
]
}
}
Copy link
Outline
Parameters
Returns
Example
Request
Result