Interface for a Paymaster contract.
The `IPaymaster` interface defines the functions required for a contract to act as a paymaster in the context of a Gas Station Network (GSN). A paymaster is responsible for covering the gas costs of transactions submitted through GSN, enabling users to perform transactions without having to pay gas upfront.
The `IPaymaster` interface includes the following functions:
To use a paymaster contract with a GSN Relay, the user needs to specify the address of the paymaster contract in the transaction request. The GSN Relay will then interact with the paymaster contract to verify and pay for the transaction.
Paymaster contracts should be carefully audited to ensure they are secure and do not introduce vulnerabilities that could be exploited by malicious actors.
post(bytes calldata, address, bytes calldata, uint256, uint256, bytes calldata, uint256)postTransaction(bytes calldata, address, bytes calldata, uint256, bytes calldata)preRelayedCall(bytes calldata, address, bytes calldata, uint256, uint256, bytes calldata, uint256)Press Enter to send your query
Powered by Neuron AI • Press Enter to send