Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keep-starknet-strange/batchor
Batch multiple transfers in a multicall, loading a data file.
https://github.com/keep-starknet-strange/batchor
cairo starknet
Last synced: 21 days ago
JSON representation
Batch multiple transfers in a multicall, loading a data file.
- Host: GitHub
- URL: https://github.com/keep-starknet-strange/batchor
- Owner: keep-starknet-strange
- License: mit
- Created: 2024-01-23T17:56:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-13T16:37:02.000Z (10 months ago)
- Last Synced: 2024-11-18T21:46:56.178Z (24 days ago)
- Topics: cairo, starknet
- Language: TypeScript
- Homepage: https://batchor.madara.build
- Size: 687 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starknet - Batchor - Batch your ERC20 transfers with a CSV file. (Open-source projects)
README
# Getting Started
Disclaimer: Beta of Batchor under development. Please take care, verify tx before sign, and use at your own risk.
If you have a problem or want something else:
Create an issue or DM in X/Telegram if needed.# How to use
Go to: https://batchor.madara.build
- Choose your Batch Type: ERC20 or ERC721
- Get a CSV like it:
For ERC20:
token_address,recipient,amount
0x0,0x04303C60233Ca91F72e53bE1A745E9D35cBbe7130E7438f716C8b4BC69852159, 1
0x0,0x060d0bE6Dd9Ca2582130fA481A159258Ea8bEFA240c6d972fC7DbB1a7DA8431e, 2For ERC721:
token_address,recipient,token_id
0x0,0x0, 1
0x0,0x0, 2- Upload it too Batchor or in local: https://batchor.madara.build
- Click on "Upload csv"
- Check the data and the summary.
- Click in the button: "Try Batch".
- Click "Process data": TX, process, verify the data.
- Click batch to open the tx request.Check the info in batch multicall.
If it's ok for you, let's send the batch tx.# Specs
Multicall batch ERC20 transfer.
We need to prepare a batch transfer made when upload the CSV file.The CSV file need to contains:
token_address,recipient,amount
- Load file CSV
- Prepare the batch transfers for each row
- View of batch transfer and TX ERC20 send
- Modal before send the TX
- Message view : You are about to send a multicall with XXX transactions, to a total of XXX unique recipients, using XXX unique tokens.
- Send the TX Multicall## Run
First, run the development server:
```bash
pnpm run dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
## Learn More
To learn more about this stack, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - Learn how to build a Next.js application.
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out the [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.