0.2.1 • Published 2 months ago

starknet-cli-wallet v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

starknet-cli-wallet

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

Installation

yarn install

Supported features

  • 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

Testing

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

.env file

See example .env file for how to configure the wallet

Running

Run help for options

ts-node ./src/index.ts --help