pub fn build_ix(
program_id: &Pubkey,
name: &str,
args: impl BorshSerialize,
accounts: Vec<AccountMeta>,
) -> InstructionExpand description
Build an Anchor instruction with discriminator + borsh-serialized args.
pub fn build_ix(
program_id: &Pubkey,
name: &str,
args: impl BorshSerialize,
accounts: Vec<AccountMeta>,
) -> InstructionBuild an Anchor instruction with discriminator + borsh-serialized args.