Skip to content

script-money/starknet-batcher

Repository files navigation

starknet batcher

A tool to batch operate mutiple accounts on Starknet.

Usage

  1. bun install starknet-batcher
  2. Create a wallet using starkli. Use ./create-wallet.sh to create a new wallet. Then obtain testnet ETH from starknet faucet.
  3. Create your own opInfo file, referencing src/opInfo/simple.ts as an example. Obtain the ABI and calldata from starkscan. For an example of a custom address with approve + mint multicall, see src/opInfo/nostra.ts.
  4. Execute the run function with your opInfo and WALLETS as parameters. For more details, refer to test/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);

About

A tool to batch operate mutiple accounts on Starknet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published