8000 GitHub - stablecoinxyz/masspay: Send payments to multiple recipients with zero gas fees, powered by SBC.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stablecoinxyz/masspay

Repository files navigation

masspay

This repo contains a utility allowing users to mass pay SBC (a ERC-20 stablecoin token) on the Base blockchain without having to pay for gas fees. It uses a custom signature verifying Paymaster to let qualifying users (e.g. holders of SBC) to send user operations without worrying about gas. This repo uses WalletConnect to connect to the user's wallet. The ShadCN UI component library is used for buttons, dialogs, tables, and toasts.

Demo

You can interact live right here. Both Base mainnet and Base Sepolia testnet are supported.

masspay-example

To get some SBC on Base, you can swap USDC for SBC using the Gasless Swap tool, which uses Uniswap V3 behind the scenes.

The SBC token is a multi-chain stablecoin pegged to the USD via Brale. The code for the SBC token smart contract can be found here.

Once you have a SBC balance in your wallet, connect your wallet (top right corner). You can then input the recipient addresses and amounts to masspay via Copy and Paste Mode or CSV Mode. Each line is to follow the format address,amount. You can airdrop different amounts for different addresses if you wish.

For testing, you can use a pre-generated csv file or use a tool like Ethereum Wallet Generator to generate a list of addresses.

Currently, the project is set up to airdrop SBC tokens to 200 addresses at a time.

Environment Variables

To run this project locally, you will need to add the following environment variables to your .env file.

This early version of MassPay was built using Pimlico's paymaster service. We are happy to provide API credentials for you to install MassPay and test locally. Please connect with us on our SBC Telegram group: @stablecoin_xyz. Pimlico also provides a free tier if you prefer to sign up for your own account.

Run locally

Install dependencies

npm install

Start your development server after setting up the environment variables.

cp .env.example .env
npm run dev

Connect with us

For any questions, reach out on X and Telegram Telegram. Let us know if you have any feature requests for future versions.

Author

About

Send payments to multiple recipients with zero gas fees, powered by SBC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0