Struct mpl_token_metadata::instruction::builders::Delegate
source · pub struct Delegate {Show 15 fields
pub delegate_record: Option<Pubkey>,
pub delegate: Pubkey,
pub metadata: Pubkey,
pub master_edition: Option<Pubkey>,
pub token_record: Option<Pubkey>,
pub mint: Pubkey,
pub token: Option<Pubkey>,
pub authority: Pubkey,
pub payer: Pubkey,
pub system_program: Pubkey,
pub sysvar_instructions: Pubkey,
pub spl_token_program: Option<Pubkey>,
pub authorization_rules_program: Option<Pubkey>,
pub authorization_rules: Option<Pubkey>,
pub args: DelegateArgs,
}
Fields§
§delegate_record: Option<Pubkey>
§delegate: Pubkey
§metadata: Pubkey
§master_edition: Option<Pubkey>
§token_record: Option<Pubkey>
§mint: Pubkey
§token: Option<Pubkey>
§payer: Pubkey
§system_program: Pubkey
§sysvar_instructions: Pubkey
§spl_token_program: Option<Pubkey>
§args: DelegateArgs
Trait Implementations§
source§impl InstructionBuilder for Delegate
impl InstructionBuilder for Delegate
Delegates an action over an asset to a specific account.
Accounts:
[writable]
Delegate record account[]
Delegated owner[writable]
Metadata account[optional]
Master Edition account[]
Mint account[optional, writable]
Token account[signer]
Approver (update authority or token owner) to approve the delegation[signer, writable]
Payer[]
System Program[]
Instructions sysvar account[optional]
SPL Token Program[optional]
Token Authorization Rules program[optional]
Token Authorization Rules account