getCheckoutTransaction
Fetches the current state of a checkout transaction. Use this to poll for status updates after submitting a transaction, or to restore transaction state on page reload.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
transactionId | string | The checkout transaction ID returned by createCheckoutTransaction. |
Returns
Promise<CheckoutTransaction> - The current transaction state.
Execution States
| State | Description |
|---|---|
pending | Transaction has been created but not yet signed |
signing | Transaction is being signed by the wallet |
broadcasted | Transaction has been broadcast to the blockchain |
source_confirmed | Source chain has confirmed the transaction |
cancelled | Transaction was cancelled before broadcast |
expired | Transaction expired before completion |
failed | Transaction failed during execution |
Settlement States
| State | Description |
|---|---|
none | No settlement in progress |
bridging | Funds are being bridged across chains |
routing | Transaction is being routed through a DEX |
settling | Funds are settling to the destination |
swapping | Token swap is in progress |
completed | Settlement is complete |
failed | Settlement failed |
Examples
Poll for completion
Restore transaction on page reload
Related
createCheckoutTransaction- Create a new checkout transactionsubmitCheckoutTransaction- Submit for signing and broadcastcancelCheckoutTransaction- Cancel a pending transaction