README
Interacting with Starknet
Protostar provides a couple of commands allowing users to interact with Starknet without the need to
install cairo-lang
Python package locally.
Protostar offers similar CLI to Starknet's CLI.
However, with Protostar you can move deployment configuration to protostar.toml
and display help for each command.
📄️ Invoking contracts
Overview
📄️ Calling contracts
Overview
📄️ Declaring new contracts
This command can be used to declare Cairo 0 contracts only.
📄️ Deploying new contracts
Overview
📄️ Creating account
Overview
📄️ Signing
Protostar offers two ways of providing the signature:
📄️ Multicall
Overview
📄️ Scripting
In order to automate a process that includes protostar operations, you may want to build a script in language of your choice.
Using configuration profiles
Configuration profiles allow you to easily reuse configuration for devnet, testnet, and mainnet networks. You can define a network configuration in the protostar.toml
as demonstrated in the snippet below.
# ...
# https://github.com/Shard-Labs/starknet-devnet
["profile.devnet.protostar.deploy"]
gateway-url="http://127.0.0.1:5050/"
["profile.testnet.protostar.deploy"]
network="testnet"
["profile.mainnet.protostar.deploy"]
network="mainnet"
Then, run deploy
command with the --profile
argument.
protostar -p devnet deploy ./build/main.json