Quantcast
Channel: Passing Data and Accounts to Anchor Program - Solana Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Henry E for Passing Data and Accounts to Anchor Program

From @sohrab's useful blogpost on invoking anchor programs in regular solana programs// prepare instruction datastruct DoSomething { x: u8,}let instruction_data: Vec<u8> =...

View Article


Passing Data and Accounts to Anchor Program

On a low level, solana programs take instructions which only have 3 fields, an account vec, a bytearray of data, and the programID. This makes it easy to invoke programs from other programs by...

View Article
Browsing all 2 articles
Browse latest View live