fetch_lifi_status
Documentation for eth_defi.lifi.api.fetch_lifi_status function.
- fetch_lifi_status(tx_hash, from_chain_id=None, to_chain_id=None, api_timeout=30)
Fetch the status of a cross-chain transfer from the LI.FI API.
Uses
GET /v1/statusto check whether a bridge transaction has been delivered on the destination chain.The response contains a
statusfield with one of:PENDING— transfer in progressDONE— transfer completed successfullyFAILED— transfer unsuccessfulNOT_FOUND— transaction hash not recognised yetINVALID— hash not tied to a known bridge
- Parameters
- Returns
Full status response dict from LI.FI API
- Raises
LifiAPIError – If the HTTP request fails
- Return type