MegaFuel client Example
This repository hosts a collection of examples implemented in both Golang and JavaScript for the MegaFuel Paymaster.
The client implementation follows the API standards of BEP-414.
The examples include:
- Wallet integration: The wallet can detect transactions eligible for sponsorship through MegaFuel's API,
and send these sponsorship-eligible transactions via the paymaster. As the solution is permissionless, any wallets are welcome
to integrate.
- Centralized Exchange (CEX) integration: Token issuers promote the adoption of their tokens by sponsoring CEX users
to withdraw funds with zero gas fees. The CEX then manages this sponsorship policy through MegaFuel's interface.
- Payment gateway integration: The payment gateway sponsors consumers to pay with ERC20 tokens without incurring gas
fees, using MegaFuel to manage the sponsorship policy.
Network Endpoint
Sponsor Endpoint
Quick Start
Please get ERC20 token for test before you start:
- Visit Faucet: https://www.bnbchain.org/en/testnet-faucet
- Claim any kind of ERC20 token except BNB.
- Follow the detailed instructions to run examples:
More Docs about the MegaFuel Paymaster