⚠️ 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 Spec:
Method | Implemented (*) |
---|---|
starknet_getBlockByHash |
✔️ |
starknet_getBlockByNumber |
✔️ |
starknet_getTransactionByHash |
✔️ |
starknet_getTransactionReceipt |
✔️ |
starknet_getClass |
✔️ |
starknet_getClassHashAt |
✔️ |
starknet_getClassAt |
✔️ |
starknet_call |
✔️ |
starknet_blockNumber |
✔️ |
starknet_chainId |
✔️ |
starknet_syncing |
✔️ |
starknet_getEvents |
✔️ |
starknet_addInvokeTransaction |
✔️ |
starknet_addDeployTransaction |
✔️ |
starknet_addDeclareTransaction |
✔️ |
starknet_estimateFee |
✔️ |
starknet_getBlockTransactionCountByHash |
✔️ |
starknet_getBlockTransactionCountByNumber |
✔️ |
starknet_getTransactionByBlockNumberAndIndex |
✔️ |
starknet_getTransactionByBlockHashAndIndex |
✔️ |
starknet_getStorageAt |
✔️ |
starknet_getNonce |
✔️ |
starknet_getStateUpdate |
✔️ |
*starknet_traceBlockTransactions |
❌ |
*starknet_traceTransaction |
❌ |
(*) some methods are not implemented because they are not yet available from eqlabs/pathfinder.
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):
drspacemn 💻 |
Gregory Guillou 💻 |
Tarrence van As 💻 |
Alex Sumner 💻 |
Yun 💻 |
Zoraiz Mahmood 💻 |
Lucas @ StarkWare 💻 |
Coburn 💻 |
Larko 💻 |
oxlime 💻 |
Blaž Hrastnik 💻 |
Florian 💻 |
greged93 💻 |
Jean-Sébastien Ney 💻 |
Kristijan Rebernisak 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!