Skip to content

This is a Js script to send Ethereum transactions with 0 gas price through Meganode Paymaster.

Notifications You must be signed in to change notification settings

node-real/megafuel-client-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Visit Faucet: https://www.bnbchain.org/en/testnet-faucet
  2. Claim any kind of ERC20 token except BNB. image
  3. Follow the detailed instructions to run examples:

More Docs about the MegaFuel Paymaster

About

This is a Js script to send Ethereum transactions with 0 gas price through Meganode Paymaster.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •