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
- Account management: Deploy accounts easily
- Good concurrency support
- library documentation available at pkg.go.dev.
- simple call example to make a contract call to a testnet contract.
- deploy account example to deploy a new account contract on testnet.
- invoke transaction example to add a new invoke transaction on testnet.
- deploy contract UDC example to deploy an ERC20 token using UDC (Universal Deployer Contract) on testnet.
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 |
βοΈ |
starknet_getBlockWithTxHashes |
βοΈ |
starknet_getBlockWithTxs |
βοΈ |
starknet_getStateUpdate |
βοΈ |
starknet_getStorageAt |
βοΈ |
starknet_getTransactionByHash |
βοΈ |
starknet_getTransactionByBlockIdAndIndex |
βοΈ |
starknet_getTransactionReceipt |
βοΈ |
starknet_getTransactionStatus |
βοΈ |
starknet_getClass |
βοΈ |
starknet_getClassHashAt |
βοΈ |
starknet_getClassAt |
βοΈ |
starknet_getBlockTransactionCount |
βοΈ |
starknet_call |
βοΈ |
starknet_estimateFee |
βοΈ |
starknet_estimateMessageFee |
βοΈ |
starknet_blockNumber |
βοΈ |
starknet_blockHashAndNumber |
βοΈ |
starknet_chainId |
βοΈ |
starknet_syncing |
βοΈ |
starknet_getEvents |
βοΈ |
starknet_getNonce |
βοΈ |
starknet_addInvokeTransaction |
βοΈ |
starknet_addDeclareTransaction |
βοΈ |
starknet_addDeployAccountTransaction |
βοΈ |
starknet_traceTransaction |
βοΈ |
starknet_simulateTransaction |
βοΈ |
starknet_specVersion |
βοΈ |
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!