Skip to main content

Deposit

Deposit is the process of adding funds to a TrexWallet account from an external blockchain address. The system monitors blockchain networks and credits user balances after required confirmations.

Key Steps

  1. User generates a deposit address in TrexWallet.
  2. User sends funds to this address from an external wallet.
  3. System monitors the blockchain for incoming transactions.
  4. After required confirmations, funds are credited to the user's balance.
  5. User is notified of the successful deposit.

Example API Call

GET /trex/v1/wallet/create_address?token_network=2
Cookie: sid=...

Response:

{
"result": {
"id": 24529041,
"address": "0x0a733ec4476233066359864c6a9b547104fa5167",
"typeAddress": "ETH_EOA"
},
"error": null
}

Pass token_network (the internal token-network identifier from terminal settings). The response carries the address record id, the on-chain address and its type. Some networks return additional details via dedicated endpoints — refer to Swagger for the exact contract.