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).Sponsor User Operation (pm_sponsorUserOperation)
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:
- Attach the returned fields to your client’s
UserOperation. - Dispatch the completed UserOp via standard
eth_sendUserOperationJSON-RPC to the hosted Alto Bundler (/alto). - The Alto bundler handles bundle simulation, batching, and on-chain submission to the
EntryPointcontract on Lisk L2.