Fuel Messages
Fetch messages for the last 10000 blocks.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/messages?chains=FUEL&from_block=-10000&to_block=latest" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
[
{
"chain": 9889,
"block_number": "0x33f3e6",
"block_hash": "0x0bcf9fae88ea93e918bd2fc2c4c66530e2cd8d6d96ba56f38de690b55742980b",
"da_block_number": 20927419,
"message_type": "Incoming",
"sender": "0x000000000000000000000000a4ca04d02bfdc3a2df56b9b6994520e69df43f67",
"recipient": "0xe821b978bcce9abbf40c3e50ea30143e68c65fa95b9da8907fef59c02d954cec",
"nonce": "0x00000000000000000000000000000000000000000000000000000000000000fb",
"amount": 0,
"data": "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000000000000000000000000000001cf1512ba4b058ad46aff0427e71afeffd30f03a057c63d4f5931b298d5db38deff552a840eb9eb8b5553ae59911c2390d02832c00000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000000006"
}
]
Query Parameters
app.pangea.foundation/v1/api/messages?chains=FUEL
chains
: This parameter is used to filter the data by specific blockchain networks.from_block
: This parameter is used to filter the data by a starting block number.to_block
: This parameter is used to filter the data by an ending block number.from_da_block_number
/da_block_number_gte
: This parameter is used to filter the data by a starting data availability block number.to_da_block_number
/da_block_number_lte
: This parameter is used to filter the data by a starting data availability block number.sender__in
: This parameter is used to filter the data by a sender address.recipient__in
: This parameter is used to filter the data by a recipient address.amount__gte
: This parameter is used to filter the data by by a value greater than or equal to the specified amount.amount__lte
: This parameter is used to filter the data by by a value less than or equal to the specified amount.message_type__in
/type__in
: This parameter is used to filter the data by a message type (i.e.Incoming
/Outgoing
)