Withdrawals API
Withdrawals
Create a Withdrawal
import { WithdrawDestinationType } from '@suipay/api';
// Withdraw to SUI wallet
const walletWithdrawal = await client.withdrawals.create({
amount_usdc: 50,
destination_type: WithdrawDestinationType.WALLET,
wallet_address: '0x1234567890abcdef1234567890abcdef12345678'
});
console.log(`Withdrawal created: ${walletWithdrawal.id}`);
console.log(`Status: ${walletWithdrawal.status}`);Method Signature
client.withdrawals.create(request: CreateWithdrawalRequest): Promise<Withdrawal>Request Parameters
Field
Type
Required
Description
Response Type
List Withdrawals
Method Signature
Response Type
Get Withdrawal
Method Signature
Response Type
Withdrawal Fields
Field
Type
Description
Withdrawal Status
Status Enum
Status Monitoring
State Transitions
Destination Types
WALLET
BANK_ACCOUNT
Error Handling
Complete Example
Important Notes
Last updated