Skip to main content

listAddressMessages Query

Lists all messages owned by a given address.

Updated on
Oct 16, 2024

listAddressMessages Query

Parameters

address
string
REQUIRED
The address for which the messages is to be fetched

Returns

data
object
The data object which contains the following fields:
blocks
object
The object that holds information about the queried block
amount
string
The amount of the message
sender
string
The address of the sender who initiated the message
recipient
string
The address of the recipient of the message (in this case, the address you queried
nonce
string
A unique identifier or counter associated with the message
data
string
Optional additional data included in the message
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 MessageInfo($address: Address) { messages(owner: $address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",
6
"variables": {
7
"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
8
}
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free