Metaplex Token Metadata decoder
Decode Metaplex Token Metadata instructions and accounts in Rust with the carbon-mpl-token-metadata-decoder crate.
On this page
carbon-mpl-token-metadata-decoder decodes the instructions and accounts of the Metaplex Token Metadata program (metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s): 58 instructions, 14 account types. It is generated with Codama from the program's IDL; see decoders for how decoders plug into a pipeline.
| Crate | carbon-mpl-token-metadata-decoder 2.0.0 |
| Install | cargo add carbon-mpl-token-metadata-decoder@2. |
| Program ID | metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s (carbon_) |
| Category | NFTs & metadata |
| Decoder | carbon_ |
| Instruction enum | instructions:: |
| Account enum | accounts:: |
| Features | serde, postgres, graphql (none enabled by default) |
| API docs | docs.rs/carbon-mpl-token-metadata-decoder/2.0.0 |
| Source | decoders/mpl-token-metadata-decoder |
Other NFT and metadata decoders: Bubblegum, Metaplex Core. To decode several in one pipeline, see nFT and metadata decoders.
The serde feature derives Serialize/Deserialize on every type, postgres adds tables and processors for Postgres, and graphql adds a schema for the GraphQL server.
Usage#
This program crawls recent Metaplex Token Metadata transactions from the public RPC and prints every decoded CreateMetadataAccountV3 instruction. Add the dependencies:
cargo add carbon-core@2.0.0 carbon-mpl-token-metadata-decoder@2.0.0 carbon-rpc-transaction-crawler-datasource@2.0.0 carbon-log-metrics@2.0.0 env_logger tokio --features tokio/fulluse {
carbon_core::{
error::CarbonResult, instruction::InstructionProcessorInputType, pipeline::Pipeline,
processor::Processor,
},
carbon_log_metrics::LogMetrics,
carbon_mpl_token_metadata_decoder::{
instructions::MplTokenMetadataInstruction, MplTokenMetadataDecoder, PROGRAM_ID,
},
carbon_rpc_transaction_crawler_datasource::{ConnectionConfig, Filters, RpcTransactionCrawler},
std::sync::Arc,
};
#[tokio::main]
async fn main() -> CarbonResult<()> {
env_logger::init();
// Fetches the program's recent transactions over JSON-RPC, newest first.
let datasource = RpcTransactionCrawler::new(
"https://api.mainnet-beta.solana.com".to_string(),
PROGRAM_ID,
ConnectionConfig::default(),
Filters::new(None, None, None),
None,
);
Pipeline::builder()
.datasource(datasource)
.metrics(Arc::new(LogMetrics::new()))
.instruction(MplTokenMetadataDecoder, InstructionLogger)
.build()?
.run()
.await
}
struct InstructionLogger;
impl Processor<InstructionProcessorInputType<'_, MplTokenMetadataInstruction>> for InstructionLogger {
async fn process(
&mut self,
input: &InstructionProcessorInputType<'_, MplTokenMetadataInstruction>,
) -> CarbonResult<()> {
let signature = input.metadata.transaction_metadata.signature;
if let MplTokenMetadataInstruction::CreateMetadataAccountV3 { data, accounts, .. } = input.decoded_instruction {
println!("create_metadata_account_v3 {signature}: {data:?} metadata={}", accounts.metadata);
}
Ok(())
}
}RUST_LOG=info cargo runEach CreateMetadataAccountV3 instruction prints one line with the transaction signature and the decoded CreateMetadataAccountV3 data. The public endpoint rate-limits requests, so the first lines can take a while; use your own RPC URL for anything beyond a test. See stream with RPC for the crawler options.
Decode accounts#
The transaction crawler emits transactions only. To decode accounts, use a datasource that emits account updates. This program subscribes to the program's accounts with programSubscribe on the public WebSocket endpoint and prints every decoded CollectionAuthorityRecord account as it changes. Add the datasource and the Solana RPC types it takes:
cargo add carbon-rpc-program-subscribe-datasource@2.0.0 solana-client@4.2.2use {
carbon_core::{
account::AccountProcessorInputType, error::CarbonResult, pipeline::Pipeline,
processor::Processor,
},
carbon_log_metrics::LogMetrics,
carbon_mpl_token_metadata_decoder::{
accounts::MplTokenMetadataAccount, MplTokenMetadataDecoder, PROGRAM_ID,
},
carbon_rpc_program_subscribe_datasource::{Filters, RpcProgramSubscribe},
solana_client::rpc_config::{RpcAccountInfoConfig, RpcProgramAccountsConfig, UiAccountEncoding},
std::sync::Arc,
};
#[tokio::main]
async fn main() -> CarbonResult<()> {
env_logger::init();
// Streams every change to an account owned by the program (programSubscribe).
let config = RpcProgramAccountsConfig {
account_config: RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Base64),
..Default::default()
},
..Default::default()
};
let datasource = RpcProgramSubscribe::new(
"wss://api.mainnet-beta.solana.com".to_string(),
Filters::new(PROGRAM_ID, Some(config)),
);
Pipeline::builder()
.datasource(datasource)
.metrics(Arc::new(LogMetrics::new()))
.account(MplTokenMetadataDecoder, AccountLogger)
.build()?
.run()
.await
}
struct AccountLogger;
impl Processor<AccountProcessorInputType<'_, MplTokenMetadataAccount>> for AccountLogger {
async fn process(
&mut self,
input: &AccountProcessorInputType<'_, MplTokenMetadataAccount>,
) -> CarbonResult<()> {
if let MplTokenMetadataAccount::CollectionAuthorityRecord(collection_authority_record) = &input.decoded_account.data {
println!("collection_authority_record {}: {collection_authority_record:?}", input.metadata.pubkey);
}
Ok(())
}
}RUST_LOG=info cargo runEach update to a CollectionAuthorityRecord account prints its address and decoded fields; the program runs until you stop it. Cargo resolves solana-client to 4.2.2, the exact version the datasource pins, so both use the same RpcProgramAccountsConfig type. To load every existing account once instead of streaming changes, see load account state.
Instructions#
Variants of MplTokenMetadataInstruction. Each is MplTokenMetadataInstruction::, where data and accounts are the types listed under the variant, exported from carbon_. Discriminators are the leading bytes of the instruction data, in hex.
How an instruction decodes. The decoder returns a variant only when all of these hold; otherwise the instruction is skipped and no processor is called:
- The instruction's program ID is
metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s. - The data starts with the variant's discriminator, and the rest deserializes into its data type.
- The instruction has at least as many accounts as the variant requires (the "Required accounts" count under each variant).
Accounts. They are matched by position, in the order listed. An account marked optional is None only when the instruction ends before it; Anchor programs pass the program ID as a placeholder for an omitted optional account, so check for Some(PROGRAM_ too. Accounts after the listed ones are in accounts. as AccountMetas. The decoder doesn't record whether an account signed or was writable: read that from input. and ., which follow the same order. It doesn't check signer, writable, owner or PDA constraints either; the program enforced those when the transaction executed, so a decoded instruction from a successful transaction already satisfied them.
ApproveCollectionAuthority#
Discriminator 17 · data ApproveCollectionAuthority · accounts ApproveCollectionAuthorityInstructionAccounts.
No data fields.
Required accounts: 7 (8 listed); extras go to remaining.
Fields of ApproveCollectionAuthorityInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | collection_ | Pubkey |
| 1 | new_ | Pubkey |
| 2 | update_ | Pubkey |
| 3 | payer | Pubkey |
| 4 | metadata | Pubkey |
| 5 | mint | Pubkey |
| 6 | system_ | Pubkey |
| 7 | rent | Option< |
| 8… | remaining | Vec< |
ApproveUseAuthority#
Discriminator 14 · data ApproveUseAuthority · accounts ApproveUseAuthorityInstructionAccounts.
| Field | Type |
|---|---|
approve_ | ApproveUseAuthorityArgs |
Required accounts: 10 (11 listed); extras go to remaining.
Fields of ApproveUseAuthorityInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | use_ | Pubkey |
| 1 | owner | Pubkey |
| 2 | payer | Pubkey |
| 3 | user | Pubkey |
| 4 | owner_ | Pubkey |
| 5 | metadata | Pubkey |
| 6 | mint | Pubkey |
| 7 | burner | Pubkey |
| 8 | token_ | Pubkey |
| 9 | system_ | Pubkey |
| 10 | rent | Option< |
| 11… | remaining | Vec< |
BubblegumSetCollectionSize#
Discriminator 24 · data BubblegumSetCollectionSize · accounts BubblegumSetCollectionSizeInstructionAccounts.
| Field | Type |
|---|---|
set_ | SetCollectionSizeArgs |
Required accounts: 4 (5 listed); extras go to remaining.
Fields of BubblegumSetCollectionSizeInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | collection_ | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | collection_ | Pubkey |
| 3 | bubblegum_ | Pubkey |
| 4 | collection_ | Option< |
| 5… | remaining | Vec< |
Burn#
Discriminator 29 · data Burn · accounts BurnInstructionAccounts.
| Field | Type |
|---|---|
burn_args | BurnArgs |
Required accounts: 14; extras go to remaining.
Fields of BurnInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | collection_ | Option< |
| 2 | metadata | Pubkey |
| 3 | edition | Option< |
| 4 | mint | Pubkey |
| 5 | token | Pubkey |
| 6 | master_ | Option< |
| 7 | master_ | Option< |
| 8 | master_ | Option< |
| 9 | edition_ | Option< |
| 10 | token_ | Option< |
| 11 | system_ | Pubkey |
| 12 | sysvar_ | Pubkey |
| 13 | spl_ | Pubkey |
| 14… | remaining | Vec< |
BurnEditionNft#
Discriminator 25 · data BurnEditionNft · accounts BurnEditionNftInstructionAccounts.
No data fields.
Required accounts: 10; extras go to remaining.
Fields of BurnEditionNftInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | owner | Pubkey |
| 2 | print_ | Pubkey |
| 3 | master_ | Pubkey |
| 4 | print_ | Pubkey |
| 5 | master_ | Pubkey |
| 6 | master_ | Pubkey |
| 7 | print_ | Pubkey |
| 8 | edition_ | Pubkey |
| 9 | spl_ | Pubkey |
| 10… | remaining | Vec< |
BurnNft#
Discriminator 1d · data BurnNft · accounts BurnNftInstructionAccounts.
No data fields.
Required accounts: 6 (7 listed); extras go to remaining.
Fields of BurnNftInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | owner | Pubkey |
| 2 | mint | Pubkey |
| 3 | token_ | Pubkey |
| 4 | master_ | Pubkey |
| 5 | spl_ | Pubkey |
| 6 | collection_ | Option< |
| 7… | remaining | Vec< |
CloseAccounts#
Discriminator 39 · data CloseAccounts · accounts CloseAccountsInstructionAccounts.
No data fields.
Required accounts: 5; extras go to remaining.
Fields of CloseAccountsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | edition | Pubkey |
| 2 | mint | Pubkey |
| 3 | authority | Pubkey |
| 4 | destination | Pubkey |
| 5… | remaining | Vec< |
CloseEscrowAccount#
Discriminator 27 · data CloseEscrowAccount · accounts CloseEscrowAccountInstructionAccounts.
No data fields.
Required accounts: 8; extras go to remaining.
Fields of CloseEscrowAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | escrow | Pubkey |
| 1 | metadata | Pubkey |
| 2 | mint | Pubkey |
| 3 | token_ | Pubkey |
| 4 | edition | Pubkey |
| 5 | payer | Pubkey |
| 6 | system_ | Pubkey |
| 7 | sysvar_ | Pubkey |
| 8… | remaining | Vec< |
Collect#
Discriminator 36 · data Collect · accounts CollectInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of CollectInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | recipient | Pubkey |
| 2… | remaining | Vec< |
ConvertMasterEditionV1ToV2#
Discriminator 0c · data ConvertMasterEditionV1ToV2 · accounts ConvertMasterEditionV1ToV2InstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of ConvertMasterEditionV1ToV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | master_ | Pubkey |
| 1 | one_ | Pubkey |
| 2 | printing_ | Pubkey |
| 3… | remaining | Vec< |
Create#
Discriminator 2a · data Create · accounts CreateInstructionAccounts.
| Field | Type |
|---|---|
create_args | CreateArgs |
Required accounts: 8 (9 listed); extras go to remaining.
Fields of CreateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | master_ | Option< |
| 2 | mint | Pubkey |
| 3 | authority | Pubkey |
| 4 | payer | Pubkey |
| 5 | update_ | Pubkey |
| 6 | system_ | Pubkey |
| 7 | sysvar_ | Pubkey |
| 8 | spl_ | Option< |
| 9… | remaining | Vec< |
CreateEscrowAccount#
Discriminator 26 · data CreateEscrowAccount · accounts CreateEscrowAccountInstructionAccounts.
No data fields.
Required accounts: 8 (9 listed); extras go to remaining.
Fields of CreateEscrowAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | escrow | Pubkey |
| 1 | metadata | Pubkey |
| 2 | mint | Pubkey |
| 3 | token_ | Pubkey |
| 4 | edition | Pubkey |
| 5 | payer | Pubkey |
| 6 | system_ | Pubkey |
| 7 | sysvar_ | Pubkey |
| 8 | authority | Option< |
| 9… | remaining | Vec< |
CreateMasterEdition#
Discriminator 0a · data CreateMasterEdition · accounts CreateMasterEditionInstructionAccounts.
No data fields.
Required accounts: 9; extras go to remaining.
Fields of CreateMasterEditionInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | edition | Pubkey |
| 1 | mint | Pubkey |
| 2 | update_ | Pubkey |
| 3 | mint_ | Pubkey |
| 4 | payer | Pubkey |
| 5 | metadata | Pubkey |
| 6 | token_ | Pubkey |
| 7 | system_ | Pubkey |
| 8 | rent | Pubkey |
| 9… | remaining | Vec< |
CreateMasterEditionV3#
Discriminator 11 · data CreateMasterEditionV3 · accounts CreateMasterEditionV3InstructionAccounts.
| Field | Type |
|---|---|
create_ | CreateMasterEditionArgs |
Required accounts: 8 (9 listed); extras go to remaining.
Fields of CreateMasterEditionV3InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | edition | Pubkey |
| 1 | mint | Pubkey |
| 2 | update_ | Pubkey |
| 3 | mint_ | Pubkey |
| 4 | payer | Pubkey |
| 5 | metadata | Pubkey |
| 6 | token_ | Pubkey |
| 7 | system_ | Pubkey |
| 8 | rent | Option< |
| 9… | remaining | Vec< |
CreateMetadataAccount#
Discriminator 00 · data CreateMetadataAccount · accounts CreateMetadataAccountInstructionAccounts.
No data fields.
Required accounts: 7; extras go to remaining.
Fields of CreateMetadataAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | mint | Pubkey |
| 2 | mint_ | Pubkey |
| 3 | payer | Pubkey |
| 4 | update_ | Pubkey |
| 5 | system_ | Pubkey |
| 6 | rent | Pubkey |
| 7… | remaining | Vec< |
CreateMetadataAccountV2#
Discriminator 10 · data CreateMetadataAccountV2 · accounts CreateMetadataAccountV2InstructionAccounts.
No data fields.
Required accounts: 6 (7 listed); extras go to remaining.
Fields of CreateMetadataAccountV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | mint | Pubkey |
| 2 | mint_ | Pubkey |
| 3 | payer | Pubkey |
| 4 | update_ | Pubkey |
| 5 | system_ | Pubkey |
| 6 | rent | Option< |
| 7… | remaining | Vec< |
CreateMetadataAccountV3#
Discriminator 21 · data CreateMetadataAccountV3 · accounts CreateMetadataAccountV3InstructionAccounts.
| Field | Type |
|---|---|
create_ | CreateMetadataAccountArgsV3 |
Required accounts: 6 (7 listed); extras go to remaining.
Fields of CreateMetadataAccountV3InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | mint | Pubkey |
| 2 | mint_ | Pubkey |
| 3 | payer | Pubkey |
| 4 | update_ | Pubkey |
| 5 | system_ | Pubkey |
| 6 | rent | Option< |
| 7… | remaining | Vec< |
Delegate#
Discriminator 2c · data Delegate · accounts DelegateInstructionAccounts.
| Field | Type |
|---|---|
delegate_ | DelegateArgs |
Required accounts: 11 (14 listed); extras go to remaining.
Fields of DelegateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | delegate_ | Option< |
| 1 | delegate | Pubkey |
| 2 | metadata | Pubkey |
| 3 | master_ | Option< |
| 4 | token_ | Option< |
| 5 | mint | Pubkey |
| 6 | token | Option< |
| 7 | authority | Pubkey |
| 8 | payer | Pubkey |
| 9 | system_ | Pubkey |
| 10 | sysvar_ | Pubkey |
| 11 | spl_ | Option< |
| 12 | authorization_ | Option< |
| 13 | authorization_ | Option< |
| 14… | remaining | Vec< |
DeprecatedCreateMasterEdition#
Discriminator 02 · data DeprecatedCreateMasterEdition · accounts DeprecatedCreateMasterEditionInstructionAccounts.
No data fields.
Required accounts: 13; extras go to remaining.
Fields of DeprecatedCreateMasterEditionInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | edition | Pubkey |
| 1 | mint | Pubkey |
| 2 | printing_ | Pubkey |
| 3 | one_ | Pubkey |
| 4 | update_ | Pubkey |
| 5 | printing_ | Pubkey |
| 6 | mint_ | Pubkey |
| 7 | metadata | Pubkey |
| 8 | payer | Pubkey |
| 9 | token_ | Pubkey |
| 10 | system_ | Pubkey |
| 11 | rent | Pubkey |
| 12 | one_ | Pubkey |
| 13… | remaining | Vec< |
DeprecatedCreateReservationList#
Discriminator 06 · data DeprecatedCreateReservationList · accounts DeprecatedCreateReservationListInstructionAccounts.
No data fields.
Required accounts: 8; extras go to remaining.
Fields of DeprecatedCreateReservationListInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | reservation_ | Pubkey |
| 1 | payer | Pubkey |
| 2 | update_ | Pubkey |
| 3 | master_ | Pubkey |
| 4 | resource | Pubkey |
| 5 | metadata | Pubkey |
| 6 | system_ | Pubkey |
| 7 | rent | Pubkey |
| 8… | remaining | Vec< |
DeprecatedMintNewEditionFromMasterEditionViaPrintingToken#
Discriminator 03 · data DeprecatedMintNewEditionFromMasterEditionViaPrintingToken · accounts DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionAccounts.
No data fields.
Required accounts: 15 (16 listed); extras go to remaining.
Fields of DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | edition | Pubkey |
| 2 | master_ | Pubkey |
| 3 | mint | Pubkey |
| 4 | mint_ | Pubkey |
| 5 | printing_ | Pubkey |
| 6 | master_ | Pubkey |
| 7 | edition_ | Pubkey |
| 8 | burn_ | Pubkey |
| 9 | payer | Pubkey |
| 10 | master_ | Pubkey |
| 11 | master_ | Pubkey |
| 12 | token_ | Pubkey |
| 13 | system_ | Pubkey |
| 14 | rent | Pubkey |
| 15 | reservation_ | Option< |
| 16… | remaining | Vec< |
DeprecatedMintPrintingTokens#
Discriminator 09 · data DeprecatedMintPrintingTokens · accounts DeprecatedMintPrintingTokensInstructionAccounts.
No data fields.
Required accounts: 7; extras go to remaining.
Fields of DeprecatedMintPrintingTokensInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | destination | Pubkey |
| 1 | printing_ | Pubkey |
| 2 | update_ | Pubkey |
| 3 | metadata | Pubkey |
| 4 | master_ | Pubkey |
| 5 | token_ | Pubkey |
| 6 | rent | Pubkey |
| 7… | remaining | Vec< |
DeprecatedMintPrintingTokensViaToken#
Discriminator 08 · data DeprecatedMintPrintingTokensViaToken · accounts DeprecatedMintPrintingTokensViaTokenInstructionAccounts.
No data fields.
Required accounts: 9; extras go to remaining.
Fields of DeprecatedMintPrintingTokensViaTokenInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | destination | Pubkey |
| 1 | token | Pubkey |
| 2 | one_ | Pubkey |
| 3 | printing_ | Pubkey |
| 4 | burn_ | Pubkey |
| 5 | metadata | Pubkey |
| 6 | master_ | Pubkey |
| 7 | token_ | Pubkey |
| 8 | rent | Pubkey |
| 9… | remaining | Vec< |
DeprecatedSetReservationList#
Discriminator 05 · data DeprecatedSetReservationList · accounts DeprecatedSetReservationListInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of DeprecatedSetReservationListInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | master_ | Pubkey |
| 1 | reservation_ | Pubkey |
| 2 | resource | Pubkey |
| 3… | remaining | Vec< |
FreezeDelegatedAccount#
Discriminator 1a · data FreezeDelegatedAccount · accounts FreezeDelegatedAccountInstructionAccounts.
No data fields.
Required accounts: 5; extras go to remaining.
Fields of FreezeDelegatedAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | delegate | Pubkey |
| 1 | token_ | Pubkey |
| 2 | edition | Pubkey |
| 3 | mint | Pubkey |
| 4 | token_ | Pubkey |
| 5… | remaining | Vec< |
Lock#
Discriminator 2e · data Lock · accounts LockInstructionAccounts.
| Field | Type |
|---|---|
lock_args | LockArgs |
Required accounts: 10 (13 listed); extras go to remaining.
Fields of LockInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | token_owner | Option< |
| 2 | token | Pubkey |
| 3 | mint | Pubkey |
| 4 | metadata | Pubkey |
| 5 | edition | Option< |
| 6 | token_ | Option< |
| 7 | payer | Pubkey |
| 8 | system_ | Pubkey |
| 9 | sysvar_ | Pubkey |
| 10 | spl_ | Option< |
| 11 | authorization_ | Option< |
| 12 | authorization_ | Option< |
| 13… | remaining | Vec< |
Migrate#
Discriminator 30 · data Migrate · accounts MigrateInstructionAccounts.
No data fields.
Required accounts: 13 (15 listed); extras go to remaining.
Fields of MigrateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | edition | Pubkey |
| 2 | token | Pubkey |
| 3 | token_owner | Pubkey |
| 4 | mint | Pubkey |
| 5 | payer | Pubkey |
| 6 | authority | Pubkey |
| 7 | collection_ | Pubkey |
| 8 | delegate_ | Pubkey |
| 9 | token_ | Pubkey |
| 10 | system_ | Pubkey |
| 11 | sysvar_ | Pubkey |
| 12 | spl_ | Pubkey |
| 13 | authorization_ | Option< |
| 14 | authorization_ | Option< |
| 15… | remaining | Vec< |
Mint#
Discriminator 2b · data Mint · accounts MintInstructionAccounts.
| Field | Type |
|---|---|
mint_args | MintArgs |
Required accounts: 13 (15 listed); extras go to remaining.
Fields of MintInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | token | Pubkey |
| 1 | token_owner | Option< |
| 2 | metadata | Pubkey |
| 3 | master_ | Option< |
| 4 | token_ | Option< |
| 5 | mint | Pubkey |
| 6 | authority | Pubkey |
| 7 | delegate_ | Option< |
| 8 | payer | Pubkey |
| 9 | system_ | Pubkey |
| 10 | sysvar_ | Pubkey |
| 11 | spl_ | Pubkey |
| 12 | spl_ | Pubkey |
| 13 | authorization_ | Option< |
| 14 | authorization_ | Option< |
| 15… | remaining | Vec< |
MintNewEditionFromMasterEditionViaToken#
Discriminator 0b · data MintNewEditionFromMasterEditionViaToken · accounts MintNewEditionFromMasterEditionViaTokenInstructionAccounts.
| Field | Type |
|---|---|
mint_ | MintNewEditionFromMasterEditionViaTokenArgs |
Required accounts: 13 (14 listed); extras go to remaining.
Fields of MintNewEditionFromMasterEditionViaTokenInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | new_ | Pubkey |
| 1 | new_edition | Pubkey |
| 2 | master_ | Pubkey |
| 3 | new_mint | Pubkey |
| 4 | edition_ | Pubkey |
| 5 | new_ | Pubkey |
| 6 | payer | Pubkey |
| 7 | token_ | Pubkey |
| 8 | token_ | Pubkey |
| 9 | new_ | Pubkey |
| 10 | metadata | Pubkey |
| 11 | token_ | Pubkey |
| 12 | system_ | Pubkey |
| 13 | rent | Option< |
| 14… | remaining | Vec< |
MintNewEditionFromMasterEditionViaVaultProxy#
Discriminator 0d · data MintNewEditionFromMasterEditionViaVaultProxy · accounts MintNewEditionFromMasterEditionViaVaultProxyInstructionAccounts.
| Field | Type |
|---|---|
mint_ | MintNewEditionFromMasterEditionViaTokenArgs |
Required accounts: 16 (17 listed); extras go to remaining.
Fields of MintNewEditionFromMasterEditionViaVaultProxyInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | new_ | Pubkey |
| 1 | new_edition | Pubkey |
| 2 | master_ | Pubkey |
| 3 | new_mint | Pubkey |
| 4 | edition_ | Pubkey |
| 5 | new_ | Pubkey |
| 6 | payer | Pubkey |
| 7 | vault_ | Pubkey |
| 8 | safety_ | Pubkey |
| 9 | safety_ | Pubkey |
| 10 | vault | Pubkey |
| 11 | new_ | Pubkey |
| 12 | metadata | Pubkey |
| 13 | token_ | Pubkey |
| 14 | token_ | Pubkey |
| 15 | system_ | Pubkey |
| 16 | rent | Option< |
| 17… | remaining | Vec< |
Print#
Discriminator 37 · data Print · accounts PrintInstructionAccounts.
| Field | Type |
|---|---|
print_args | PrintArgs |
Required accounts: 18; extras go to remaining.
Fields of PrintInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | edition_ | Pubkey |
| 1 | edition | Pubkey |
| 2 | edition_ | Pubkey |
| 3 | edition_ | Pubkey |
| 4 | edition_ | Pubkey |
| 5 | edition_ | Pubkey |
| 6 | edition_ | Option< |
| 7 | master_ | Pubkey |
| 8 | edition_ | Pubkey |
| 9 | payer | Pubkey |
| 10 | master_ | Pubkey |
| 11 | master_ | Pubkey |
| 12 | master_ | Pubkey |
| 13 | update_ | Pubkey |
| 14 | spl_ | Pubkey |
| 15 | spl_ | Pubkey |
| 16 | sysvar_ | Pubkey |
| 17 | system_ | Pubkey |
| 18… | remaining | Vec< |
PuffMetadata#
Discriminator 0e · data PuffMetadata · accounts PuffMetadataInstructionAccounts.
No data fields.
Required accounts: 1; extras go to remaining.
Fields of PuffMetadataInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1… | remaining | Vec< |
RemoveCreatorVerification#
Discriminator 1c · data RemoveCreatorVerification · accounts RemoveCreatorVerificationInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of RemoveCreatorVerificationInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | creator | Pubkey |
| 2… | remaining | Vec< |
Resize#
Discriminator 38 · data Resize · accounts ResizeInstructionAccounts.
No data fields.
Required accounts: 7; extras go to remaining.
Fields of ResizeInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | edition | Pubkey |
| 2 | mint | Pubkey |
| 3 | payer | Pubkey |
| 4 | authority | Option< |
| 5 | token | Option< |
| 6 | system_ | Pubkey |
| 7… | remaining | Vec< |
Revoke#
Discriminator 2d · data Revoke · accounts RevokeInstructionAccounts.
| Field | Type |
|---|---|
revoke_args | RevokeArgs |
Required accounts: 11 (14 listed); extras go to remaining.
Fields of RevokeInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | delegate_ | Option< |
| 1 | delegate | Pubkey |
| 2 | metadata | Pubkey |
| 3 | master_ | Option< |
| 4 | token_ | Option< |
| 5 | mint | Pubkey |
| 6 | token | Option< |
| 7 | authority | Pubkey |
| 8 | payer | Pubkey |
| 9 | system_ | Pubkey |
| 10 | sysvar_ | Pubkey |
| 11 | spl_ | Option< |
| 12 | authorization_ | Option< |
| 13 | authorization_ | Option< |
| 14… | remaining | Vec< |
RevokeCollectionAuthority#
Discriminator 18 · data RevokeCollectionAuthority · accounts RevokeCollectionAuthorityInstructionAccounts.
No data fields.
Required accounts: 5; extras go to remaining.
Fields of RevokeCollectionAuthorityInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | collection_ | Pubkey |
| 1 | delegate_ | Pubkey |
| 2 | revoke_ | Pubkey |
| 3 | metadata | Pubkey |
| 4 | mint | Pubkey |
| 5… | remaining | Vec< |
RevokeUseAuthority#
Discriminator 15 · data RevokeUseAuthority · accounts RevokeUseAuthorityInstructionAccounts.
No data fields.
Required accounts: 8 (9 listed); extras go to remaining.
Fields of RevokeUseAuthorityInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | use_ | Pubkey |
| 1 | owner | Pubkey |
| 2 | user | Pubkey |
| 3 | owner_ | Pubkey |
| 4 | mint | Pubkey |
| 5 | metadata | Pubkey |
| 6 | token_ | Pubkey |
| 7 | system_ | Pubkey |
| 8 | rent | Option< |
| 9… | remaining | Vec< |
SetAndVerifyCollection#
Discriminator 19 · data SetAndVerifyCollection · accounts SetAndVerifyCollectionInstructionAccounts.
No data fields.
Required accounts: 7 (8 listed); extras go to remaining.
Fields of SetAndVerifyCollectionInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | payer | Pubkey |
| 3 | update_ | Pubkey |
| 4 | collection_ | Pubkey |
| 5 | collection | Pubkey |
| 6 | collection_ | Pubkey |
| 7 | collection_ | Option< |
| 8… | remaining | Vec< |
SetAndVerifySizedCollectionItem#
Discriminator 20 · data SetAndVerifySizedCollectionItem · accounts SetAndVerifySizedCollectionItemInstructionAccounts.
No data fields.
Required accounts: 7 (8 listed); extras go to remaining.
Fields of SetAndVerifySizedCollectionItemInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | payer | Pubkey |
| 3 | update_ | Pubkey |
| 4 | collection_ | Pubkey |
| 5 | collection | Pubkey |
| 6 | collection_ | Pubkey |
| 7 | collection_ | Option< |
| 8… | remaining | Vec< |
SetCollectionSize#
Discriminator 22 · data SetCollectionSize · accounts SetCollectionSizeInstructionAccounts.
| Field | Type |
|---|---|
set_ | SetCollectionSizeArgs |
Required accounts: 3 (4 listed); extras go to remaining.
Fields of SetCollectionSizeInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | collection_ | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | collection_ | Pubkey |
| 3 | collection_ | Option< |
| 4… | remaining | Vec< |
SetTokenStandard#
Discriminator 23 · data SetTokenStandard · accounts SetTokenStandardInstructionAccounts.
No data fields.
Required accounts: 3 (4 listed); extras go to remaining.
Fields of SetTokenStandardInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | update_ | Pubkey |
| 2 | mint | Pubkey |
| 3 | edition | Option< |
| 4… | remaining | Vec< |
SignMetadata#
Discriminator 07 · data SignMetadata · accounts SignMetadataInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of SignMetadataInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | creator | Pubkey |
| 2… | remaining | Vec< |
ThawDelegatedAccount#
Discriminator 1b · data ThawDelegatedAccount · accounts ThawDelegatedAccountInstructionAccounts.
No data fields.
Required accounts: 5; extras go to remaining.
Fields of ThawDelegatedAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | delegate | Pubkey |
| 1 | token_ | Pubkey |
| 2 | edition | Pubkey |
| 3 | mint | Pubkey |
| 4 | token_ | Pubkey |
| 5… | remaining | Vec< |
Transfer#
Discriminator 31 · data Transfer · accounts TransferInstructionAccounts.
| Field | Type |
|---|---|
transfer_ | TransferArgs |
Required accounts: 15 (17 listed); extras go to remaining.
Fields of TransferInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | token | Pubkey |
| 1 | token_owner | Pubkey |
| 2 | destination | Pubkey |
| 3 | destination_ | Pubkey |
| 4 | mint | Pubkey |
| 5 | metadata | Pubkey |
| 6 | edition | Option< |
| 7 | owner_ | Option< |
| 8 | destination_ | Option< |
| 9 | authority | Pubkey |
| 10 | payer | Pubkey |
| 11 | system_ | Pubkey |
| 12 | sysvar_ | Pubkey |
| 13 | spl_ | Pubkey |
| 14 | spl_ | Pubkey |
| 15 | authorization_ | Option< |
| 16 | authorization_ | Option< |
| 17… | remaining | Vec< |
TransferOutOfEscrow#
Discriminator 28 · data TransferOutOfEscrow · accounts TransferOutOfEscrowInstructionAccounts.
| Field | Type |
|---|---|
transfer_ | TransferOutOfEscrowArgs |
Required accounts: 12 (13 listed); extras go to remaining.
Fields of TransferOutOfEscrowInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | escrow | Pubkey |
| 1 | metadata | Pubkey |
| 2 | payer | Pubkey |
| 3 | attribute_ | Pubkey |
| 4 | attribute_ | Pubkey |
| 5 | attribute_ | Pubkey |
| 6 | escrow_mint | Pubkey |
| 7 | escrow_ | Pubkey |
| 8 | system_ | Pubkey |
| 9 | ata_program | Pubkey |
| 10 | token_ | Pubkey |
| 11 | sysvar_ | Pubkey |
| 12 | authority | Option< |
| 13… | remaining | Vec< |
Unlock#
Discriminator 2f · data Unlock · accounts UnlockInstructionAccounts.
| Field | Type |
|---|---|
unlock_args | UnlockArgs |
Required accounts: 10 (13 listed); extras go to remaining.
Fields of UnlockInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | token_owner | Option< |
| 2 | token | Pubkey |
| 3 | mint | Pubkey |
| 4 | metadata | Pubkey |
| 5 | edition | Option< |
| 6 | token_ | Option< |
| 7 | payer | Pubkey |
| 8 | system_ | Pubkey |
| 9 | sysvar_ | Pubkey |
| 10 | spl_ | Option< |
| 11 | authorization_ | Option< |
| 12 | authorization_ | Option< |
| 13… | remaining | Vec< |
Unverify#
Discriminator 35 · data Unverify · accounts UnverifyInstructionAccounts.
| Field | Type |
|---|---|
verification_ | VerificationArgs |
Required accounts: 7; extras go to remaining.
Fields of UnverifyInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | delegate_ | Option< |
| 2 | metadata | Pubkey |
| 3 | collection_ | Option< |
| 4 | collection_ | Option< |
| 5 | system_ | Pubkey |
| 6 | sysvar_ | Pubkey |
| 7… | remaining | Vec< |
UnverifyCollection#
Discriminator 16 · data UnverifyCollection · accounts UnverifyCollectionInstructionAccounts.
No data fields.
Required accounts: 5 (6 listed); extras go to remaining.
Fields of UnverifyCollectionInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | collection_ | Pubkey |
| 3 | collection | Pubkey |
| 4 | collection_ | Pubkey |
| 5 | collection_ | Option< |
| 6… | remaining | Vec< |
UnverifySizedCollectionItem#
Discriminator 1f · data UnverifySizedCollectionItem · accounts UnverifySizedCollectionItemInstructionAccounts.
No data fields.
Required accounts: 6 (7 listed); extras go to remaining.
Fields of UnverifySizedCollectionItemInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | payer | Pubkey |
| 3 | collection_ | Pubkey |
| 4 | collection | Pubkey |
| 5 | collection_ | Pubkey |
| 6 | collection_ | Option< |
| 7… | remaining | Vec< |
Update#
Discriminator 32 · data Update · accounts UpdateInstructionAccounts.
| Field | Type |
|---|---|
update_args | UpdateArgs |
Required accounts: 9 (11 listed); extras go to remaining.
Fields of UpdateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | delegate_ | Option< |
| 2 | token | Option< |
| 3 | mint | Pubkey |
| 4 | metadata | Pubkey |
| 5 | edition | Option< |
| 6 | payer | Pubkey |
| 7 | system_ | Pubkey |
| 8 | sysvar_ | Pubkey |
| 9 | authorization_ | Option< |
| 10 | authorization_ | Option< |
| 11… | remaining | Vec< |
UpdateMetadataAccount#
Discriminator 01 · data UpdateMetadataAccount · accounts UpdateMetadataAccountInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of UpdateMetadataAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | update_ | Pubkey |
| 2… | remaining | Vec< |
UpdateMetadataAccountV2#
Discriminator 0f · data UpdateMetadataAccountV2 · accounts UpdateMetadataAccountV2InstructionAccounts.
| Field | Type |
|---|---|
update_ | UpdateMetadataAccountArgsV2 |
Required accounts: 2; extras go to remaining.
Fields of UpdateMetadataAccountV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | update_ | Pubkey |
| 2… | remaining | Vec< |
UpdatePrimarySaleHappenedViaToken#
Discriminator 04 · data UpdatePrimarySaleHappenedViaToken · accounts UpdatePrimarySaleHappenedViaTokenInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of UpdatePrimarySaleHappenedViaTokenInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | owner | Pubkey |
| 2 | token | Pubkey |
| 3… | remaining | Vec< |
Use#
Discriminator 33 · data Use · accounts UseInstructionAccounts.
| Field | Type |
|---|---|
use_args | UseArgs |
Required accounts: 9 (12 listed); extras go to remaining.
Fields of UseInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | delegate_ | Option< |
| 2 | token | Option< |
| 3 | mint | Pubkey |
| 4 | metadata | Pubkey |
| 5 | edition | Option< |
| 6 | payer | Pubkey |
| 7 | system_ | Pubkey |
| 8 | sysvar_ | Pubkey |
| 9 | spl_ | Option< |
| 10 | authorization_ | Option< |
| 11 | authorization_ | Option< |
| 12… | remaining | Vec< |
Utilize#
Discriminator 13 · data Utilize · accounts UtilizeInstructionAccounts.
| Field | Type |
|---|---|
utilize_ | UtilizeArgs |
Required accounts: 9 (11 listed); extras go to remaining.
Fields of UtilizeInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | token_ | Pubkey |
| 2 | mint | Pubkey |
| 3 | use_ | Pubkey |
| 4 | owner | Pubkey |
| 5 | token_ | Pubkey |
| 6 | ata_program | Pubkey |
| 7 | system_ | Pubkey |
| 8 | rent | Pubkey |
| 9 | use_ | Option< |
| 10 | burner | Option< |
| 11… | remaining | Vec< |
Verify#
Discriminator 34 · data Verify · accounts VerifyInstructionAccounts.
| Field | Type |
|---|---|
verification_ | VerificationArgs |
Required accounts: 8; extras go to remaining.
Fields of VerifyInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | delegate_ | Option< |
| 2 | metadata | Pubkey |
| 3 | collection_ | Option< |
| 4 | collection_ | Option< |
| 5 | collection_ | Option< |
| 6 | system_ | Pubkey |
| 7 | sysvar_ | Pubkey |
| 8… | remaining | Vec< |
VerifyCollection#
Discriminator 12 · data VerifyCollection · accounts VerifyCollectionInstructionAccounts.
No data fields.
Required accounts: 6 (7 listed); extras go to remaining.
Fields of VerifyCollectionInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | payer | Pubkey |
| 3 | collection_ | Pubkey |
| 4 | collection | Pubkey |
| 5 | collection_ | Pubkey |
| 6 | collection_ | Option< |
| 7… | remaining | Vec< |
VerifySizedCollectionItem#
Discriminator 1e · data VerifySizedCollectionItem · accounts VerifySizedCollectionItemInstructionAccounts.
No data fields.
Required accounts: 6 (7 listed); extras go to remaining.
Fields of VerifySizedCollectionItemInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | metadata | Pubkey |
| 1 | collection_ | Pubkey |
| 2 | payer | Pubkey |
| 3 | collection_ | Pubkey |
| 4 | collection | Pubkey |
| 5 | collection_ | Pubkey |
| 6 | collection_ | Option< |
| 7… | remaining | Vec< |
Accounts#
Variants of MplTokenMetadataAccount. Each wraps a boxed struct from carbon_. decode_ only considers accounts owned by PROGRAM_ID and returns the first variant that matches.
CollectionAuthorityRecord#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
bump | u8 |
update_ | Option< |
Edition#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
parent | Pubkey |
edition | u64 |
EditionMarker#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
ledger | [u8; 31] |
EditionMarkerV2#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
ledger | Vec<u8> |
HolderDelegateRecord#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
bump | u8 |
mint | Pubkey |
delegate | Pubkey |
update_ | Pubkey |
MasterEditionV1#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
supply | u64 |
max_supply | Option<u64> |
printing_ | Pubkey |
one_ | Pubkey |
MasterEditionV2#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
supply | u64 |
max_supply | Option<u64> |
Metadata#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
update_ | Pubkey |
mint | Pubkey |
data | Data |
primary_ | bool |
is_mutable | bool |
edition_ | Option<u8> |
token_ | Option< |
collection | Option< |
uses | Option< |
collection_ | Option< |
programmable_ | Option< |
MetadataDelegateRecord#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
bump | u8 |
mint | Pubkey |
delegate | Pubkey |
update_ | Pubkey |
ReservationListV1#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
master_ | Pubkey |
supply_ | Option<u64> |
reservations | Vec< |
ReservationListV2#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
master_ | Pubkey |
supply_ | Option<u64> |
reservations | Vec< |
total_ | u64 |
current_ | u64 |
TokenOwnedEscrow#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
base_token | Pubkey |
authority | EscrowAuthority |
bump | u8 |
TokenRecord#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
bump | u8 |
state | TokenState |
rule_ | Option<u64> |
delegate | Option< |
delegate_ | Option< |
locked_ | Option< |
UseAuthorityRecord#
No discriminator (matched by Borsh layout) · accounts::.
| Field | Type |
|---|---|
key | Key |
allowed_ | u64 |
bump | u8 |
Types#
Types used by the instructions, accounts and events above, exported from carbon_.
ApproveUseAuthorityArgs#
Struct types::.
| Field | Type |
|---|---|
number_ | u64 |
AssetData#
Struct types::.
| Field | Type |
|---|---|
name | String |
symbol | String |
uri | String |
seller_ | u16 |
creators | Option< |
primary_ | bool |
is_mutable | bool |
token_ | TokenStandard |
collection | Option< |
uses | Option< |
collection_ | Option< |
rule_set | Option< |
AuthorityType#
Enum types::.
| Variant |
|---|
None |
Metadata |
Holder |
MetadataDelegate |
TokenDelegate |
AuthorizationData#
Struct types::.
| Field | Type |
|---|---|
payload | Payload |
BurnArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | amount: u64 |
Collection#
Struct types::.
| Field | Type |
|---|---|
verified | bool |
key | Pubkey |
CollectionDetails#
Enum types::.
| Variant | Fields |
|---|---|
V1 | size: u64 |
V2 | padding: [u8; 8] |
CollectionDetailsToggle#
Enum types::.
| Variant | Fields |
|---|---|
None | |
Clear | |
Set | CollectionDetails |
CollectionToggle#
Enum types::.
| Variant | Fields |
|---|---|
None | |
Clear | |
Set | Collection |
CreateArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | asset_data: AssetData, decimals: Option<u8>, print_: Option< |
CreateMasterEditionArgs#
Struct types::.
| Field | Type |
|---|---|
max_supply | Option<u64> |
CreateMetadataAccountArgsV3#
Struct types::.
| Field | Type |
|---|---|
data | DataV2 |
is_mutable | bool |
collection_ | Option< |
Creator#
Struct types::.
| Field | Type |
|---|---|
address | Pubkey |
verified | bool |
share | u8 |
Data#
Struct types::Data.
| Field | Type |
|---|---|
name | String |
symbol | String |
uri | String |
seller_ | u16 |
creators | Option< |
DataV2#
Struct types::.
| Field | Type |
|---|---|
name | String |
symbol | String |
uri | String |
seller_ | u16 |
creators | Option< |
collection | Option< |
uses | Option< |
DelegateArgs#
Enum types::.
| Variant | Fields |
|---|---|
CollectionV1 | authorization_: Option< |
SaleV1 | amount: u64, authorization_: Option< |
TransferV1 | amount: u64, authorization_: Option< |
DataV1 | authorization_: Option< |
UtilityV1 | amount: u64, authorization_: Option< |
StakingV1 | amount: u64, authorization_: Option< |
StandardV1 | amount: u64 |
LockedTransferV1 | amount: u64, locked_: Pubkey, authorization_: Option< |
ProgrammableConfigV1 | authorization_: Option< |
AuthorityItemV1 | authorization_: Option< |
DataItemV1 | authorization_: Option< |
CollectionItemV1 | authorization_: Option< |
ProgrammableConfigItemV1 | authorization_: Option< |
PrintDelegateV1 | authorization_: Option< |
EscrowAuthority#
Enum types::.
| Variant | Fields |
|---|---|
TokenOwner | |
Creator | Pubkey |
HolderDelegateRole#
Enum types::.
| Variant |
|---|
PrintDelegate |
Key#
Enum types::Key.
| Variant |
|---|
Uninitialized |
EditionV1 |
MasterEditionV1 |
ReservationListV1 |
MetadataV1 |
ReservationListV2 |
MasterEditionV2 |
EditionMarker |
UseAuthorityRecord |
CollectionAuthorityRecord |
TokenOwnedEscrow |
TokenRecord |
MetadataDelegate |
EditionMarkerV2 |
HolderDelegate |
LockArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | authorization_: Option< |
MetadataDelegateRole#
Enum types::.
| Variant |
|---|
AuthorityItem |
Collection |
Use |
Data |
ProgrammableConfig |
DataItem |
CollectionItem |
ProgrammableConfigItem |
MigrationType#
Enum types::.
| Variant |
|---|
CollectionV1 |
ProgrammableV1 |
MintArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | amount: u64, authorization_: Option< |
MintNewEditionFromMasterEditionViaTokenArgs#
Struct types::.
| Field | Type |
|---|---|
edition | u64 |
Payload#
Struct types::.
| Field | Type |
|---|---|
map | HashMap< |
PayloadKey#
Enum types::.
| Variant |
|---|
Amount |
Authority |
AuthoritySeeds |
Delegate |
DelegateSeeds |
Destination |
DestinationSeeds |
Holder |
Source |
SourceSeeds |
PayloadType#
Enum types::.
PrintArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | edition: u64 |
V2 | edition: u64 |
PrintSupply#
Enum types::.
| Variant | Fields |
|---|---|
Zero | |
Limited | u64 |
Unlimited |
ProgrammableConfig#
Enum types::.
| Variant | Fields |
|---|---|
V1 | rule_set: Option< |
ProofInfo#
Struct types::.
| Field | Type |
|---|---|
proof | Vec< |
Reservation#
Struct types::.
| Field | Type |
|---|---|
address | Pubkey |
spots_ | u64 |
total_spots | u64 |
ReservationV1#
Struct types::.
| Field | Type |
|---|---|
address | Pubkey |
spots_ | u8 |
total_spots | u8 |
RevokeArgs#
Enum types::.
| Variant |
|---|
CollectionV1 |
SaleV1 |
TransferV1 |
DataV1 |
UtilityV1 |
StakingV1 |
StandardV1 |
LockedTransferV1 |
ProgrammableConfigV1 |
MigrationV1 |
AuthorityItemV1 |
DataItemV1 |
CollectionItemV1 |
ProgrammableConfigItemV1 |
PrintDelegateV1 |
RuleSetToggle#
Enum types::.
| Variant | Fields |
|---|---|
None | |
Clear | |
Set | Pubkey |
SeedsVec#
Struct types::.
| Field | Type |
|---|---|
seeds | Vec< |
SetCollectionSizeArgs#
Struct types::.
| Field | Type |
|---|---|
size | u64 |
TokenDelegateRole#
Enum types::.
| Variant |
|---|
Sale |
Transfer |
Utility |
Staking |
Standard |
LockedTransfer |
Migration |
TokenStandard#
Enum types::.
| Variant |
|---|
NonFungible |
FungibleAsset |
Fungible |
NonFungibleEdition |
ProgrammableNonFungible |
ProgrammableNonFungibleEdition |
TokenState#
Enum types::.
| Variant |
|---|
Unlocked |
Locked |
Listed |
TransferArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | amount: u64, authorization_: Option< |
TransferOutOfEscrowArgs#
Struct types::.
| Field | Type |
|---|---|
amount | u64 |
UnlockArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | authorization_: Option< |
UpdateArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | new_: Option<, data: Option<, primary_: Option<, is_mutable: Option<, collection: CollectionToggle, collection_: CollectionDetailsToggle, uses: UsesToggle, rule_set: RuleSetToggle, authorization_: Option< |
AsUpdateAuthorityV2 | new_: Option<, data: Option<, primary_: Option<, is_mutable: Option<, collection: CollectionToggle, collection_: CollectionDetailsToggle, uses: UsesToggle, rule_set: RuleSetToggle, token_: Option<, authorization_: Option< |
AsAuthorityItemDelegateV2 | new_: Option<, primary_: Option<, is_mutable: Option<, token_: Option<, authorization_: Option< |
AsCollectionDelegateV2 | collection: CollectionToggle, authorization_: Option< |
AsDataDelegateV2 | data: Option<, authorization_: Option< |
AsProgrammableConfigDelegateV2 | rule_set: RuleSetToggle, authorization_: Option< |
AsDataItemDelegateV2 | data: Option<, authorization_: Option< |
AsCollectionItemDelegateV2 | collection: CollectionToggle, authorization_: Option< |
AsProgrammableConfigItemDelegateV2 | rule_set: RuleSetToggle, authorization_: Option< |
UpdateMetadataAccountArgsV2#
Struct types::.
| Field | Type |
|---|---|
data | Option< |
update_ | Option< |
primary_ | Option< |
is_mutable | Option< |
UseArgs#
Enum types::.
| Variant | Fields |
|---|---|
V1 | authorization_: Option< |
UseMethod#
Enum types::.
| Variant |
|---|
Burn |
Multiple |
Single |
Uses#
Struct types::Uses.
| Field | Type |
|---|---|
use_method | UseMethod |
remaining | u64 |
total | u64 |
UsesToggle#
Enum types::.
| Variant | Fields |
|---|---|
None | |
Clear | |
Set | Uses |
UtilizeArgs#
Struct types::.
| Field | Type |
|---|---|
number_ | u64 |
VerificationArgs#
Enum types::.
| Variant |
|---|
CreatorV1 |
CollectionV1 |