MCPcopy Index your code
hub / github.com/amanusk/starknet-cli-wallet

github.com/amanusk/starknet-cli-wallet @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
43 symbols 124 edges 11 files 1 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Extension points exported contracts — how you extend this code

Uint256 (Interface)
(no doc)
src/util.ts

Core symbols most depended-on inside this repo

getWalletFromConfig
called by 10
src/index.ts
prettyPrintFee
called by 5
src/util.ts
getStarkPk
called by 4
src/keyDerivation.ts
computeAddressFromPk
called by 4
src/StarkNetWallet.ts
transfer
called by 4
src/StarkNetWallet.ts
toRawCallData
called by 4
src/StarkNetWallet.ts
describeIf
called by 3
test/fixtures.ts
fromMnemonic
called by 3
src/StarkNetWallet.ts

Shape

Function 20
Method 20
Class 2
Interface 1

Languages

TypeScript100%

Modules by API surface

src/StarkNetWallet.ts23 symbols
src/util.ts9 symbols
test/fixtures.ts6 symbols
src/keyDerivation.ts3 symbols
src/index.ts1 symbols
src/ProviderConfig.ts1 symbols

For agents

$ claude mcp add starknet-cli-wallet \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact