Skip to main content

Paymaster (Gasless Transactions)

LearnWay operates an ERC-7677 compliant Paymaster service enabling gasless transactions for user smart accounts (e.g. minting NFT certificates, claiming rewards, or transferring USDT).
Accepts an unsigned or partial ERC-4337 v0.7 UserOperation, validates it against gas policies and rate limits, and returns signed paymaster data (paymasterAndData).

Endpoint

Path Parameters

Request Body (JSON-RPC 2.0)

Response (200 OK)


Sponsorship Policies & Whitelists

  • Target Whitelist: Only calls targeting verified LearnWay contracts (Badges NFT, Certificates NFT, and approved token transfers) are sponsored.
  • Rate Limits: Users are allocated a daily gas allowance refreshed every 24 hours.

Submitting to the Alto Bundler (/alto)

After receiving the signed paymasterAndData payload from this endpoint:
  1. Attach the returned fields to your client’s UserOperation.
  2. Dispatch the completed UserOp via standard eth_sendUserOperation JSON-RPC to the hosted Alto Bundler (/alto).
  3. The Alto bundler handles bundle simulation, batching, and on-chain submission to the EntryPoint contract on Lisk L2.