This example uses a pre-existing class on the Sepolia network to deploy a new account contract. To successfully run this example, you will need: 1) a Sepolia endpoint, and 2) some Sepolia ETH to fund the precomputed address.
Steps:
- Rename the ".env.template" file located at the root of the "examples" folder to ".env"
- Uncomment, and assign your Sepolia testnet endpoint to the
RPC_PROVIDER_URL
variable in the ".env" file - Make sure you are in the "deployAccount" directory
- Execute
go run main.go
- Fund the precomputed address using a starknet faucet, eg https://starknet-faucet.vercel.app/
- Press any key, then enter
At this point your account should be deployed on testnet, and you can use a block explorer like Voyager to view your transaction using the transaction hash.