Skip to main content

qn_getTransactionsByAddress (v2) RPC Method

Returns transactions within a specified wallet address.

Updated on
Nov 2, 2023

qn_getTransactionsByAddress (v2) RPC Method

Please note that this RPC method requires the Token and NFT API v2 bundle add-on enabled on your QuickNode endpoint. This method will return pagination for up to 100,000 results. The fromBlock and toBlock parameters can be used for historical data.

Parameters

array
array
An array with the first element being:
object
A custom object with the following fields:
address
string
The wallet address or ENS name we want to check for transactions
fromBlock
string
The first block number to check for transactions (inclusive). If omitted, will default to the genesis block for the provided address
toBlock
string
The last block number to check for transactions (inclusive). If omitted, will default to the latest block
page
string
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 transactions array will be returned. If the page number requested is less than 1, an invalid params response will be returned
perPage
string
The maximum amount of transactions to return on each page. You can request up to 100 transactions per page. If omitted, defaults to 40 transactions per page

Returns

object
The custom response object containing transaction details and array of transactions, or an empty array if no transactions are found:
address
string
The wallet address we checked for transactions
ensName
string
The ENS name associated with the wallet address we checked for transactions
transactions
An array of objects representing transactions with the following shape:
blockTimestamp
The timestamp of the block in which the transaction occurred
transactionHash
The hash of the transaction
blockNumber
The block number within which this transaction occurred
transactionIndex
The index of the transaction within the block
fromAddress
The address from which the transaction was sent
toAddress
The address to which the transaction was sent
contractAddress
The contract address involved in the transaction (if applicable)
value
The value of the transaction (in wei)
status
The status of the transaction
pageNumber
The page number of results that was returned with this response
totalItems
The total number of results
totalPages
The total number of results pages available
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_getTransactionsByAddress",
8
"params": [{
9
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
10
"page": 1,
11
"perPage": 10
12
}]
13
}'
14
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free