starknet-batcher
v0.1.4
Published
A tool to batch operate mutiple accounts on Starknet.
Readme
starknet batcher
A tool to batch operate mutiple accounts on Starknet.
Usage
bun install starknet-batcher- Create a wallet using starkli. Use ./create-wallet.sh to create a new wallet. Then obtain testnet ETH from starknet faucet.
- Create your own
opInfofile, referencingsrc/opInfo/simple.tsas an example. Obtain the ABI and calldata from starkscan. For an example of a custom address with approve + mint multicall, seesrc/opInfo/nostra.ts. - Execute the
runfunction with youropInfoandWALLETSas parameters. For more details, refer totest/run.test.ts.
import { run } from "starknet-batcher";
import { simpleInfo } from "starknet-batcher/src/opInfo/simple";
// Ensure to replace 'simpleInfo' with your actual operation info object
// and 'WALLETS' with an array of your wallet addresses.
const WALLETS = ["test0", "test1", "test2"];
run(simpleInfo, ["add"], WALLETS);