Virtual Account - Deleting a "pending" withdrawal

Modified on Wed, 17 Apr 2024 at 04:03 PM

With the Virtual Account ledger, it is possible to delete a withdrawal.

  • Use CancelWithdrawal. See v3 REST API endpoint 
  • This is only applicable when a broadcasted transaction fails or is dropped by the blockchaion.


However, if you delete a withdrawal successfully processed by the blockchain, you will likely break your Virtual Account ledger. To fix this accounting issue, you have to register the withdrawal again.

 

How to register a deleted Virtual Account withdrawal

  1. Use StoreWithdrawal. See related v3 REST API endpoint.
  2. Use CompleteWithdrawal. See related v3 REST API endpoint.


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



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article