8000 GitHub - devlongs/anchor-go: Generate Go clients from anchor IDLs for Solana blockchain programs · GitHub
[go: up one dir, main page]

Skip to content

About

Generate Go clients from anchor IDLs for Solana blockchain programs

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

292 Commits

Folders and files

Repository files navigation

anchor-go

logo

usage

# Install anchor-go
go install github.com/gagliardetto/anchor-go@latest

# Generate code from an IDL file
anchor-go --idl /path/to/idl.json --output ./generated --program-id 0123456789abcdef0123456789abcdef0123456789

# This version of `anchor-go` only supports the IDL format of anchor starting with version v0.30.0.
# If you have an older version of an IDL (many programs still have those), you can convert them with `anchor idl convert <my-program-old-idl.json> > <my-program-NEW-idl.json>` to the new format.

Features

  • instructions
  • accounts
  • events
  • types
  • handle tuple types
  • constants
  • error parsing

what is anchor-go?

anchor-go generates Go clients for Solana programs (smart contracts) written using the anchor framework.

It reads the IDL (Interface Definition Language) file generated by anchor and produces Go code that can be used to interact with the program and its data structures.

About

Generate Go clients from anchor IDLs for Solana blockchain programs

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0