๐ŸŒŸ Features

April 20, 2026 ยท View on GitHub

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

MethodImplemented (*)
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:
starknet_getStorageProof:heavy_check_mark:
starknet_getMessagesStatus:heavy_check_mark:
starknet_getCompiledCasm:heavy_check_mark:

WebSocket Methods

MethodImplemented (*)
starknet_subscribeEvents:heavy_check_mark:
starknet_subscribeNewHeads:heavy_check_mark:
starknet_subscribeNewTransactions:heavy_check_mark:
starknet_subscribeNewTransactionReceipts:heavy_check_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