SponsorPaymaster
Deployment Address
Mainnet: 0x1842a4EFf3eFd24c50B63c3CF89cECEe245Fc2bd
Interface: ISponsorPaymaster.sol
Basics
An ETH-based paymaster contract for handling ETH deposits.
Ensures that the user pays for transactions with their ETH deposited at the entry point.
Features deposit management functions like adding, locking, unlocking, and withdrawing deposits.
Implements rate and cost-limiting features to control gas usage and prevent abuse.
Includes view functions to provide information about user limits and deposit statuses.
State functions
addDepositFor
Deposits ETH for a specific account, allowing it to be used to pay for gas.
Parameter | Type | Explanation |
---|---|---|
|
| The account for which to deposit. |
unlockTokenDeposit
Unlocks the deposit, enabling it to be withdrawn.
No parameters.
lockTokenDeposit
Locks the ETH deposited for an account so they can be used to pay for gas.
No parameters.
withdrawTokensTo
Withdraws ETH to a specified target address.
Parameter | Type | Explanation |
---|---|---|
|
| Address to send ETH to. |
|
| Amount of ETH to withdraw. |
View functions
depositInfo
Returns deposit information for a specific account.
Parameter | Type | Explanation |
---|---|---|
|
| The account to query deposit info. |
appUserLimit
Returns current user limits for an app.
Parameter | Type | Explanation |
---|---|---|
|
| The user account. |
|
| The app contract. |
Last updated