Gas Pump contract addresses can be attached to Virtual Accounts.
At the time to execute a withdrawal of a Gas Pump contract address attached to a Virtual Account, there's a few steps to follow, so the balance is updated on the Virtual Account.
Withdrawal steps:
- Check if a Gas Pump contract address has been activated on-chain - see V3 REST API endpoint
- If the Gas Pump contract address is not activated, do so - see V3 REST API endpoint
- Create a withdrawal request to the Virtual Account - see V3 REST API endpoint
- Transfer the assets from the Gas Pump contract address - see V3 REST API endpoint
- Mark the withdrawal on the virtual account as completed - see V3 REST API endpoint
You can find the description of how to mimic this via the guide available at the following link.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article