Skip to main content

qn_getTransfersByNFT (v2) RPC Method

Returns transfers by given NFT.

Updated on
Nov 2, 2023

qn_getTransfersByNFT (v2) RPC Method

Please note that this RPC method requires the Token and NFT API v2 bundle add-on enabled on your QuickNode endpoint.

Parameters

array
array
An array with the first element being:
object
The custom object with the following fields:
collection
string
The contract address of the NFT collection
collectionTokenId
string
The Token ID of this NFT under this collection
page
integer
The page number you would like returned. The page numbers start at 1 and end at totalPages. If omitted, defaults to the first page (page 1). If the page number requested is higher than totalPages, an empty transfers array will be returned. If the page number requested is less than 1, an invalid params response will be returned
perPage
integer
The maximum amount of NFT tokens to return on each page. You can request up to 100 items per page. If omitted, defaults to 40 items per page

Returns

object
The custom response object, or null if no NFTs are found:
collection
The contract address we checked for NFTs
transfers
An array of transfers representing NFTs with the following shape:
date
The date when this transaction was mined
from
The address for the sender of this transaction
to
The address for the receiver of this transaction
blockNumber
The block number this transaction was included in
txHash
The token transfer transaction hash
totalPages
The total number of results pages available
pageNumber
The page number of results that was returned with this response
totalItems
The total number of results
Request
1
curl https://docs-demo.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"id":67,
6
"jsonrpc":"2.0",
7
"method":"qn_getTransfersByNFT",
8
"params": [{
9
"collection": "0x60E4d786628Fea6478F785A6d7e704777c86a7c6",
10
"collectionTokenId": "1",
11
"page": 1,
12
"perPage": 10
13
}]
14
}'
15
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free