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 is currently under active development and is experiencing a rearchitecture. It will undergo breaking changes.

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 mod tidy
go run main.go

Check here for more details

starknet deployAccount

cd examples/deployAccount
go mod tidy
go run main.go

Check here for more details

starknet invokeTransaction

cd examples/simpleInvoke
go mod tidy
go run main.go

Check here for more details

RPC

starknet.go RPC implements the Starknet RPC v0.7.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 โœ”๏ธ

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!