nft_accountStats
Allows you to easily fetch account stats information of any NFT collection.
You can specify the contract address and account address, then you can obtain the number of transfers and approval events that the holder has in the specific collection. Using this API, you could see the broad view of transfer and approval stream of certain account.
Supported on Ethereum, BNB Chain, Optimism, and Arbitrum.

Parameters

Object - An object with the following fields (required):
  • contractAddress(hex string, required) - the contract address of the collection. BlockVision currently support both ERC721 and ERC1155.
  • accountAddress(hex string, required) - the account address you want to query.
  • blockNumber(integer number, optional) - specify the blockNumber for snapshot query (default latest). BlockVision can not only support users to query the current position, but also support users to query the historical information at any time.

Returns

Object - An object with the following fields:
  • id(integer number) - json-rpc id.
  • jsonrpc(string) - json-rpc version.
  • result(object, defined below) - an object with the following fields:
    • activeAddress(integer number) - active address amount.
    • totalTransfer(integer number) - total tansfer amount.
    • totalApprovalForAll(integer number) - total approvalForAll amount.
    • onedayTransfer(integer number) - oneday tansfer amount.
    • onedayApprovalForAll(integer number) - oneday approvalForAll amount.

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_accountStats",
"params": {
"contractAddress":"0xad9Fd7cB4fC7A0fBCE08d64068f60CbDE22Ed34C",
"accountAddress":"0xC4B0D0A7717905d342926958453e0654806850bB",
"blockNumber": 0
}
}'

Result

{
"id": 1,
"jsonrpc": "2.0",
"result": {
"totalTransfer": 24535,
"totalApprovalForAll": 69,
"onedayTransfer": 69,
"onedayApprovalForAll": 0
}
}
Copy link
Outline
Parameters
Returns
Example
Request
Result