Skip to main content
POST

Body

application/json

A deposit by its source tx, or by its fields. When tx is present the fields are ignored.

tx
string
required

The source tx: 0x + 64 hex on EVM; 64 hex on Stellar and CosmWasm (Gonka).

Pattern: ^(0x)?[0-9a-fA-F]{64}$
Examples:

"3b1f6c0e9d2a47c58e6f1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f"

"0xdfd90cb908815115b944a21f71a015cccfe668ff8752e49d440beb9da7769df4"

intent_account
string
required

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).

Examples:

"alice.near"

"0xe4df1d74122c2a7b14481cbdde704fbd0a4f11a2"

chain
integer

The source chain. Unset, a 0x hash is looked for on every EVM chain, a bare hash on Gonka, TON and Stellar.

Required range: x >= 1
Examples:

1100

1117

137

4444119

dry_run
boolean
default:false

Read and sign only; send nothing (status: signed).

Response

The deposit is credited (now or before), or signed on a dry run.

status
enum<string>
required

credited: mt_deposit_call went through now. already_credited: omni had executed it before (nothing sent, no signature). signed: a dry run.

Available options:
credited,
already_credited,
signed
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
string
required

omni's nonce (unix seconds * 10^12 + n), decimal.

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

"1792944123000000004211"

amount
string
required

A non-negative integer as a decimal string.

Pattern: ^\d+$
token_id
string
required

omni's token id.

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

The deposit's receiver.

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

The account credited, in the form whose receiver matched (a checksummed EVM address may come lowercased).

signature
string

The deposit signature (64 bytes). Absent with already_credited.

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

The NEAR tx of mt_deposit_call. With credited only.

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

The relay account that sent near_tx: with it, the NEAR tx can be looked up (absent when nothing was sent).

Example:

"dhjdisksj.tg"