Skip to main content

External Transfer

External transfer is the process of sending funds from a TrexWallet account to an external blockchain address. This operation involves blockchain interaction, network fees, and may require additional confirmations.

Key Steps

  1. User initiates a withdrawal to an external address.
  2. System checks user balance, permissions, and AML/KYC status.
  3. Withdrawal request is queued and processed by the blockchain module.
  4. Network fee is calculated and deducted.
  5. Transaction is broadcast to the blockchain.
  6. Status is updated after confirmations.

Example API Call

External transfers reuse the withdraw endpoint:

POST /trex/v1/wallet/create_withdraw
Content-Type: application/json
Cookie: sid=...

{
"currency": "USDT",
"tokenNetwork": 2,
"amount": 50.0,
"fee": 1.0,
"address": "0xABCDEF..."
}

Identity comes from the authenticated session. tokenNetwork selects the terminal, and the matching Outcome tariff is applied automatically. fee must match the server-quoted withdrawal fee. See Withdrawal for the full contract including memo, partnerInfo, and confirmation flow.