Skip to content

How to send custom instructions via instruction data #381

Answered by hoakbuilds
sh4hri4roo asked this question in Q&A
Discussion options

You must be logged in to vote

The same way you would interact with any other program. We have a lot of implemented programs, you will need to implement methods like the ones seen here and add those TransactionInstruction to the TransactionBuilder.

If you're using anchor for your program, you can use Solnet.Anchor to generate a client to fetch the accounts and create the instructions + submit them.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sh4hri4roo
Comment options

@hoakbuilds
Comment options

@sh4hri4roo
Comment options

Answer selected by sh4hri4roo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants