Creating a Manual Withdrawal

Creating a Manual Virtual Account Withdrawal

Virtual Accounts (VA) come with dedicated endpoints to automatically handle on-chain withdrawals and log this action within the VA ledger.

However, depending on the use case or specific situation at hand, you may want to handle withdrawals manually.

Steps

Step_1: Execute a blockchain transfer

  1. The crypto assets are sent to the recipient's address.
  2. The source address of the blockchain transaction can be any blockchain address from your blockchain wallet

Step_2: Create a Withdrawal in the VA ledger

  1. This will perform a virtual account transaction from the source account.
  2. It will debit the amount from the source account. See related endpoint: "StoreWithdrawal"

Step_3: Complete the withdrawal transaction

  1. Mark the withdrawal as successful and store the transaction hash/ID of the blockchain transaction to the withdrawal operation in the VA ledger.
  2. This step must be completed; otherwise, there will be inconsistencies within the virtual account state.

🚧

Make sure the asset amount, fee and any other parameters match with the intended values as seen in the blockchain as well as the VA ledger.

Good to know

  • If you made a mistake while creating or storing a withdrawal in the VA ledger, you can delete it and retry again. Additional information is available, in the following article.
  • Transferring out from a specific VA deposit address and logging it to the VA ledger can be done automatically based on the [Blockchain Operations] endpoints.