pub struct CreateMasterEditionV3Builder { /* private fields */ }
Expand description
Instruction builder for CreateMasterEditionV3
.
Accounts:
[writable]
edition[writable]
mint[signer]
update_authority[signer]
mint_authority[writable, signer]
payer[writable]
metadata[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
system_program (default to11111111111111111111111111111111
)[optional]
rent
Implementations§
source§impl CreateMasterEditionV3Builder
impl CreateMasterEditionV3Builder
pub fn new() -> Self
sourcepub fn edition(&mut self, edition: Pubkey) -> &mut Self
pub fn edition(&mut self, edition: Pubkey) -> &mut Self
Unallocated edition V2 account with address as pda of [‘metadata’, program id, mint, ‘edition’]
Update authority
Mint authority on the metadata’s mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
Token program
sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
System program
sourcepub fn max_supply(&mut self, max_supply: u64) -> &mut Self
pub fn max_supply(&mut self, max_supply: u64) -> &mut Self
[optional argument]
sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
source§impl Default for CreateMasterEditionV3Builder
impl Default for CreateMasterEditionV3Builder
source§fn default() -> CreateMasterEditionV3Builder
fn default() -> CreateMasterEditionV3Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CreateMasterEditionV3Builder
impl Send for CreateMasterEditionV3Builder
impl Sync for CreateMasterEditionV3Builder
impl Unpin for CreateMasterEditionV3Builder
impl UnwindSafe for CreateMasterEditionV3Builder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more