starknet.go

module
v0.0.0-...-4fa4744 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: MIT

README ΒΆ

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

πŸ’»
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!

Directories ΒΆ

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL