Skip to main content

listAddressTransactions Query

Lists all transactions originating from a specified address.

Updated on
Oct 16, 2024

listAddressTransactions Query

Parameters

address
string
REQUIRED
The address for which the transactions are to be fetched

Returns

data
object
The data object which contains the following fields:
transactionsByOwner
object
The transactionsByOwner object which contains the following fields:
nodes
array
An array of individual transactions, each representing a transaction made by the owner
id
string
The unique identifier of the transaction
inputs
array
An array containing the inputs used in the transaction
__typename
string
The specific type of input or output in the transaction
owner
string
The address that owned the input in the transaction
utxoId
string
The unique identifier for the unspent transaction output (UTXO) related to the input
amount
string
The amount of the asset involved in the transaction
assetId
string
The unique identifier of the asset involved in the transaction
outputs
array
An array of outputs, representing where the transaction sends value
__typename
string
The specific type of input or output in the transaction
to
string
The address which recieved the transaction
amount
string
The amount of the asset involved in the transaction
assetId
string
The unique identifier of the asset involved in the transaction
status
object
The status object which contains the following fields:
__typename
string
The type of status
Request
1
curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \
2
--header 'Accept: application/json' \
3
--header 'Content-Type: application/json' \
4
--data '{
5
"query": "query Transactions($address: Address) { transactionsByOwner(owner: $address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",
6
"variables": {
7
"address": "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"
8
}
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free