Caigo is an MIT-licensed Go library for interacting with StarkNet.
- library documentation available at pkg.go.dev.
- example initializing the StarkCurve for signing and verification
- example for StarkNet interactions including deploy, call, invoke, and poll transaction
Caigo is currently under active development and will under go breaking changes until the initial stable(v1.0.0) release. The example directories and *_test.go files should always be applicable for the latest commitment on the main branch. NOTE: examples and tests may be out of sync with tagged versions and pkg.go.dev documentation
starkcurve
cd examples/starkcurve
go run main.go
starknet
cd examples/starknet
wget https://github.com/starknet-edu/ultimate-env/blob/main/counter.cairo
python3.7 -m venv ~/cairo_venv; source ~/cairo_venv/bin/activate; export STARKNET_NETWORK=alpha-goerli
starknet-compile counter.cairo --output counter_compiled.json --abi counter_abi.json
go run main.go
go test -v
go test -bench=.
If you find an issue/bug or have a feature request please submit an issue here Issues
If you are looking to contribute, please head to the Contributing section.