For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bridge

Bridge configuration and withdrawal outcomes, with the claim proof for a single withdrawal. Served by every node.

Get Bridge Configuration

get

The chain withdrawals are claimable on, its bridge contract, the bridge version, and every bridged token.

claim_chain_id and source_contract are zero and tokens is empty when the node has no bridge configured. No withdrawal is admissible then.

No Cache-Control header is set.

Responses
200

Bridge configuration

application/json
claim_chain_idinteger · int64Optional

The one chain withdrawals are claimable on. 0 when no bridge is configured.

source_contractstringOptional

Bridge contract on that chain. Zero address when no bridge is configured.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
versioninteger · int64Optional

Bridge version; feeds the claim-hash domain separator.

get/bridge/config
GET /v1/bridge/config HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
200

Bridge configuration

{
  "claim_chain_id": 42161,
  "source_contract": "0x5555555555555555555555555555555555555555",
  "version": 1,
  "tokens": [
    {
      "pod_token": "0x2222222222222222222222222222222222222222",
      "l1_token": "0x3333333333333333333333333333333333333333",
      "decimals": 6,
      "min": "0x64",
      "max": "0x3b9aca00"
    }
  ]
}

List Withdrawals

get

Withdrawal outcomes for every account, oldest first by (timestamp_us, tx_hash). Same entries as the pod_withdrawals websocket channel, and since is the same cursor. To continue, pass the last entry's timestamp_us as since and its tx_hash as since_id.

Legacy Bridge.withdraw rows are excluded.

/v2/bridge/withdrawals returns the same rows with the node's timestamp.

No Cache-Control header is set.

Query parameters
sinceinteger · int64Optional

Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.

Default: 0
since_idstringOptional

32-byte value, 0x hex. Orderbook ids, order ids and hashes.

Example: 0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$
limitinteger · max: 1000Optional

Page size. Values above 1000 are capped at 1000.

Default: 500
Responses
200

Withdrawal outcomes

application/json

One withdrawal outcome, as pod_withdrawals delivers it.

tx_hashstringRequired

The withdraw transaction's hash, the withdrawal's id.

Example: 0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$
withdrawerstringRequired

The debited account; the master for a delegated withdrawal.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
tostringRequired

Recipient on the bridged chain.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
tokenstringRequired

Pod-side token.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
amountstringRequired

Pod's 18 decimals, as signed. claim takes proof.amount.

Example: 0x6f05b59d3b200000Pattern: ^0x[a-fA-F0-9]+$
errorstring · enumOptional

Why the withdrawal was refused. Omitted otherwise.

Possible values:
timestamp_usinteger · int64Required

The tick's batch deadline, microseconds. Also the since cursor.

get/bridge/withdrawals
GET /v1/bridge/withdrawals HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
[
  {
    "tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "withdrawer": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
    "to": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
    "token": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
    "amount": "0x6f05b59d3b200000",
    "error": "insufficient_balance",
    "timestamp_us": 1
  }
]

List Account Withdrawals

get

As /bridge/withdrawals, restricted to withdrawals debited from account (the withdrawer, which is the master for a delegated withdrawal).

No Cache-Control header is set.

Path parameters
accountstringRequired

20-byte address, 0x hex

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
Query parameters
sinceinteger · int64Optional

Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.

Default: 0
since_idstringOptional

32-byte value, 0x hex. Orderbook ids, order ids and hashes.

Example: 0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$
limitinteger · max: 1000Optional

Page size. Values above 1000 are capped at 1000.

Default: 500
Responses
200

Withdrawal outcomes

application/json

One withdrawal outcome, as pod_withdrawals delivers it.

tx_hashstringRequired

The withdraw transaction's hash, the withdrawal's id.

Example: 0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$
withdrawerstringRequired

The debited account; the master for a delegated withdrawal.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
tostringRequired

Recipient on the bridged chain.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
tokenstringRequired

Pod-side token.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
amountstringRequired

Pod's 18 decimals, as signed. claim takes proof.amount.

Example: 0x6f05b59d3b200000Pattern: ^0x[a-fA-F0-9]+$
errorstring · enumOptional

Why the withdrawal was refused. Omitted otherwise.

Possible values:
timestamp_usinteger · int64Required

The tick's batch deadline, microseconds. Also the since cursor.

get/bridge/withdrawals/{account}
GET /v1/bridge/withdrawals/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
[
  {
    "tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "withdrawer": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
    "to": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
    "token": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
    "amount": "0x6f05b59d3b200000",
    "error": "insufficient_balance",
    "timestamp_us": 1
  }
]

List Withdrawals (v2)

get

As /v1/bridge/withdrawals, wrapped in an object that adds timestamp, and accepting timestamp as a minimum state to wait for.

Withdrawal outcomes for every account, oldest first by (timestamp_us, tx_hash). Same entries as the pod_withdrawals websocket channel, and since is the same cursor. To continue, pass the last entry's timestamp_us as since and its tx_hash as since_id.

