Shib Paymasters
Shib Paymasters provide two different types of paymasters to help abstract away gas fees for users in the Shibarium ecosystem using the ERC-4337 standard. These paymasters allow for more flexibility in how gas fees are handled, either by sponsoring them on behalf of users or by letting users pay using ERC-20 tokens.
Types of Shib Paymasters
- Verifying Paymaster
- ERC-20 Paymaster
Verifying Paymaster
The Shib Verifying Paymaster is a system that allows you to sponsor gas fees for your users on Shibarium. By utilizing an off-chain API and an on-chain smart contract, this paymaster lets users perform actions on-chain without needing to worry about gas fees. Here's how it works:
- Developers who wish to use our Paymaster-as-a-service feature go to the Developer Portal and acquire an API key.
- They will then append their API key to the Paymaster URL, which will be required during the integration through the Account Abstraction SDK.
- Users, when interacting with an app integrated with Shib’s account-abstraction SDK, can generate on-chain operations. This SDK can submit these operations behind the scenes.
- The paymaster works by receiving an API call from SDK where a signature is generated and returned to the caller.
- This signature is used by the on-chain smart contract to verify that the gas fees for the user operation should be sponsored.
- The gas fees are paid from funds added by the developers who built the application into the paymaster smart contract.
ERC-20 Paymaster
The Shib ERC-20 Paymaster is a permissionless, on-chain smart contract that allows your users to pay for gas fees using their ERC-20 tokens. This provides flexibility by enabling users to cover gas costs with a wide variety of tokens, such as USDC, rather than native tokens like ETH.
How it works:
- Users perform operations on-chain and can use their ERC-20 tokens to pay for gas fees.
- Developers register on the Developer Portal, create an ERC-20 paymaster and integrate it in their transactions, via Shib's Account Abstraction sdk. The Shib ERC-20 Paymaster contracts will be deployed on Shibarium for a specific ERC-20 token, allowing users to pay gas in ERC-20 tokens seamlessly.
- This ERC-20 Paymaster contract will have an owner address, ERC-20 token address and oracles that fetch the latest price of ERC-20 token and native asset.
📄️ Integrate Paymaster into your application
Learn how to integrate Paymaster into your application