Fuel Decoded Logs

Fetch decoded logs from the last 10000 blocks.

curl -s --location --request GET \
    "https://app.pangea.foundation/v1/api/logs/decoded?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": "0x51fea4",
    "block_hash": "0xd4a20037c063433eb1fb68b2474f4b4e5ba526356e1246159d1d7c5406522a14",
    "transaction_index": "0x1",
    "transaction_hash": "0x7cccf0be4d81173f7686fcf1b9191db1397712730c912db368ceaf155325cb77",
    "log_index": "0x1",
    "id": "0x12a5f8666279f841e5900500297ce3c8bcf40103dd191c56dd3ec86f92b9217b",
    "ra": "0x0",
    "rb": "0x6c6a47ac80e7110d",
    "pc": "0x12f94",
    "is": "0x2f68",
    "ptr": "0x3ffc4c9",
    "len": "0xa0",
    "digest": "0xe28d586e1a6253a32ceede188d872b622024532859e6ebc43e02898d35528b1c",
    "data": "0x0000000d09dc30000b2d808a898cdae8b8661d398a98f8ff45e1e0f536ba2e498f6c7e53a71932cd00000000000000012bcec8e56de1ef0f354207ab4a3b2f79e402a9d9a679d96139655c77a20aaeb900000000713fb30000000000000000002a3a5d57e6e4173e159fcc40ca34deccd6c0ceeca92c7437c6fa8798a4a666c90000029fc785609700001b3f7bf255e5000000c6e681ce0700000c4227dc41df",
    "decoded": "{\"amount\":56000000000,\"asset\":{\"bits\":\"0x0b2d808a898cdae8b8661d398a98f8ff45e1e0f536ba2e498f6c7e53a71932cd\"},\"balance\":{\"liquid\":{\"base\":2885270462615,\"quote\":29959476368869},\"locked\":{\"base\":854270791175,\"quote\":13478276121055}},\"order_id\":\"0x2bcec8e56de1ef0f354207ab4a3b2f79e402a9d9a679d96139655c77a20aaeb9\",\"order_type\":{\"Sell\":null},\"price\":1900000000,\"user\":{\"Address\":{\"bits\":\"0x2a3a5d57e6e4173e159fcc40ca34deccd6c0ceeca92c7437c6fa8798a4a666c9\"}}}"
  }
  ...
]

Query Parameters

app.pangea.foundation/v1/api/logs/decoded?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.
  • id__in: This parameter is used to filter the data by a list of contract ids.
  • ra__in: This parameter is used to filter the logs by a list of ra values.
  • rb__in: This parameter is used to filter the logs by a list of rb values.
  • address__in / contractid__in / identity__in: This parameter is used to filter the data by a list of addresses.