Skip to main content

Transaction Status

This guide explains how to check the status of cross-chain and swap transactions using the /status endpoint provided by LI.FI.

Querying the Status Endpoint

To fetch the status of a transfer, the /status endpoint can be queried with:
  1. sending transaction hash
  2. receiving transaction hash
  3. transactionId
Only one of the above values are required and need to be passed in txHash param.

Required:

  • txHash

Optional:

  • fromChain: Speeds up the request (recommended)
  • toChain
  • bridge
For swap transactions, set fromChain and toChain to the same value. The bridge parameter can be omitted.

Sample Response


Status Values


Substatus Definitions

PENDING

  • WAIT_SOURCE_CONFIRMATIONS: Waiting for source chain confirmations
  • WAIT_DESTINATION_TRANSACTION: Waiting for destination transaction
  • BRIDGE_NOT_AVAILABLE: Bridge API is unavailable
  • CHAIN_NOT_AVAILABLE: Source/destination chain RPC unavailable
  • REFUND_IN_PROGRESS: Refund in progress (if supported)
  • UNKNOWN_ERROR: Status is indeterminate

DONE

  • COMPLETED: Transfer was successful
  • PARTIAL: Only partial transfer completed (common for across, hop, stargate, amarok)
  • REFUNDED: Tokens were refunded

FAILED

  • NOT_PROCESSABLE_REFUND_NEEDED: Cannot complete, refund needed
  • OUT_OF_GAS: Transaction ran out of gas
  • SLIPPAGE_EXCEEDED: Received amount too low
  • INSUFFICIENT_ALLOWANCE: Not enough allowance
  • INSUFFICIENT_BALANCE: Not enough balance
  • EXPIRED: Transaction expired
  • UNKNOWN_ERROR: Unknown or invalid state
  • REFUNDED: Tokens were refunded