<img src="https://img.shields.io/badge/Documentation-Website-yellow"
height="50" />
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.
starknet simpleCall
cd examples/simpleCall
go run main.go
Check here for more details
starknet deployAccount
cd examples/deployAccount
go run main.go
Check here for more details
starknet invokeTransaction
cd examples/simpleInvoke
go run main.go
Check here for more details
starknet deployContractUDC
cd examples/deployContractUDC
go run main.go
Check here for more details.
Check here for some FAQ answered by these examples.
starknet.go
RPC implements the Starknet RPC v0.7.1 spec
Method | Implemented (*) |
---|---|
starknet_getBlockWithReceipts |
:heavy_check_mark: |
starknet_getBlockWithTxHashes |
:heavy_check_mark: |
starknet_getBlockWithTxs |
:heavy_check_mark: |
starknet_getStateUpdate |
:heavy_check_mark: |
starknet_getStorageAt |
:heavy_check_mark: |
starknet_getTransactionByHash |
:heavy_check_mark: |
starknet_getTransactionByBlockIdAndIndex |
:heavy_check_mark: |
starknet_getTransactionReceipt |
:heavy_check_mark: |
starknet_getTransactionStatus |
:heavy_check_mark: |
starknet_getClass |
:heavy_check_mark: |
starknet_getClassHashAt |
:heavy_check_mark: |
starknet_getClassAt |
:heavy_check_mark: |
starknet_getBlockTransactionCount |
:heavy_check_mark: |
starknet_call |
:heavy_check_mark: |
starknet_estimateFee |
:heavy_check_mark: |
starknet_estimateMessageFee |
:heavy_check_mark: |
starknet_blockNumber |
:heavy_check_mark: |
starknet_blockHashAndNumber |
:heavy_check_mark: |
starknet_chainId |
:heavy_check_mark: |
starknet_syncing |
:heavy_check_mark: |
starknet_getEvents |
:heavy_check_mark: |
starknet_getNonce |
:heavy_check_mark: |
starknet_addInvokeTransaction |
:heavy_check_mark: |
starknet_addDeclareTransaction |
:heavy_check_mark: |
starknet_addDeployAccountTransaction |
:heavy_check_mark: |
starknet_traceTransaction |
:heavy_check_mark: |
starknet_simulateTransaction |
:heavy_check_mark: |
starknet_specVersion |
:heavy_check_mark: |
starknet_traceBlockTransactions |
:heavy_check_mark: |
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!