I wouldn't trust any software/blockchain/dapp I cannot run from a command line. This is a basic tool to run basic commands on a StarkNet contract, from a terminal. The tool supports:
- Deterministic address derivation for StarkNet contract given a seed phrase and class hash
- Generate a new seed and deploy a contract to a predefined address
- At default works with the latest trialed-and-tested OZ contract
- Set any contract class in .env file
yarn install
- generate seed
- print address
- deploy account at address
- get balance
- transfer (ETH by default)
- declare contract
- declare cairo 1 contract
- deploy contract via UDC
- invoke contract
- call contract
To run integrations test with starknet-devent
, run starknet-devnet --seed 0
in another terminal.
Use starknet-devnet-rs
yarn test
Copy the resulting seed, public key and address to an .env
file
See example .env file for how to configure the wallet
Run help for options
ts-node ./src/index.ts --help