Skip to content

@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

@bridges:status(transferId adapter? fromChain?)
NameTypeDescription
transferIdstringTransaction hash of the bridge on the source chain
[adapter]bridge-adapterAdapter that initiated the transfer (default: detected from the source transaction)
[fromChain]chainSource chain of the transfer (default: probed across supported chains)
load bridges
load std
print @bridges:status(0x1111111111111111111111111111111111111111111111111111111111111111)

Poll until a CCTP transfer is ready to claim, then finalize it on the destination chain:

load bridges
load std
set $transferId 0x1111111111111111111111111111111111111111111111111111111111111111
loop until @bool(@bridges:status($transferId) == "claimable") (
wait 30s
)
switch base
bridges:claim $transferId