Paymaster

In the Magmar SDK, you have the option to choose between Pimlico and Magmar as paymasters. Below are the steps to set up Pimlico as your paymaster.

Steps to Set Up on Magmar Dashboard

  1. Visit the Magmar Dashboard

Go to Magmar Dashboard and sign in or create an account.

  1. Create an Account and Select Chain

After signing in, create an account and go to create paymaster section

  • Example RPC Endpoint: https://api.magmarinfra.com/v1/{chainId}/rpc?apiKey={apiKey} Replace <api_key> with your actual API key and chainId with chain you are using.

  1. Configure SDK with Magmar Paymaster

Use the RPC endpoint provided by Magmar as the PaymasterEndpoint option when initializing the Magmar SDK.

  1. Add funds to Sponsor Transactions To sponsor Mainnet transactions, add balance to your paymaster in the Magmar dashboard.

Last updated