Skip to content

NethermindEth/starknet.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

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

Repository files navigation

Go Reference test

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

Run Examples

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.

RPC

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 βœ”οΈ

Run Tests

go test -v ./...

Run RPC Tests

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

Run Benchmarks

go test -bench=.

Compatibility and stability

🀝 Contribute

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.

πŸ“– License

This project is licensed under the MIT license.

See LICENSE for more information.

Happy coding! πŸŽ‰

Contributors ✨

Thanks goes to these wonderful people (emoji key):

drspacemn
drspacemn

πŸ’»
Gregory Guillou
Gregory Guillou

πŸ’»
Tarrence van As
Tarrence van As

πŸ’»
Alex Sumner
Alex Sumner

πŸ’»
Yun
Yun

πŸ’»
Zoraiz Mahmood
Zoraiz Mahmood

πŸ’»
Lucas @ StarkWare
Lucas @ StarkWare

πŸ’»
Coburn
Coburn

πŸ’»
Larko
Larko

πŸ’»
oxlime
oxlime

πŸ’»
BlaΕΎ Hrastnik
BlaΕΎ Hrastnik

πŸ’»
Florian
Florian

πŸ’»
greged93
greged93

πŸ’»
Jean-SΓ©bastien Ney
Jean-SΓ©bastien Ney

πŸ’»
Kristijan Rebernisak
Kristijan Rebernisak

πŸ’»
rianhughes
Rian Hughes

πŸ’»
Carmen
Carmen Irene Cabrera RodrΓ­guez

πŸ’»
Josh
Josh Klopfenstein

πŸ’»
Antonio
Antonio Quental

πŸ“–
Jelilat
Jelilat Anofiu

πŸ’»
JorikSchellekens
Jorik Schellekens

πŸ“–
Akashneelesh
Akashneelesh

πŸ’‘
fico
Fico

πŸ’»
Bitcoinnoobie
Bitcoinnoobie

πŸ’»
stranger80
stranger80

πŸ’»
omahs
omahs

πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!