Struct streamflow_sdk::instruction::create::CreateAccounts
source · [−]pub struct CreateAccounts<'a> {Show 16 fields
pub sender: AccountInfo<'a>,
pub sender_tokens: AccountInfo<'a>,
pub recipient: AccountInfo<'a>,
pub recipient_tokens: AccountInfo<'a>,
pub metadata: AccountInfo<'a>,
pub escrow_tokens: AccountInfo<'a>,
pub streamflow_treasury: AccountInfo<'a>,
pub streamflow_treasury_tokens: AccountInfo<'a>,
pub partner: AccountInfo<'a>,
pub partner_tokens: AccountInfo<'a>,
pub mint: AccountInfo<'a>,
pub fee_oracle: AccountInfo<'a>,
pub rent: AccountInfo<'a>,
pub token_program: AccountInfo<'a>,
pub associated_token_program: AccountInfo<'a>,
pub system_program: AccountInfo<'a>,
}Fields
sender: AccountInfo<'a>Wallet of the stream creator.
sender_tokens: AccountInfo<'a>Associated token account address of sender.
recipient: AccountInfo<'a>Wallet address of the recipient.
recipient_tokens: AccountInfo<'a>Associated token account address of recipient.
metadata: AccountInfo<'a>The account holding the stream parameters. Expects empty (non-initialized) account.
escrow_tokens: AccountInfo<'a>The escrow account holding the funds. Expects a non-initialized account.
streamflow_treasury: AccountInfo<'a>Streamflow treasury account
streamflow_treasury_tokens: AccountInfo<'a>Streamflow treasury’s associated token account
partner: AccountInfo<'a>Partner treasury account
partner_tokens: AccountInfo<'a>Partner’s associated token account
mint: AccountInfo<'a>The SPL token mint account
fee_oracle: AccountInfo<'a>Internal program that handles fees for specified partners
rent: AccountInfo<'a>The Rent Sysvar account
token_program: AccountInfo<'a>The SPL program needed in case an associated account for the new recipient is being created.
associated_token_program: AccountInfo<'a>The Associated Token program needed in case associated account for the new recipient is being created.
system_program: AccountInfo<'a>The Solana system program needed for account creation
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreateAccounts<'a>
impl<'a> !Send for CreateAccounts<'a>
impl<'a> !Sync for CreateAccounts<'a>
impl<'a> Unpin for CreateAccounts<'a>
impl<'a> !UnwindSafe for CreateAccounts<'a>
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more