무기한 하위 계정에서 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": { } }