Skip to main content
POST
Create deposit

Authorizations

Authorization
string
header
required

Scoped API key (ttk_...), created in the Totalis app or by a wallet-session user through the API keys routes with a fresh wallet signature; those routes never accept a key. Each key acts for one account, yours or a maker's, and holds only scopes that account can use. Each operation lists the scopes it requires. Send no Origin.

Scopes

funding:deposit
sponsorship:use

Headers

Idempotency-Key
string<uuid>
required

Lowercase UUIDv7 naming this command, unique per caller and route. A retry with the same key and body returns the original result; the same key with a different body returns 409 IDEMPOTENCY_KEY_REUSED.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$

Body

application/json

The account wallet's signed EIP-3009 ReceiveWithAuthorization moving USDC into the vault; Totalis relays it and pays gas. The credential names the account: its account wallet both pays and is credited, so the body carries only the signed terms.

amount
string<uint128-decimal>
required

Deposit amount in atomic USDC (6 decimals); at least "100000" (0.10 USDC) from a Privy login wallet, embedded or external, and "1000000" (1 USDC) from any other, and no more than the wallet's USDC not already committed to other pending work.

Maximum string length: 39
Pattern: ^(0|[1-9][0-9]*)$
valid_after
string<uint64-decimal>
required

EIP-3009 validAfter in Unix seconds; must not be in the future.

Maximum string length: 20
Pattern: ^(0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]|1844674407370955161[0-5])$
valid_before
string<uint64-decimal>
required

EIP-3009 validBefore in Unix seconds; must be at least 5 seconds ahead and at most 900 seconds after valid_after.

Maximum string length: 20
Pattern: ^(0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]|1844674407370955161[0-5])$
salt
string
required

Random 32 bytes; the EIP-3009 nonce is keccak256(abi.encode(vault, chainId, wallet, salt, wallet)), where wallet is the caller's account wallet.

Pattern: ^0x[0-9a-f]{64}$
authorization_signature
string
required

65-byte ECDSA signature by the account wallet over the USDC ReceiveWithAuthorization message, with the vault as payee.

Pattern: ^0x[0-9a-f]{130}$

Response

Admitted, not yet on chain. Follow the operation on the account stream or with GET /v1/me/operations/{operation_id}; the vault balance changes when it commits. A retry with the same Idempotency-Key and body returns the same operation. An account gets at most 5 deposits an hour.

operation_id
string
required

ID of the queued deposit operation; follow it with GET /v1/me/operations/{operation_id}.

Pattern: ^0x[0-9a-f]{64}$
status
any
required

Always DURABLE: the deposit is recorded and queued, not yet executed on chain.

amount
string<uint128-decimal>
required

Deposit amount in atomic USDC (6 decimals), the signed authorization value.

Maximum string length: 39
Pattern: ^(0|[1-9][0-9]*)$