Practical overview
When it fits
Consider it when you need a Go library for Starknet interactions or are examining an existing integration. The repository says it is no longer maintained and remains available in read-only mode, so factor that status into any adoption decision.
Who it is for
- Go developers building backend software that interacts with Starknet.
- Developers creating WebAssembly frontends with Starknet wallet operations.
- Teams reviewing or maintaining software that already uses the library.
Documented uses
- Call Starknet contracts and retrieve chain data through RPC methods.
- Manage accounts, including deploying an account contract.
- Submit invoke, declare and deploy-account transactions.
- Use examples for paymaster interactions, typed-data signing and verification, and WebSocket subscriptions.
Requirements & limits
The public GitHub repository is available under the MIT license. Its README says the code remains available in read-only mode; it does not describe a hosted service or account requirement.
- The README identifies Starknet RPC v0.9.0 as the implemented specification.
- The listed examples include testnet contract calls, account deployment, transactions, paymaster use, typed data, and WebSocket subscriptions.
- The repository states that the project is no longer maintained and is intended to be archived.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Create a Go application that reads Starknet chain data
Set up and run a basic application that connects to a Starknet RPC endpoint and retrieves the chain ID and latest block number.
Before you start
- Go 1.23 or higher, as listed in the guide prerequisites.
- A Starknet RPC endpoint.
- Basic familiarity with Go.
Steps
Create a project directory and initialize a Go module with the command below.
go mod init my-starknet-appAdd the library and environment-file dependency with the command below and the command below, then run the command below.
go get github.com/NethermindEth/starknet.gogo get github.com/joho/godotenvgo mod tidyCreate a
.envfile in the project root containingSTARKNET_RPC_URL=. Use an endpoint whose JSON-RPC spec version matches the library version.Create
main.gousing the guide’s example: load.env, readSTARKNET_RPC_URL, create a provider withrpc.NewProvider, then callChainIDandBlockNumberand print the results.Run the program with the command below.
go run main.go
Expected outcome
The example connects to Starknet and prints the chain ID and latest block number; the guide illustrates output including `SN_SEPOLIA`.
Guide limitations
- An accessible, correctly configured RPC endpoint is needed; network calls can fail, so handle errors.
- The repository README says the project is no longer maintained and will be archived; its code is available in read-only mode for reference.
- The README lists RPC v0.9.0 support, while the documentation page describes v0.8.0 coverage; verify the required spec against the library version and endpoint.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 13 October 2026
- Original website title
- NethermindEth/starknet.go · Official homepage title · retained in its source language

