@bridges:status
Progress of a bridge transfer: pending, claimable, done, or unknown. Poll it with loop until to wait for a transfer to become claimable or arrive.
Returns: string
Syntax
Section titled “Syntax”@bridges:status(transferId adapter? fromChain?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
transferId | string | Transaction hash of the bridge on the source chain |
[adapter] | bridge-adapter | Adapter that initiated the transfer (default: detected from the source transaction) |
[fromChain] | chain | Source chain of the transfer (default: probed across supported chains) |
Examples
Section titled “Examples”load bridgesload std
print @bridges:status(0x1111111111111111111111111111111111111111111111111111111111111111)Poll until a CCTP transfer is ready to claim, then finalize it on the destination chain:
load bridgesload std
set $transferId 0x1111111111111111111111111111111111111111111111111111111111111111loop until @bool(@bridges:status($transferId) == "claimable") ( wait 30s)switch basebridges:claim $transferId