Paymaster API
Last updated
Last updated
Paymasters are smart contracts designed to facilitate transaction sponsorship.
They allow third parties to sponsor the gas fees for transactions, enabling users to interact with the blockchain without having to pay for gas themselves.
This can be particularly useful for onboarding new users, running promotional campaigns, or supporting decentralized applications where the end-user experience is improved by abstracting away transaction costs.
To authorize the sponsorship of a given contract address, you need to add it to your sponsored addressesed in the dashboard. From there, we will accept sponsoring transactions targeting this contract.
At the end of each month, you will receive an invoice with the total amount of gas fees covered. This fee is then billed through the payment method in your Cometh Connect account.
With Cometh Connect, there is no overhead on the price you pay. Depending on your license type, you have a max number of transactions you can sponsor each month.
Have a look at the "Gasless with Paymaster" section of the SDK documentation to see how to integrate it seamlessly.
We support multiple chains for the paymaster services, you just need to modify the chainId and apiKey to your network. Here the list of our current supported networks.
https://paymaster.cometh.io/CHAIN_ID?apikey=API_KEY
Example for Arbitrum Sepolia : https://paymaster.cometh.io/421614?apikey=API_KEY
Submit a UserOperation to the paymaster. If approved for sponsorship, it returns the paymasterAndData along with updated gas values
Request
Response
Returns an array of supported EntryPoint addresses.
Request
Response