Indexer GraphQL
The bridge indexer records every bridge request, signature, delivery and fee change on PulseChain, Ethereum and BNB Smart Chain. You read it over GraphQL. It needs no key.
@gibs/bridge-indexer wraps the queries on this page. Use the package when you can. It works around the known data defects for you.
Endpoints
Each host also answers GraphQL at /. GET /version returns the indexer version as JSON.
Send a query as an HTTP POST with a JSON body:
Rules you must follow
- Lowercase every address and hash in a
wherefilter. A checksummed address matches nothing. - Read
delivered, a boolean on the request. Do not read thedeliveryrelation. - Read a
CompletionorDeliveryby itsmessageHash. The join from a request to them works in one direction only. BigIntfields arrive as decimal strings.
The @gibs/bridge-indexer page lists every rule.
Find the requests of one transaction
This is the query fetchTransferStatus sends. Pass the origin transaction hash, lowercased, in where.transactionHash.
Find the transaction that settled a request
This is the query fetchTransferStatus sends next. Pass the messageHash from the query above, lowercased. A Delivery row wins over a Completion row, because it comes later.
Read what a claim needs
This is the query fetchClaimRecords sends. It reads the signatures and the encoded message that a claim on the destination chain submits.
List the transfers of one address
The interface's transfer history pages through userRequests with a cursor. Filter by the sender with from, lowercased.
To read the next page, pass pageInfo.endCursor as after.