starknet-batcher
v0.1.4
Published
A tool to batch operate mutiple accounts on Starknet.
Downloads
3
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
opInfo
file, referencingsrc/opInfo/simple.ts
as 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
run
function with youropInfo
andWALLETS
as 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);