Pangea
Documentation and Resources
The Indexer Pangea allows for retrieving data from the Fuel blockchain. The data can be general (e.g., blocks, transactions) or targeted, related to Spark smart contracts (e.g., SparkOrder, SparkMarket).
At present, the indexer cannot be deployed locally, and access to it is only possible via the Superchain API.
Access can be achieved either through HTTPS requests or via WebSocket.
It is important to note that all requests must be authenticated, as there is currently no open API for Fuel without authorization.
API Limitations
One limitation of the Pangea API is that data is only accessible for the last 10,000 blocks. Therefore, if the blockchain height has moved beyond this limit, certain orders may become unavailable. To mitigate this, it's advisable to store the relevant orders in a local state or retrieve them through another indexer.
HTTP Requests
Raw blocks
Curl example for blocks getting
Response
fuel.beta.superchain.network/v1/api/blocks?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
: This parameter is used to filter the data by a starting data availability block number.to_da_block_number
: This parameter is used to filter the data by an ending data availability block number.
Transactions
v1/api/transactions
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.to__in
: This parameter is used to filter the data by the to address.from__in
: This parameter is used to filter the data by the from address.value__gte
: This parameter is used to filter the value using the greater than or equal to operator.value__lte
: This parameter is used to filter the value using the less than or equal to operator.
Raw contact logs
fuel.beta.superchain.network/v1/api/logs?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.input_contract_contract_id__in
: This parameter is used to filter the data by a list of input contract contract ids.
Spark orders
uel.beta.superchain.network/v1/api/spark/orders?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.order_id__in
: This parameter is used to filter the data by a list of order ids.order_type__in
: This parameter is used to filter the data by a list of order types (i.e. Buy, Sell).state_type__in
: This parameter is used to filter the data by a list of order state types (i.e. Open, Cancel, Match).user__in
: This parameter is used to filter the data by a list of user accounts.owner__in
: This parameter is used to filter the data by a list of owner accounts.asset__in
: This parameter is used to filter the data by a list of asset contract ids.address__in
: This parameter is used to filter the data by a list of addresses.
Last updated