Skip to main content
POST
Transfer rewards into a trading balance

Authorizations

X-Monaco-Signature
string
header
required

Ed25519 session-key request signing. Every authenticated request carries three headers: X-Monaco-PublicKey (64-char lowercase-hex session public key), X-Monaco-Timestamp (Unix milliseconds, within 30s of server time), and X-Monaco-Signature (hex ed25519 signature). The signature is over METHOD\npath?query\ntimestamp_ms\nSHA256_hex(body), where the body hash is the SHA-256 of the empty byte string when there is no body. Obtain the session keypair from POST /api/v1/auth/challenge followed by POST /api/v1/auth/verify.

Body

application/json
token
string
required

Reward token contract address (0x-prefixed) to transfer.

Example:

"0x0000000000000000000000000000000000000002"

amount
string
required

Amount to transfer, in RAW atomic units of the token.

Example:

"1000000"

Response

OK

rewardsBalance
string | null

Your rewards-bucket balance after the transfer, RAW atomic units.

Example:

"0"

tradingBalance
string | null

Your trading balance for the token after the transfer, RAW atomic units.

Example:

"1000000"