---
title: "private/register_bridge_deposit"
method: POST
path: "/private/register_bridge_deposit"
tags: ["Onchain Actions"]
---

# private/register_bridge_deposit

`POST /private/register_bridge_deposit`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/register_bridge_deposit`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Reports 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 body

- RegisterBridgeDepositParams: What the client sent and was quoted.
  - `bridge_token` string, required: The ERC20 the bridge delivers on the destination chain.
  - `bridge_token_decimals` integer, required: `bridge_token`'s decimals.
  - `deposit_address` string, required: One of the wallet's escrows, from `public/register_deposit_address`.
  - `expected_amount` string, required: What will arrive, in `bridge_token`'s native units, as a decimal string (Li.Fi: `estimate.toAmount`; LayerZero: `amountReceivedLD`; CCIP: the amount sent).
  - `provider_transfer_id` string, nullable: 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.
  - `rail` string, required: Bridge protocol: `lifi`, `layerzero` or `ccip`.
  - `source_chain_id` integer, required: EVM chain the bridge was sent from.
  - `source_token` string, required: The ERC20 sent on the source chain; the zero address for the chain's gas token.
  - `source_tx_hash` string, required: The bridge transaction on that chain.
  - `tool` string, nullable: The route the provider chose (Li.Fi: the quote's `tool`). Internal only.
  - `wallet` string, required: The session's wallet.

## Response `200`

Success

- PendingDepositBridgeOrigin: Where a deposit came from. Named apart from `DepositBridgeOrigin` because schemars shares one namespace and would emit an order-dependent `BridgeOrigin2`.
  - `bridge_id` string, required: Unique with `rail`; changes if a registered source tx is replaced, so key on `provider_transfer_id` when present.
  - `bridge_status` string, required: `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)
  - `delivered_at_ms` integer, nullable
  - `deposit_address` string, required: The escrow the bridge delivers to.
  - `expected_amount` string, required: Quoted amount expected to land, in `token` units (estimated until quoted); `receiving_amount` once delivered.
  - `expires_at_ms` integer, required: When a still-`registered` or `submitted` bridge will be marked `expired`.
  - `provider_transfer_id` string, nullable: 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.
  - `rail` string, required: Bridge protocol: `lifi`, `layerzero` or `ccip`.
  - `receiving_amount` string, nullable: What actually arrived, or was refunded, in `receiving_token`'s native units, as a decimal string.
  - `receiving_token` string, nullable
  - `receiving_tx_hash` string, nullable: The bridge's delivery transaction on the destination chain. When `refunded`, the refund transaction on the source chain.
  - `source_address` string, nullable: Their wallet on that chain, lower-cased; absent when the rail gave none.
  - `source_chain_id` integer, required: Chain the user sent from.
  - `source_tx_hash` string, required: Their transaction on that chain.
  - `substatus` string, required: The rail's detail, or `TOKEN_MISMATCH` when the escrow cannot credit the token.
  - `token` string, required: The ERC20 expected to land in the escrow.

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/register_bridge_deposit/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
