Aptimus Gas Pool is a service designed to facilitate large-scale sponsored transactions on Aptimus. It manages a database of gas coins owned by a sponsor address and offers APIs to reserve and use these coins for transaction payments. By maintaining a substantial pool of gas coin objects, the service ensures scalability and high throughput, allowing it to sponsor numerous transactions simultaneously.
A typical flow for interacting with the gas pool service works as follows:
- The app or client prepares a transaction without gas payment and sends it to an internal server.
- The internal server communicates with the gas pool service to reserve gas coins for the budget specified in the transaction.
- The gas pool reserves the required gas coins and returns them to the internal server.
- The internal server sends the complete transaction back to the app or client.
- The app or client prompts the user to sign the transaction and then sends the signed transaction back to the internal server.
- The internal server forwards the signed transaction to the gas pool service for execution.
- The gas pool service executes the transaction via a fullnode, returns the transaction results to the internal server, which then forwards them to the app or client. The used gas coins are released and made available for future reservations.
Coming soon...