MINARA

永続先物サブアカウントから USDC を出金

POST /v1/trading-gateway/withdraw:USDC を外部アドレスへ出金します。

POST /v1/trading-gateway/withdraw

USDC を外部アドレスへ出金します。Body:{ amount: string, toAddress: string, subAccountId?: string, totpCode: string }。上流の UserTOTPGuard は totpCode を必要とします。TOTP を無効化しているユーザーは空文字列を渡せます。{ amount, to, raw_data } を返します。Minara の出金ウォッチャーは raw_data.tx_hash(またはネストした raw_data.receipt.txHash)から tx ハッシュを抽出します。

メソッドPOST
パス/v1/trading-gateway/withdraw
認証既定では Authorization: Bearer <token> が必要(設定済みまたは自動生成の token)。明示的なループバック開発モードのみ省略可能(MINARA_ALLOW_INSECURE_BIND=1、GATEWAY_AUTH_TOKEN は未設定)
カテゴリperps

リクエスト本文

{ "amount": "50", "toAddress": "0xabcd...", "subAccountId": "sub_hl_default", "totpCode": "123456" }

レスポンス本文

{ "amount": "50", "to": "0xabcd...", "raw_data": { } }

目次