Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NethermindEth/starknet.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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 (*)
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 βœ”οΈ
starknet_getStorageProof βœ”οΈ
starknet_getMessagesStatus βœ”οΈ
starknet_getCompiledCasm βœ”οΈ

WebSocket Methods

Method Implemented (*)
starknet_subscribeEvents βœ”οΈ
starknet_subscribeNewHeads βœ”οΈ
starknet_subscribeNewTransactions βœ”οΈ
starknet_subscribeNewTransactionReceipts βœ”οΈ

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