Legacy Bridge.withdraw rows are excluded.

No Cache-Control header is set.

Query parameters
sinceinteger · int64Optional

Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.

Default: 0
timestampinteger · int64Optional

The lowest tick deadline accepted, in microseconds — typically the highest timestamp (or solution_now) already held. The node answers once the state behind the route has reached it, otherwise 503 after its wait (default 2s, POD_RPC_TIMESTAMP_WAIT). Omitted means answer now.

since_idstringOptional

32-byte value, 0x hex. Orderbook ids, order ids and hashes.

Example: 0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$
limitinteger · max: 1000Optional

Page size. Values above 1000 are capped at 1000.

Default: 500
Responses
200

Withdrawal outcomes

application/json
timestampinteger · int64Required

Deadline of the newest tick whose outcomes the answering node serves. Never ahead of the rows. Pass it as since to pod_withdrawals to resume with no gap.

Example: 1704153600000000
get/v2/bridge/withdrawals
GET /v2/bridge/withdrawals HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
  "withdrawals": [
    {
      "tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "withdrawer": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
      "to": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
      "token": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
      "amount": "0x6f05b59d3b200000",
      "error": "insufficient_balance",
      "timestamp_us": 1
    }
  ],
  "timestamp": 1704153600000000
}

List Account Withdrawals (v2)

get

As /v2/bridge/withdrawals, restricted to withdrawals debited from account (the withdrawer, which is the master for a delegated withdrawal).

No Cache-Control header is set.

Path parameters
accountstringRequired

20-byte address, 0x hex

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$
Query parameters
timestampinteger · int64Optional

The lowest tick deadline accepted, in microseconds — typically the highest timestamp (or solution_now) already held. The node answers once the state behind the route has reached it, otherwise 503 after its wait (default 2s, POD_RPC_TIMESTAMP_WAIT). Omitted means answer now.

sinceinteger · int64Optional

Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.

Default: 0
since_idstringOptional

32-byte value, 0x hex. Orderbook ids, order ids and hashes.

Example: 0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$
limitinteger · max: 1000Optional

Page size. Values above 1000 are capped at 1000.

Default: 500
Responses
200

Withdrawal outcomes

application/json
timestampinteger · int64Required

Deadline of the newest tick whose outcomes the answering node serves. Never ahead of the rows. Pass it as since to pod_withdrawals to resume with no gap.

Example: 1704153600000000
get/v2/bridge/withdrawals/{account}
GET /v2/bridge/withdrawals/{account} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
  "withdrawals": [
    {
      "tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "withdrawer": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
      "to": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
      "token": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
      "amount": "0x6f05b59d3b200000",
      "error": "insufficient_balance",
      "timestamp_us": 1
    }
  ],
  "timestamp": 1704153600000000
}

Get Withdrawal and Claim Proof

get

One withdrawal, keyed by the withdraw transaction's hash, with where it stands and the claim proof once one can be assembled.

  • claimable: proof is attached and the bridge contract will accept it.

  • pending: fewer than n - f signatures are held, or this node failed to assemble a proof it should have. The node asks its peers for the missing signatures itself; keep polling, or ask another node.

  • refused: refused at execution. Nothing was debited and no claim will exist; resubmitting yields a new tx_hash. withdrawal.error usually names the reason but can be absent.

Branch on the presence of proof: treat refused as terminal and anything else as "ask again".

404 until the withdrawal has executed, a tick after admission.

No Cache-Control header is set.

Path parameters
tx_hashstringRequired

32-byte value, 0x hex. Orderbook ids, order ids and hashes.

Example: 0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$
Responses
200

Withdrawal detail

application/json
statusstring · enumRequired

May gain values. Treat an unfamiliar one as pending.

Possible values:
get/bridge/withdrawals/by-id/{tx_hash}
GET /v1/bridge/withdrawals/by-id/{tx_hash} HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
{
  "withdrawal": {
    "tx_hash": "0x0101010101010101010101010101010101010101010101010101010101010101",
    "withdrawer": "0x6666666666666666666666666666666666666666",
    "to": "0x8888888888888888888888888888888888888888",
    "token": "0x2222222222222222222222222222222222222222",
    "amount": "0x56bc75e2d63100000",
    "timestamp_us": 1704153600000000
  },
  "status": "claimable",
  "proof": {
    "proof": [
      0,
      31,
      207,
      118
    ],
    "committee_epoch": 0,
    "aux_tx_suffix": [
      1,
      1,
      1,
      1
    ],
    "token": "0x2222222222222222222222222222222222222222",
    "amount": "0x5f5e100",
    "to": "0x8888888888888888888888888888888888888888",
    "claim_hash": "0x8181818181818181818181818181818181818181818181818181818181818181"
  }
}

Last updated