Skip to content

Generate Go clients from anchor IDLs for Solana blockchain programs

License

Notifications You must be signed in to change notification settings

fragmetric-labs/solana-anchor-go

 
 

Repository files navigation

anchor-go

logo

Usage

$ go build
$ ./solana-anchor-go -src=./example/dummy_idl.json -pkg=dummy -dst=./generated/dummy

Generated Code will be generated and saved to ./generated/. And check ./example/dummy_test.go for generated code usage.

Test

Build and generate code, then run test.

$ make dummy
$ make restaking

TODO

  • instructions
  • accounts
  • types
  • events
  • errors
  • handle tuple types
  • constants (?)

About

Generate Go clients from anchor IDLs for Solana blockchain programs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.8%
  • Makefile 0.2%