We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to derive PDAs using this package ?
The text was updated successfully, but these errors were encountered:
@aravinddojima you can find PDA in the next way (authority for Raydium):
Raydium
package main import ( "fmt" "github.com/gagliardetto/solana-go" ) func main() { seed := [][]byte{[]byte("amm authority")} programID := solana.MustPublicKeyFromBase58("675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8") addr, nonce, err := solana.FindProgramAddress(seed, programID) if err != nil { // handle error somehow } fmt.Printf("addr: %s nonce: %d \n", addr, nonce) } // Prints // addr: 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1 nonce: 254
Sorry, something went wrong.
No branches or pull requests
Is there any way to derive PDAs using this package ?
The text was updated successfully, but these errors were encountered: