![](https://raw.githubusercontent.com/augustbleeds/starknet.go/main/docs/images/Starknet.Go_Vertical_Light.png)
⚠️ starknet.go
is currently under active development and is experiencing a rearchitecture. It will undergo breaking changes.
starknet.go
will get your golang backends and WASM frontends to Starknet easily.
With simple abstractions for the Starknet RPC, account management and common
operations on the wallets. The package has excellent documentation for a smooth
0 to 1 experience.
- Seamless interaction with the Starknet RPC
- Tight integration with Juno (uses the RPC types, resulting in updates and breaking changes landing quickly)
- Account management: Deploy accounts easily
- Good concurrency support
- library documentation available at pkg.go.dev.
- curve example initializing the StarkCurve for signing and verification
- contract example for smart contract deployment and function call
- account example for Account initialization and invocation call
starknet simpleCall
cd examples/simpleCall
go mod tidy
go run main.go
starknet.go
RPC implements the StarkNet RPC v03 Spec:
Method | Implemented (*) |
---|---|
starknet_getBlockWithTxHashes |
✔️ |
starknet_getBlockWithTxs |
✔️ |
starknet_getStateUpdate |
✔️ |
starknet_getStorageAt |
✔️ |
starknet_getTransactionByHash |
✔️ |
starknet_getTransactionByBlockIdAndIndex |
✔️ |
starknet_getTransactionReceipt |
✔️ |
starknet_getClass |
✔️ |
starknet_getClassHashAt |
✔️ |
starknet_getClassAt |
✔️ |
starknet_getBlockTransactionCount |
✔️ |
starknet_call |
✔️ |
starknet_estimateFee |
✔️ |
starknet_blockNumber |
✔️ |
starknet_blockHashAndNumber |
✔️ |
starknet_chainId |
✔️ |
starknet_pendingTransactions |
✔️ |
starknet_syncing |
✔️ |
starknet_getEvents |
✔️ |
starknet_getNonce |
✔️ |
starknet_addInvokeTransaction |
✔️ |
starknet_addDeclareTransaction |
✔️ |
starknet_addDeployAccountTransaction |
✔️ |
starknet_traceTransaction |
❌ |
starknet_simulateTransaction |
❌ |
starknet_traceBlockTransactions |
❌ |
go test -v ./...
go test -v ./rpc -env [mainnet|devnet|testnet|mock]
go test -bench=.
We're always looking for passionate developers to join our community and
contribute to starknet.go
. Check out our contributing guide
for more information on how to get started.
This project is licensed under the MIT license.
See LICENSE for more information.
Happy coding! 🎉
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!