One Click Flow
For API keys with a bound user wallet address. The server submits transactions after the user delegates once.
Authorization
Steps
GET /api/v1/1ct/status— check delegation.If not enabled:
POST /api/v1/1ct/prepare→ user signs EIP-712 →POST /api/v1/1ct/enable.Call
/sendendpoints for orders and cash.
Details: trading/one-click-delegated.md. viem example: demo-code.md.
Send endpoints
Operation
Endpoint
Place order
POST /api/v1/orders/send
Cancel order
DELETE /api/v1/orders/{orderId}/send
Deposit
POST /api/v1/cash/deposits/send
Withdraw
POST /api/v1/cash/withdrawals/send
Deposit prerequisite
User wallet must approve the cash token spender before /cash/deposits/send.
Approval owner is the API key bound userAddress. See cash/deposits.md for spender addresses.
Last updated

