🚀 NERO Chain x AKINDO WaveHack has officially started! Join now: https://app.akindo.io/wave-hacks/VwQGxPraOF0zZJkX
Developer ToolsPaymaster APIHigh Level

Paymaster API

By letting developers use gas abstraction in their dApps, the NERO Chain Paymaster API lets users pay gas costs using ERC20 tokens or have transactions sponsored totally. This guide addresses recommended practices for integration, request/response forms, and API endpoints.

Introduction

The Paymaster API sits between your dApp and the NERO Chain blockchain, providing services to:

  1. Sponsor gas fees for your users.
  2. Allow users to pay for gas with ERC20 tokens.
  3. Validate and sign UserOperations before they’re sent to the bundler.
  4. Apply your configured gas strategies to user transactions.
Paymaster API Flow

Figure 1: Paymaster API integration/usage flow

API Endpoints

Base URL

The Paymaster API is available at:

https://paymaster-testnet.nerochain.io

For mainnet:

https://paymaster-mainnet.nerochain.io

Authentication

All API requests require an API key created through the AA Platform. The API key should be included as a parameter in your RPC calls.

In This Section