Getting the Transaction Status
From the Kima Backend
Using the Kima Backend, you can get the transaction status by calling two /tx
endpoints depending on the type of transaction.
For regular transactions: GET /tx/:txId/status
For liquidity pool transactions: GET /tx/lp/:txId/status
Parameters:
txId
number
: the transaction id number. This is a sequential number assigned to each transaction, NOT the transaction hash (tx_id
below).
Success Response:
From the Kima Subgraph
Once the transaction has been submitted to the Kima Transaction Backend, you’ll want to display the transaction progress in the frontend. There are 2 GraphQL queries on the Kima subgraph for this purpose.
Mainnet Kima Subgraph url:
https://graphql.kima.finance/v1/graphql
Sardis Testnet url:
https://graphql.sardis.kima.network/v1/graphql
Here is a code snippet for regular transactions using plain fetch
. See the docs for your favorite graphql client for constructing queries.
For liquidity pool transactions:
Last updated