starknet-batcher
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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);

Readme

Keywords

Package Sidebar

Install

npm i starknet-batcher

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

11 MB

Total Files

25

Last publish

Collaborators

  • scriptmoney