NethermindEth
starknet.go
Go

Golang Library for StarkNet/Cairo

Last updated Apr 20, 2026
177
Stars
140
Forks
35
Issues
0
Stars/day
Attention Score
92
Language breakdown
Go 99.6%
Makefile 0.3%
Shell 0.1%
Files click to expand
README
[!CAUTION]
This repository is no longer under maintenance and will be archived soon.
Thank you to all contributors and users who supported starknet.go over the years.
The codebase remains available in read-only mode for reference purposes.

Go Reference Main tests

Get the gopher Starkpilled



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.

🌟 Features

  • Seamless interaction with the Starknet RPC
  • Tight integration with Juno
  • Account management: Deploy accounts easily
  • Good concurrency support

Getting Started

Check here for some FAQ.

RPC

starknet.go RPC implements the Starknet RPC v0.9.0 spec

| Method | Implemented (*) | | ------------------------------------------ | ------------------ | | starknetgetBlockWithReceipts | :heavycheck_mark: | | starknetgetBlockWithTxHashes | :heavycheck_mark: | | starknetgetBlockWithTxs | :heavycheck_mark: | | starknetgetStateUpdate | :heavycheck_mark: | | starknetgetStorageAt | :heavycheck_mark: | | starknetgetTransactionByHash | :heavycheck_mark: | | starknetgetTransactionByBlockIdAndIndex | :heavycheck_mark: | | starknetgetTransactionReceipt | :heavycheck_mark: | | starknetgetTransactionStatus | :heavycheck_mark: | | starknetgetClass | :heavycheck_mark: | | starknetgetClassHashAt | :heavycheck_mark: | | starknetgetClassAt | :heavycheck_mark: | | starknetgetBlockTransactionCount | :heavycheck_mark: | | starknetcall | :heavycheck_mark: | | starknetestimateFee | :heavycheck_mark: | | starknetestimateMessageFee | :heavycheck_mark: | | starknetblockNumber | :heavycheck_mark: | | starknetblockHashAndNumber | :heavycheck_mark: | | starknetchainId | :heavycheck_mark: | | starknetsyncing | :heavycheck_mark: | | starknetgetEvents | :heavycheck_mark: | | starknetgetNonce | :heavycheck_mark: | | starknetaddInvokeTransaction | :heavycheck_mark: | | starknetaddDeclareTransaction | :heavycheck_mark: | | starknetaddDeployAccountTransaction | :heavycheck_mark: | | starknettraceTransaction | :heavycheck_mark: | | starknetsimulateTransaction | :heavycheck_mark: | | starknetspecVersion | :heavycheck_mark: | | starknettraceBlockTransactions | :heavycheck_mark: | | starknetgetStorageProof | :heavycheck_mark: | | starknetgetMessagesStatus | :heavycheck_mark: | | starknetgetCompiledCasm | :heavycheck_mark: |

WebSocket Methods

| Method | Implemented (*) | | ------------------------------------------ | ------------------ | | starknetsubscribeEvents | :heavycheck_mark: | | starknetsubscribeNewHeads | :heavycheck_mark: | | starknetsubscribeNewTransactions | :heavycheck_mark: | | starknetsubscribeNewTransactionReceipts | :heavycheck_mark: |

Run Tests

go test -v ./...

Run RPC Tests

go test -v ./rpc -env [mainnet|devnet|testnet|mock]

Run Benchmarks

go test -bench=.

📖 License

This project is licensed under the MIT license.

See LICENSE for more information.

Happy coding! 🎉

Contributors ✨

Thanks goes to these wonderful people

© 2026 GitRepoTrend · NethermindEth/starknet.go · Updated daily from GitHub