Starkode is an advanced development environment and execution interface tailor-made for the thriving Starknet developers community. Integrated into the popular VScode platform, this robust tool empowers developers with a comprehensive suite of components, streamlining account creation and facilitating Cairo smart contract deployment and execution. By leveraging Starkode, users can effortlessly interact with the Starknet network, ensuring a seamless and intuitive experience.
- Create & deploy account
- Declare & deploy cairo smart contracts
- Interaction with cairo smart contracts: Call mutable & immutable functions
- Supports cairo 0 and cairo 1.0 contracts
- Network support: Goerli-alpha, Goerli-alpha-2, Mainnet-alpha
- Open Starkode Extension:
- Select the extension from left side pannel.
-
Select Starknet Network:
- Select the network on which you want to deploy account and interact with the cairo smart contracts.
Available Networks:
- Goerli-alpha
- Goerli-alpha-2
- Mainnet-alpha
-
Create new account:
- Create new undeployed account in the selected network
-
Fund Account
-
Deploy Selected Account:
- Deploy the selected undeployed account on the selected network.
-
Select Cairo Contract:
-
The .json file should be present in root directory of the project.
-
A folder containing two files will be created inside Starkode folder.
starkode/fileName/fileName_address.json
stores the address and classHash info of the cairo contract.starkode/fileName/fileName_abi.json
contains abi of selected Cairo contract for contract interaction.
-
-
Declare & Deploy Cairo Contract:
- Declare and deploy selected cairo contract on-chain.
Note - Cairo 0: Before deploying the contract,
- In case of cairo 0 contract the classHash of the selected contract must be present in the
starkode/fileName/fileName_address.json.
classHash field.
Note - Cairo 1.0: Before declaring the contract
- For cairo 1.0 contract the associated
.casm
file of the selected contract must be present in root directory of the project with same name. - Declare the contract by clicking the “Play Button”, Paste the class_hash and deplyed_contract_address inside
starkode/fileName/fileName_address.json
-
Call contact method (Cairo 1.0):
- Call contract methods present in cairo contract.
- Immutable functions can be called by just selecting the contract.
- Mutable functions can be called by entering values in the JSON file
starkode/fileName/fileName_abi.json
.