Bridge
Bridge configuration and withdrawal outcomes, with the claim proof for a single withdrawal. Served by every node.
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.
Bridge configuration
The one chain withdrawals are claimable on. 0 when no bridge is configured.
Bridge contract on that chain. Zero address when no bridge is configured.
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Bridge version; feeds the claim-hash domain separator.
GET /v1/bridge/config HTTP/1.1
Host: rpc.podtestnet.dev
Accept: */*
Bridge configuration
{
"claim_chain_id": 42161,
"source_contract": "0x5555555555555555555555555555555555555555",
"version": 1,
"tokens": [
{
"pod_token": "0x2222222222222222222222222222222222222222",
"l1_token": "0x3333333333333333333333333333333333333333",
"decimals": 6,
"min": "0x64",
"max": "0x3b9aca00"
}
]
}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.
Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.
032-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Page size. Values above 1000 are capped at 1000.
500Withdrawal outcomes
One withdrawal outcome, as pod_withdrawals delivers it.
The withdraw transaction's hash, the withdrawal's id.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$The debited account; the master for a delegated withdrawal.
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Recipient on the bridged chain.
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Pod-side token.
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Pod's 18 decimals, as signed. claim takes proof.amount.
0x6f05b59d3b200000Pattern: ^0x[a-fA-F0-9]+$Why the withdrawal was refused. Omitted otherwise.
The tick's batch deadline, microseconds. Also the since cursor.
Malformed path or query parameter. Plain-text reason.
The ledger read failed. Empty body.
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
}
]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.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.
032-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Page size. Values above 1000 are capped at 1000.
500Withdrawal outcomes
One withdrawal outcome, as pod_withdrawals delivers it.
The withdraw transaction's hash, the withdrawal's id.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$The debited account; the master for a delegated withdrawal.
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Recipient on the bridged chain.
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Pod-side token.
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$Pod's 18 decimals, as signed. claim takes proof.amount.
0x6f05b59d3b200000Pattern: ^0x[a-fA-F0-9]+$Why the withdrawal was refused. Omitted otherwise.
The tick's batch deadline, microseconds. Also the since cursor.
Malformed path or query parameter. Plain-text reason.
The ledger read failed. Empty body.
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
}
]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.
Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.
0The 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.
32-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Page size. Values above 1000 are capped at 1000.
500Withdrawal outcomes
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.
1704153600000000Malformed path or query parameter. Plain-text reason.
The ledger read failed. Empty body.
The node did not reach the requested timestamp within its wait; a value later than the node's clock plus the wait is rejected without waiting. Sent with Retry-After: 1 and Cache-Control: no-store.
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
}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.
20-byte address, 0x hex
0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28Pattern: ^0x[a-fA-F0-9]{40}$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.
Batch deadline in microseconds; returns outcomes strictly after it, or within it after since_id.
032-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Page size. Values above 1000 are capped at 1000.
500Withdrawal outcomes
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.
1704153600000000Malformed path or query parameter. Plain-text reason.
The ledger read failed. Empty body.
The node did not reach the requested timestamp within its wait; a value later than the node's clock plus the wait is rejected without waiting. Sent with Retry-After: 1 and Cache-Control: no-store.
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
}One withdrawal, keyed by the withdraw transaction's hash, with where it stands and the claim proof once one can be assembled.
claimable:proofis attached and the bridge contract will accept it.pending: fewer thann - fsignatures 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 newtx_hash.withdrawal.errorusually 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.
32-byte value, 0x hex. Orderbook ids, order ids and hashes.
0x0000000000000000000000000000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{64}$Withdrawal detail
May gain values. Treat an unfamiliar one as pending.
Malformed path or query parameter. Plain-text reason.
No withdrawal with this id has executed on this node. Empty body.
The ledger read failed. Empty body.
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

