private/register_bridge_deposit
Changed onReports a bridge into one of the caller's deposit addresses the moment its source transaction is sent, so public/get_pending_deposits shows it as bridging at once with the expected amount, before the bridge's own API reports it. Rails: lifi, layerzero and ccip. Takes the rail, the source chain and transaction, the rail's transfer id (Li.Fi: the quote's transactionId, optional; LayerZero: the message guid; CCIP: the messageId), the deposit address, the source and delivered tokens and the expected amount. Idempotent per bridge. Display only: nothing is credited from it, and a registration its rail never confirms expires.
Request
- Base URLhttps://api.derive.xyz/v3
- AuthAPI key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature
Request body
What the client sent and was quoted.
The ERC20 the bridge delivers on the destination chain.
bridge_token's decimals.
One of the wallet's escrows, from public/register_deposit_address.
What will arrive, in bridge_token's native units, as a decimal string (Li.Fi: estimate.toAmount; LayerZero: amountReceivedLD; CCIP: the amount sent).
The provider's own id for the transfer, kept if the source transaction is sped up or replaced. Li.Fi: the quote's transactionId, optional. LayerZero: the message guid; CCIP: the messageId. Both required.
Bridge protocol: lifi, layerzero or ccip.
EVM chain the bridge was sent from.
The ERC20 sent on the source chain; the zero address for the chain's gas token.
The bridge transaction on that chain.
The route the provider chose (Li.Fi: the quote's tool). Internal only.
The session's wallet.
Response
Success
Where a deposit came from. Named apart from DepositBridgeOrigin because schemars shares one namespace and would emit an order-dependent BridgeOrigin2.
Unique with rail; changes if a registered source tx is replaced, so key on provider_transfer_id when present.
registered (reported by the client, not yet confirmed by its rail) submitted (in flight) delivered (landed on the destination chain) matched (joined to the L1 deposit) failed (the bridge could not fill - nothing reached the escrow) refunded (the bridge sent the funds back on the source chain - nothing reached the escrow) expired (unresolved past expires_at_ms; check the source chain) unmatched (delivered, but not credited within 24h; contact support)
The escrow the bridge delivers to.
Quoted amount expected to land, in token units (estimated until quoted); receiving_amount once delivered.
When a still-registered or submitted bridge will be marked expired.
The provider's own id for the bridge (Li.Fi: the quote's transactionId; LayerZero: the message guid; CCIP: the messageId), stable through its lifecycle.
Bridge protocol: lifi, layerzero or ccip.
What actually arrived, or was refunded, in receiving_token's native units, as a decimal string.
The bridge's delivery transaction on the destination chain. When refunded, the refund transaction on the source chain.
Their wallet on that chain, lower-cased; absent when the rail gave none.
Chain the user sent from.
Their transaction on that chain.
The rail's detail, or TOKEN_MISMATCH when the escrow cannot credit the token.
The ERC20 expected to land in the escrow.
Changes
- info
the endpoint scheme security
DeriveWallet AND DeriveTimestamp AND DeriveSignaturewas added to the API - info
added the media type
application/jsonfor the response with the status
- info