Invoke transactions on your Braavos account from the Starknet command line tool
This tutorial uses alpha-goerli testnet.
.starknet_accounts
in your home directory (note the dot prefix)starknet_open_zeppelin_accounts.json
the file should contain the following:{"alpha-goerli":
{"__default__":{"address":"YOUR_ACCOUNT_ADDRESS",
"private_key":"YOUR_ACCOUNT_PRIVATE_KEY"}
}
}
Add an environment variable (add it to your .bashrc/.zshrc to be available for all future shells)
export STARKNET_WALLET=starkware.starknet.wallets.open_zeppelin.OpenZeppelinAccount
** **You are now ready to roll ****
Let’s choose a contract to interact with.
We will use an ERC20 test token, and execute a mint
transaction. The token address we will use is 0x7394cbe418daa16e42b87ba67372d4ab4a5df0b05c6e554d158458ce245bc10
In order to execute a transaction on a contract, we need to get the contract ABI JSON file. We do this using the StarkNet CLI, and a JSON command line tool called jq
. install jq
by running
on linux:
apt install jq
on mac:
brew install jq