Skip to main content
POST
Record a withdrawal a user just made

Body

application/json
chain_id
integer
required

Chain ids are omni's (v2_1.omni.hot.tg), not always the chain's own: EVM chains use their EIP-155 id (Ethereum 1, Optimism 10, BNB 56, Polygon 137, Monad 143, X Layer 196, Base 8453, Arbitrum 42161, Avalanche 43114, ...); the others have omni's numbers: Solana 1001, NEAR 1010, Stellar 1100, TON 1117 (TON v1, 1111, is dead), Juno 4444118, Gonka 4444119.

Required range: x >= 1
Examples:

1100

1117

137

4444119

nonce
required

omni's nonce: a decimal string (preferred) or a JSON integer, read exactly even above 2^53. Hex, floats and negatives are refused.

Pattern: ^\d{1,39}$
Example:

"1792944123000000004211"

receiver
string
required

The target chain's address (0x hex is lowercased) or omni's base58.

Pattern: ^[\w.:+/=-]{1,128}$
intent_account
string | null

A NEAR Intents account: a NEAR account (alice.near, a 64-hex implicit account), an EVM address, or a base58 32-byte key (a Solana address, taken as its hex implicit account).

Example:

"alice.near"

near_tx
string | null

The NEAR tx that published the withdraw intent, base58 of 32 bytes.

Pattern: ^[1-9A-HJ-NP-Za-km-z]+$

Response

The row, or recorded: false without the database.

recorded
boolean
required

False without the database.

withdrawal
object

A withdrawal in the registry.