Options
All
  • Public
  • Public/Protected
  • All
Menu

@metaplex-foundation/mpl-nft-packs

Index

Accounts

Instructions

Errors

constants

enums

userTypes

sdk

generated

Activate

AddCardToPack

AddVoucherToPack

ClaimPack

CleanUp

ClosePack

Deactivate

DeletePack

DeletePackCard

DeletePackConfig

DeletePackVoucher

EditPack

InitPack

RequestCardForRedeem

TransferPackAuthority

Accounts

PackCardArgs: { accountType: AccountType; master: web3.PublicKey; maxSupply: number; metadata: web3.PublicKey; packSet: web3.PublicKey; tokenAccount: web3.PublicKey; weight: number }

Arguments used to create PackCard

Type declaration

  • accountType: AccountType
  • master: web3.PublicKey
  • maxSupply: number
  • metadata: web3.PublicKey
  • packSet: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • weight: number
PackConfigArgs: { accountType: AccountType; actionToDo: CleanUpActions; weights: [number, number, number][] }

Arguments used to create PackConfig

Type declaration

PackSetArgs: { accountType: AccountType; allowedAmountToRedeem: number; authority: web3.PublicKey; description: string; distributionType: PackDistributionType; mutable: boolean; name: number[]; packCards: number; packState: PackSetState; packVouchers: number; redeemEndDate: beet.COption<beet.bignum>; redeemStartDate: beet.bignum; store: web3.PublicKey; totalEditions: beet.bignum; totalWeight: beet.bignum; uri: string }

Arguments used to create PackSet

Type declaration

  • accountType: AccountType
  • allowedAmountToRedeem: number
  • authority: web3.PublicKey
  • description: string
  • distributionType: PackDistributionType
  • mutable: boolean
  • name: number[]
  • packCards: number
  • packState: PackSetState
  • packVouchers: number
  • redeemEndDate: beet.COption<beet.bignum>
  • redeemStartDate: beet.bignum
  • store: web3.PublicKey
  • totalEditions: beet.bignum
  • totalWeight: beet.bignum
  • uri: string
PackVoucherArgs: { accountType: AccountType; master: web3.PublicKey; metadata: web3.PublicKey; packSet: web3.PublicKey }

Arguments used to create PackVoucher

Type declaration

  • accountType: AccountType
  • master: web3.PublicKey
  • metadata: web3.PublicKey
  • packSet: web3.PublicKey
ProvingProcessArgs: { accountType: AccountType; cardsRedeemed: number; cardsToRedeem: Map<number, number>; isExhausted: boolean; packSet: web3.PublicKey; voucherMint: web3.PublicKey; walletKey: web3.PublicKey }

Arguments used to create ProvingProcess

Type declaration

  • accountType: AccountType
  • cardsRedeemed: number
  • cardsToRedeem: Map<number, number>
  • isExhausted: boolean
  • packSet: web3.PublicKey
  • voucherMint: web3.PublicKey
  • walletKey: web3.PublicKey
packCardBeet: BeetStruct<PackCard, PackCardArgs> = ...
packConfigBeet: FixableBeetStruct<PackConfig, PackConfigArgs> = ...
packSetBeet: FixableBeetStruct<PackSet, PackSetArgs> = ...
packVoucherBeet: BeetStruct<PackVoucher, PackVoucherArgs> = ...
provingProcessBeet: FixableBeetStruct<ProvingProcess, ProvingProcessArgs> = ...

Instructions

ActivateInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the Activate instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
AddCardToPackInstructionAccounts: { authority: web3.PublicKey; masterEdition: web3.PublicKey; masterMetadata: web3.PublicKey; mint: web3.PublicKey; packCard: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; programAuthority: web3.PublicKey; rent?: web3.PublicKey; source: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; tokenAccount: web3.PublicKey; tokenProgram?: web3.PublicKey }

Accounts required by the AddCardToPack instruction

property

[writable] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[writable] packCard PDA, ['card', pack, index]

property

[signer] authority

property

[] masterEdition

property

[] masterMetadata

property

[] mint

property

[writable] source

property

[writable] tokenAccount program account to hold MasterEdition token

property

[] programAuthority

property

[] store

Type declaration

  • authority: web3.PublicKey
  • masterEdition: web3.PublicKey
  • masterMetadata: web3.PublicKey
  • mint: web3.PublicKey
  • packCard: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • programAuthority: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • source: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
AddCardToPackInstructionArgs: { addCardToPackArgs: AddCardToPackArgs }

Type declaration

AddVoucherToPackInstructionAccounts: { authority: web3.PublicKey; masterEdition: web3.PublicKey; masterMetadata: web3.PublicKey; mint: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; rent?: web3.PublicKey; source: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; tokenProgram?: web3.PublicKey; voucherOwner: web3.PublicKey }

Accounts required by the AddVoucherToPack instruction

property

[writable] packSet

property

[writable] packVoucher PDA, ['voucher', pack, index]

property

[writable, signer] authority

property

[signer] voucherOwner

property

[] masterEdition

property

[] masterMetadata

property

[] mint

property

[writable] source

property

[] store

Type declaration

  • authority: web3.PublicKey
  • masterEdition: web3.PublicKey
  • masterMetadata: web3.PublicKey
  • mint: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • source: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
  • voucherOwner: web3.PublicKey
ClaimPackInstructionAccounts: { editionMarker: web3.PublicKey; masterEdition: web3.PublicKey; metadata: web3.PublicKey; metadataMint: web3.PublicKey; newEdition: web3.PublicKey; newMetadata: web3.PublicKey; newMint: web3.PublicKey; newMintAuthority: web3.PublicKey; packCard: web3.PublicKey; packSet: web3.PublicKey; provingProcess: web3.PublicKey; rent?: web3.PublicKey; systemProgram?: web3.PublicKey; tokenMetadataProgram: web3.PublicKey; tokenProgram?: web3.PublicKey; userToken: web3.PublicKey; userWallet: web3.PublicKey }

Accounts required by the ClaimPack instruction

property

[] packSet

property

[writable] provingProcess PDA, ['proving', pack, user_wallet]

property

[signer] userWallet

property

[writable] packCard PDA, ['card', pack, index]

property

[writable] userToken User token account to hold new minted edition

property

[] newMetadata

property

[] newEdition

property

[] masterEdition

property

[] newMint

property

[signer] newMintAuthority

property

[] metadata

property

[] metadataMint

property

[] editionMarker

property

[] tokenMetadataProgram Metaplex Token Metadata Program

Type declaration

  • editionMarker: web3.PublicKey
  • masterEdition: web3.PublicKey
  • metadata: web3.PublicKey
  • metadataMint: web3.PublicKey
  • newEdition: web3.PublicKey
  • newMetadata: web3.PublicKey
  • newMint: web3.PublicKey
  • newMintAuthority: web3.PublicKey
  • packCard: web3.PublicKey
  • packSet: web3.PublicKey
  • provingProcess: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • tokenMetadataProgram: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
  • userToken: web3.PublicKey
  • userWallet: web3.PublicKey
ClaimPackInstructionArgs: { claimPackArgs: ClaimPackArgs }

Type declaration

CleanUpInstructionAccounts: { packConfig: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the CleanUp instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

Type declaration

  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
ClosePackInstructionAccounts: { authority: web3.PublicKey; clock: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the ClosePack instruction

property

[writable] packSet

property

[signer] authority

property

[] clock Solana Clock

Type declaration

  • authority: web3.PublicKey
  • clock: web3.PublicKey
  • packSet: web3.PublicKey
DeactivateInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the Deactivate instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
DeletePackCardInstructionAccounts: { authority: web3.PublicKey; newMasterEditionOwner: web3.PublicKey; packCard: web3.PublicKey; packSet: web3.PublicKey; programAuthority: web3.PublicKey; refunder: web3.PublicKey; rent?: web3.PublicKey; tokenAccount: web3.PublicKey; tokenProgram?: web3.PublicKey }

Accounts required by the DeletePackCard instruction

property

[writable] packSet

property

[writable] packCard

property

[signer] authority

property

[writable] refunder

property

[writable] newMasterEditionOwner

property

[writable] tokenAccount

property

[] programAuthority

Type declaration

  • authority: web3.PublicKey
  • newMasterEditionOwner: web3.PublicKey
  • packCard: web3.PublicKey
  • packSet: web3.PublicKey
  • programAuthority: web3.PublicKey
  • refunder: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
DeletePackConfigInstructionAccounts: { authority: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePackConfig instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[writable] refunder

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • refunder: web3.PublicKey
DeletePackInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePack instruction

property

[writable] packSet

property

[signer] authority

property

[writable] refunder

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
  • refunder: web3.PublicKey
DeletePackVoucherInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePackVoucher instruction

property

[writable] packSet

property

[writable] packVoucher

property

[signer] authority

property

[writable] refunder

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • refunder: web3.PublicKey
EditPackInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the EditPack instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
EditPackInstructionArgs: { editPackSetArgs: EditPackSetArgs }

Type declaration

InitPackInstructionAccounts: { authority: web3.PublicKey; clock: web3.PublicKey; packSet: web3.PublicKey; rent?: web3.PublicKey; store: web3.PublicKey; whitelistedCreator?: web3.PublicKey }

Accounts required by the InitPack instruction

property

[writable] packSet

property

[signer] authority

property

[] store

property

[] clock Clock account

property

[] whitelistedCreator (optional)

Type declaration

  • authority: web3.PublicKey
  • clock: web3.PublicKey
  • packSet: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • store: web3.PublicKey
  • Optional whitelistedCreator?: web3.PublicKey
InitPackInstructionArgs: { initPackSetArgs: InitPackSetArgs }

Type declaration

RequestCardForRedeemInstructionAccounts: { clock: web3.PublicKey; edition: web3.PublicKey; editionMint: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; provingProcess: web3.PublicKey; recentSlothashes: web3.PublicKey; rent?: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; userToken?: web3.PublicKey; userWallet: web3.PublicKey }

Accounts required by the RequestCardForRedeem instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[] store

property

[] edition

property

[] editionMint

property

[] packVoucher

property

[writable] provingProcess PDA, ['proving', pack, user_wallet]

property

[signer] userWallet

property

[] recentSlothashes Solana Slot Hashes

property

[] clock Solana Clock

property

[] userToken (optional)

Type declaration

  • clock: web3.PublicKey
  • edition: web3.PublicKey
  • editionMint: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • provingProcess: web3.PublicKey
  • recentSlothashes: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • Optional userToken?: web3.PublicKey
  • userWallet: web3.PublicKey
RequestCardForRedeemInstructionArgs: { requestCardToRedeemArgs: RequestCardToRedeemArgs }

Type declaration

TransferPackAuthorityInstructionAccounts: { currentAuthority: web3.PublicKey; newAuthority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the TransferPackAuthority instruction

property

[writable] packSet

property

[signer] currentAuthority

property

[] newAuthority

Type declaration

  • currentAuthority: web3.PublicKey
  • newAuthority: web3.PublicKey
  • packSet: web3.PublicKey
ActivateStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
AddCardToPackStruct: BeetArgsStruct<AddCardToPackInstructionArgs & { instructionDiscriminator: number }> = ...
AddVoucherToPackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
ClaimPackStruct: BeetArgsStruct<ClaimPackInstructionArgs & { instructionDiscriminator: number }> = ...
CleanUpStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
ClosePackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeactivateStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackCardStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackConfigStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackVoucherStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
EditPackStruct: FixableBeetArgsStruct<EditPackInstructionArgs & { instructionDiscriminator: number }> = ...
InitPackStruct: FixableBeetArgsStruct<InitPackInstructionArgs & { instructionDiscriminator: number }> = ...
RequestCardForRedeemStruct: BeetArgsStruct<RequestCardForRedeemInstructionArgs & { instructionDiscriminator: number }> = ...
TransferPackAuthorityStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

Errors

  • errorFromCode(code: number): MaybeErrorWithCode
  • errorFromName(name: string): MaybeErrorWithCode

constants

PROGRAM_ADDRESS: "packFeFNZzMfD9aVWL7QbGz1WcU7R9zpf6pvNsw2BLu" = 'packFeFNZzMfD9aVWL7QbGz1WcU7R9zpf6pvNsw2BLu'

Program address

PROGRAM_ID: PublicKey = ...

Program public key

enums

CleanUpActions: beet.DataEnumKeyAsKind<CleanUpActionsRecord>

Union type respresenting the CleanUpActions data enum defined in Rust.

NOTE: that it includes a __kind property which allows to narrow types in switch/if statements. Additionally isCleanUpActions* type guards are exposed below to narrow to a specific variant.

userTypes

CleanUpActions: beet.DataEnumKeyAsKind<CleanUpActionsRecord>

Union type respresenting the CleanUpActions data enum defined in Rust.

NOTE: that it includes a __kind property which allows to narrow types in switch/if statements. Additionally isCleanUpActions* type guards are exposed below to narrow to a specific variant.

accountTypeBeet: FixedSizeBeet<AccountType, AccountType> = ...
addCardToPackArgsBeet: BeetArgsStruct<AddCardToPackArgs> = ...
claimPackArgsBeet: BeetArgsStruct<ClaimPackArgs> = ...
cleanUpActionsBeet: FixableBeet<CleanUpActions, Partial<CleanUpActions>> = ...
editPackSetArgsBeet: FixableBeetArgsStruct<EditPackSetArgs> = ...
initPackSetArgsBeet: FixableBeetArgsStruct<InitPackSetArgs> = ...
packDistributionTypeBeet: FixedSizeBeet<PackDistributionType, PackDistributionType> = ...
packSetStateBeet: FixedSizeBeet<PackSetState, PackSetState> = ...
requestCardToRedeemArgsBeet: BeetArgsStruct<RequestCardToRedeemArgs> = ...

sdk

AddCardToPackArgs: { index: number; maxSupply: number; weight: number }

Type declaration

  • index: number
  • maxSupply: number
  • weight: number
ClaimPackArgs: { index: number }

Type declaration

  • index: number
EditPackSetArgs: { description: beet.COption<string>; mutable: beet.COption<boolean>; name: beet.COption<number[]>; uri: beet.COption<string> }

Type declaration

  • description: beet.COption<string>
  • mutable: beet.COption<boolean>
  • name: beet.COption<number[]>
  • uri: beet.COption<string>
InitPackSetArgs: { allowedAmountToRedeem: number; description: string; distributionType: PackDistributionType; mutable: boolean; name: number[]; redeemEndDate: beet.COption<beet.bignum>; redeemStartDate: beet.COption<beet.bignum>; uri: string }

Type declaration

  • allowedAmountToRedeem: number
  • description: string
  • distributionType: PackDistributionType
  • mutable: boolean
  • name: number[]
  • redeemEndDate: beet.COption<beet.bignum>
  • redeemStartDate: beet.COption<beet.bignum>
  • uri: string
RequestCardToRedeemArgs: { index: number }

Type declaration

  • index: number
accountProviders: { PackCard: typeof PackCard; PackConfig: typeof PackConfig; PackSet: typeof PackSet; PackVoucher: typeof PackVoucher; ProvingProcess: typeof ProvingProcess } = ...

Type declaration

activateInstructionDiscriminator: 3 = 3
addCardToPackInstructionDiscriminator: 1 = 1
addVoucherToPackInstructionDiscriminator: 2 = 2
claimPackInstructionDiscriminator: 6 = 6
cleanUpInstructionDiscriminator: 13 = 13
closePackInstructionDiscriminator: 5 = 5
cusper: ErrorResolver = ...
deactivateInstructionDiscriminator: 4 = 4
deletePackCardInstructionDiscriminator: 9 = 9
deletePackConfigInstructionDiscriminator: 14 = 14
deletePackInstructionDiscriminator: 8 = 8
deletePackVoucherInstructionDiscriminator: 10 = 10
editPackInstructionDiscriminator: 11 = 11
initPackInstructionDiscriminator: 0 = 0
requestCardForRedeemInstructionDiscriminator: 12 = 12
transferPackAuthorityInstructionDiscriminator: 7 = 7
  • isCleanUpActionsChange(x: CleanUpActions): x is ({ __kind: "Change" } & Omit<{ fields: [number, number] }, "void"> & { __kind: "Change" }) & never & never
  • isCleanUpActionsNone(x: CleanUpActions): x is never & never & ({ __kind: "None" } & Omit<void, "void"> & { __kind: "None" })
  • isCleanUpActionsSort(x: CleanUpActions): x is never & ({ __kind: "Sort" } & Omit<void, "void"> & { __kind: "Sort" }) & never

generated

ActivateInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the Activate instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
AddCardToPackInstructionAccounts: { authority: web3.PublicKey; masterEdition: web3.PublicKey; masterMetadata: web3.PublicKey; mint: web3.PublicKey; packCard: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; programAuthority: web3.PublicKey; rent?: web3.PublicKey; source: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; tokenAccount: web3.PublicKey; tokenProgram?: web3.PublicKey }

Accounts required by the AddCardToPack instruction

property

[writable] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[writable] packCard PDA, ['card', pack, index]

property

[signer] authority

property

[] masterEdition

property

[] masterMetadata

property

[] mint

property

[writable] source

property

[writable] tokenAccount program account to hold MasterEdition token

property

[] programAuthority

property

[] store

Type declaration

  • authority: web3.PublicKey
  • masterEdition: web3.PublicKey
  • masterMetadata: web3.PublicKey
  • mint: web3.PublicKey
  • packCard: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • programAuthority: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • source: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
AddCardToPackInstructionArgs: { addCardToPackArgs: AddCardToPackArgs }

Type declaration

AddVoucherToPackInstructionAccounts: { authority: web3.PublicKey; masterEdition: web3.PublicKey; masterMetadata: web3.PublicKey; mint: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; rent?: web3.PublicKey; source: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; tokenProgram?: web3.PublicKey; voucherOwner: web3.PublicKey }

Accounts required by the AddVoucherToPack instruction

property

[writable] packSet

property

[writable] packVoucher PDA, ['voucher', pack, index]

property

[writable, signer] authority

property

[signer] voucherOwner

property

[] masterEdition

property

[] masterMetadata

property

[] mint

property

[writable] source

property

[] store

Type declaration

  • authority: web3.PublicKey
  • masterEdition: web3.PublicKey
  • masterMetadata: web3.PublicKey
  • mint: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • source: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
  • voucherOwner: web3.PublicKey
ClaimPackInstructionAccounts: { editionMarker: web3.PublicKey; masterEdition: web3.PublicKey; metadata: web3.PublicKey; metadataMint: web3.PublicKey; newEdition: web3.PublicKey; newMetadata: web3.PublicKey; newMint: web3.PublicKey; newMintAuthority: web3.PublicKey; packCard: web3.PublicKey; packSet: web3.PublicKey; provingProcess: web3.PublicKey; rent?: web3.PublicKey; systemProgram?: web3.PublicKey; tokenMetadataProgram: web3.PublicKey; tokenProgram?: web3.PublicKey; userToken: web3.PublicKey; userWallet: web3.PublicKey }

Accounts required by the ClaimPack instruction

property

[] packSet

property

[writable] provingProcess PDA, ['proving', pack, user_wallet]

property

[signer] userWallet

property

[writable] packCard PDA, ['card', pack, index]

property

[writable] userToken User token account to hold new minted edition

property

[] newMetadata

property

[] newEdition

property

[] masterEdition

property

[] newMint

property

[signer] newMintAuthority

property

[] metadata

property

[] metadataMint

property

[] editionMarker

property

[] tokenMetadataProgram Metaplex Token Metadata Program

Type declaration

  • editionMarker: web3.PublicKey
  • masterEdition: web3.PublicKey
  • metadata: web3.PublicKey
  • metadataMint: web3.PublicKey
  • newEdition: web3.PublicKey
  • newMetadata: web3.PublicKey
  • newMint: web3.PublicKey
  • newMintAuthority: web3.PublicKey
  • packCard: web3.PublicKey
  • packSet: web3.PublicKey
  • provingProcess: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • tokenMetadataProgram: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
  • userToken: web3.PublicKey
  • userWallet: web3.PublicKey
ClaimPackInstructionArgs: { claimPackArgs: ClaimPackArgs }

Type declaration

CleanUpActions: beet.DataEnumKeyAsKind<CleanUpActionsRecord>

Union type respresenting the CleanUpActions data enum defined in Rust.

NOTE: that it includes a __kind property which allows to narrow types in switch/if statements. Additionally isCleanUpActions* type guards are exposed below to narrow to a specific variant.

CleanUpInstructionAccounts: { packConfig: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the CleanUp instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

Type declaration

  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
ClosePackInstructionAccounts: { authority: web3.PublicKey; clock: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the ClosePack instruction

property

[writable] packSet

property

[signer] authority

property

[] clock Solana Clock

Type declaration

  • authority: web3.PublicKey
  • clock: web3.PublicKey
  • packSet: web3.PublicKey
DeactivateInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the Deactivate instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
DeletePackCardInstructionAccounts: { authority: web3.PublicKey; newMasterEditionOwner: web3.PublicKey; packCard: web3.PublicKey; packSet: web3.PublicKey; programAuthority: web3.PublicKey; refunder: web3.PublicKey; rent?: web3.PublicKey; tokenAccount: web3.PublicKey; tokenProgram?: web3.PublicKey }

Accounts required by the DeletePackCard instruction

property

[writable] packSet

property

[writable] packCard

property

[signer] authority

property

[writable] refunder

property

[writable] newMasterEditionOwner

property

[writable] tokenAccount

property

[] programAuthority

Type declaration

  • authority: web3.PublicKey
  • newMasterEditionOwner: web3.PublicKey
  • packCard: web3.PublicKey
  • packSet: web3.PublicKey
  • programAuthority: web3.PublicKey
  • refunder: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
DeletePackConfigInstructionAccounts: { authority: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePackConfig instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[writable] refunder

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • refunder: web3.PublicKey
DeletePackInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePack instruction

property

[writable] packSet

property

[signer] authority

property

[writable] refunder

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
  • refunder: web3.PublicKey
DeletePackVoucherInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePackVoucher instruction

property

[writable] packSet

property

[writable] packVoucher

property

[signer] authority

property

[writable] refunder

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • refunder: web3.PublicKey
EditPackInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the EditPack instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
EditPackInstructionArgs: { editPackSetArgs: EditPackSetArgs }

Type declaration

InitPackInstructionAccounts: { authority: web3.PublicKey; clock: web3.PublicKey; packSet: web3.PublicKey; rent?: web3.PublicKey; store: web3.PublicKey; whitelistedCreator?: web3.PublicKey }

Accounts required by the InitPack instruction

property

[writable] packSet

property

[signer] authority

property

[] store

property

[] clock Clock account

property

[] whitelistedCreator (optional)

Type declaration

  • authority: web3.PublicKey
  • clock: web3.PublicKey
  • packSet: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • store: web3.PublicKey
  • Optional whitelistedCreator?: web3.PublicKey
InitPackInstructionArgs: { initPackSetArgs: InitPackSetArgs }

Type declaration

PackCardArgs: { accountType: AccountType; master: web3.PublicKey; maxSupply: number; metadata: web3.PublicKey; packSet: web3.PublicKey; tokenAccount: web3.PublicKey; weight: number }

Arguments used to create PackCard

Type declaration

  • accountType: AccountType
  • master: web3.PublicKey
  • maxSupply: number
  • metadata: web3.PublicKey
  • packSet: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • weight: number
PackConfigArgs: { accountType: AccountType; actionToDo: CleanUpActions; weights: [number, number, number][] }

Arguments used to create PackConfig

Type declaration

PackSetArgs: { accountType: AccountType; allowedAmountToRedeem: number; authority: web3.PublicKey; description: string; distributionType: PackDistributionType; mutable: boolean; name: number[]; packCards: number; packState: PackSetState; packVouchers: number; redeemEndDate: beet.COption<beet.bignum>; redeemStartDate: beet.bignum; store: web3.PublicKey; totalEditions: beet.bignum; totalWeight: beet.bignum; uri: string }

Arguments used to create PackSet

Type declaration

  • accountType: AccountType
  • allowedAmountToRedeem: number
  • authority: web3.PublicKey
  • description: string
  • distributionType: PackDistributionType
  • mutable: boolean
  • name: number[]
  • packCards: number
  • packState: PackSetState
  • packVouchers: number
  • redeemEndDate: beet.COption<beet.bignum>
  • redeemStartDate: beet.bignum
  • store: web3.PublicKey
  • totalEditions: beet.bignum
  • totalWeight: beet.bignum
  • uri: string
PackVoucherArgs: { accountType: AccountType; master: web3.PublicKey; metadata: web3.PublicKey; packSet: web3.PublicKey }

Arguments used to create PackVoucher

Type declaration

  • accountType: AccountType
  • master: web3.PublicKey
  • metadata: web3.PublicKey
  • packSet: web3.PublicKey
ProvingProcessArgs: { accountType: AccountType; cardsRedeemed: number; cardsToRedeem: Map<number, number>; isExhausted: boolean; packSet: web3.PublicKey; voucherMint: web3.PublicKey; walletKey: web3.PublicKey }

Arguments used to create ProvingProcess

Type declaration

  • accountType: AccountType
  • cardsRedeemed: number
  • cardsToRedeem: Map<number, number>
  • isExhausted: boolean
  • packSet: web3.PublicKey
  • voucherMint: web3.PublicKey
  • walletKey: web3.PublicKey
RequestCardForRedeemInstructionAccounts: { clock: web3.PublicKey; edition: web3.PublicKey; editionMint: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; provingProcess: web3.PublicKey; recentSlothashes: web3.PublicKey; rent?: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; userToken?: web3.PublicKey; userWallet: web3.PublicKey }

Accounts required by the RequestCardForRedeem instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[] store

property

[] edition

property

[] editionMint

property

[] packVoucher

property

[writable] provingProcess PDA, ['proving', pack, user_wallet]

property

[signer] userWallet

property

[] recentSlothashes Solana Slot Hashes

property

[] clock Solana Clock

property

[] userToken (optional)

Type declaration

  • clock: web3.PublicKey
  • edition: web3.PublicKey
  • editionMint: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • provingProcess: web3.PublicKey
  • recentSlothashes: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • Optional userToken?: web3.PublicKey
  • userWallet: web3.PublicKey
RequestCardForRedeemInstructionArgs: { requestCardToRedeemArgs: RequestCardToRedeemArgs }

Type declaration

TransferPackAuthorityInstructionAccounts: { currentAuthority: web3.PublicKey; newAuthority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the TransferPackAuthority instruction

property

[writable] packSet

property

[signer] currentAuthority

property

[] newAuthority

Type declaration

  • currentAuthority: web3.PublicKey
  • newAuthority: web3.PublicKey
  • packSet: web3.PublicKey
ActivateStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
AddCardToPackStruct: BeetArgsStruct<AddCardToPackInstructionArgs & { instructionDiscriminator: number }> = ...
AddVoucherToPackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
ClaimPackStruct: BeetArgsStruct<ClaimPackInstructionArgs & { instructionDiscriminator: number }> = ...
CleanUpStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
ClosePackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeactivateStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackCardStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackConfigStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
DeletePackVoucherStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
EditPackStruct: FixableBeetArgsStruct<EditPackInstructionArgs & { instructionDiscriminator: number }> = ...
InitPackStruct: FixableBeetArgsStruct<InitPackInstructionArgs & { instructionDiscriminator: number }> = ...
PROGRAM_ADDRESS: "packFeFNZzMfD9aVWL7QbGz1WcU7R9zpf6pvNsw2BLu" = 'packFeFNZzMfD9aVWL7QbGz1WcU7R9zpf6pvNsw2BLu'

Program address

PROGRAM_ID: PublicKey = ...

Program public key

RequestCardForRedeemStruct: BeetArgsStruct<RequestCardForRedeemInstructionArgs & { instructionDiscriminator: number }> = ...
TransferPackAuthorityStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...
accountTypeBeet: FixedSizeBeet<AccountType, AccountType> = ...
addCardToPackArgsBeet: BeetArgsStruct<AddCardToPackArgs> = ...
claimPackArgsBeet: BeetArgsStruct<ClaimPackArgs> = ...
cleanUpActionsBeet: FixableBeet<CleanUpActions, Partial<CleanUpActions>> = ...
editPackSetArgsBeet: FixableBeetArgsStruct<EditPackSetArgs> = ...
initPackSetArgsBeet: FixableBeetArgsStruct<InitPackSetArgs> = ...
packCardBeet: BeetStruct<PackCard, PackCardArgs> = ...
packConfigBeet: FixableBeetStruct<PackConfig, PackConfigArgs> = ...
packDistributionTypeBeet: FixedSizeBeet<PackDistributionType, PackDistributionType> = ...
packSetBeet: FixableBeetStruct<PackSet, PackSetArgs> = ...
packSetStateBeet: FixedSizeBeet<PackSetState, PackSetState> = ...
packVoucherBeet: BeetStruct<PackVoucher, PackVoucherArgs> = ...
provingProcessBeet: FixableBeetStruct<ProvingProcess, ProvingProcessArgs> = ...
requestCardToRedeemArgsBeet: BeetArgsStruct<RequestCardToRedeemArgs> = ...
  • errorFromCode(code: number): MaybeErrorWithCode
  • errorFromName(name: string): MaybeErrorWithCode

Activate

ActivateInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the Activate instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
ActivateStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

AddCardToPack

AddCardToPackInstructionAccounts: { authority: web3.PublicKey; masterEdition: web3.PublicKey; masterMetadata: web3.PublicKey; mint: web3.PublicKey; packCard: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; programAuthority: web3.PublicKey; rent?: web3.PublicKey; source: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; tokenAccount: web3.PublicKey; tokenProgram?: web3.PublicKey }

Accounts required by the AddCardToPack instruction

property

[writable] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[writable] packCard PDA, ['card', pack, index]

property

[signer] authority

property

[] masterEdition

property

[] masterMetadata

property

[] mint

property

[writable] source

property

[writable] tokenAccount program account to hold MasterEdition token

property

[] programAuthority

property

[] store

Type declaration

  • authority: web3.PublicKey
  • masterEdition: web3.PublicKey
  • masterMetadata: web3.PublicKey
  • mint: web3.PublicKey
  • packCard: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • programAuthority: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • source: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
AddCardToPackInstructionArgs: { addCardToPackArgs: AddCardToPackArgs }

Type declaration

AddCardToPackStruct: BeetArgsStruct<AddCardToPackInstructionArgs & { instructionDiscriminator: number }> = ...

AddVoucherToPack

AddVoucherToPackInstructionAccounts: { authority: web3.PublicKey; masterEdition: web3.PublicKey; masterMetadata: web3.PublicKey; mint: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; rent?: web3.PublicKey; source: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; tokenProgram?: web3.PublicKey; voucherOwner: web3.PublicKey }

Accounts required by the AddVoucherToPack instruction

property

[writable] packSet

property

[writable] packVoucher PDA, ['voucher', pack, index]

property

[writable, signer] authority

property

[signer] voucherOwner

property

[] masterEdition

property

[] masterMetadata

property

[] mint

property

[writable] source

property

[] store

Type declaration

  • authority: web3.PublicKey
  • masterEdition: web3.PublicKey
  • masterMetadata: web3.PublicKey
  • mint: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • source: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
  • voucherOwner: web3.PublicKey
AddVoucherToPackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

ClaimPack

ClaimPackInstructionAccounts: { editionMarker: web3.PublicKey; masterEdition: web3.PublicKey; metadata: web3.PublicKey; metadataMint: web3.PublicKey; newEdition: web3.PublicKey; newMetadata: web3.PublicKey; newMint: web3.PublicKey; newMintAuthority: web3.PublicKey; packCard: web3.PublicKey; packSet: web3.PublicKey; provingProcess: web3.PublicKey; rent?: web3.PublicKey; systemProgram?: web3.PublicKey; tokenMetadataProgram: web3.PublicKey; tokenProgram?: web3.PublicKey; userToken: web3.PublicKey; userWallet: web3.PublicKey }

Accounts required by the ClaimPack instruction

property

[] packSet

property

[writable] provingProcess PDA, ['proving', pack, user_wallet]

property

[signer] userWallet

property

[writable] packCard PDA, ['card', pack, index]

property

[writable] userToken User token account to hold new minted edition

property

[] newMetadata

property

[] newEdition

property

[] masterEdition

property

[] newMint

property

[signer] newMintAuthority

property

[] metadata

property

[] metadataMint

property

[] editionMarker

property

[] tokenMetadataProgram Metaplex Token Metadata Program

Type declaration

  • editionMarker: web3.PublicKey
  • masterEdition: web3.PublicKey
  • metadata: web3.PublicKey
  • metadataMint: web3.PublicKey
  • newEdition: web3.PublicKey
  • newMetadata: web3.PublicKey
  • newMint: web3.PublicKey
  • newMintAuthority: web3.PublicKey
  • packCard: web3.PublicKey
  • packSet: web3.PublicKey
  • provingProcess: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • tokenMetadataProgram: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
  • userToken: web3.PublicKey
  • userWallet: web3.PublicKey
ClaimPackInstructionArgs: { claimPackArgs: ClaimPackArgs }

Type declaration

ClaimPackStruct: BeetArgsStruct<ClaimPackInstructionArgs & { instructionDiscriminator: number }> = ...

CleanUp

CleanUpInstructionAccounts: { packConfig: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the CleanUp instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

Type declaration

  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
CleanUpStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

ClosePack

ClosePackInstructionAccounts: { authority: web3.PublicKey; clock: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the ClosePack instruction

property

[writable] packSet

property

[signer] authority

property

[] clock Solana Clock

Type declaration

  • authority: web3.PublicKey
  • clock: web3.PublicKey
  • packSet: web3.PublicKey
ClosePackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

Deactivate

DeactivateInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the Deactivate instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
DeactivateStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

DeletePack

DeletePackInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePack instruction

property

[writable] packSet

property

[signer] authority

property

[writable] refunder

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
  • refunder: web3.PublicKey
DeletePackStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

DeletePackCard

DeletePackCardInstructionAccounts: { authority: web3.PublicKey; newMasterEditionOwner: web3.PublicKey; packCard: web3.PublicKey; packSet: web3.PublicKey; programAuthority: web3.PublicKey; refunder: web3.PublicKey; rent?: web3.PublicKey; tokenAccount: web3.PublicKey; tokenProgram?: web3.PublicKey }

Accounts required by the DeletePackCard instruction

property

[writable] packSet

property

[writable] packCard

property

[signer] authority

property

[writable] refunder

property

[writable] newMasterEditionOwner

property

[writable] tokenAccount

property

[] programAuthority

Type declaration

  • authority: web3.PublicKey
  • newMasterEditionOwner: web3.PublicKey
  • packCard: web3.PublicKey
  • packSet: web3.PublicKey
  • programAuthority: web3.PublicKey
  • refunder: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • tokenAccount: web3.PublicKey
  • Optional tokenProgram?: web3.PublicKey
DeletePackCardStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

DeletePackConfig

DeletePackConfigInstructionAccounts: { authority: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePackConfig instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[writable] refunder

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • refunder: web3.PublicKey
DeletePackConfigStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

DeletePackVoucher

DeletePackVoucherInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; refunder: web3.PublicKey }

Accounts required by the DeletePackVoucher instruction

property

[writable] packSet

property

[writable] packVoucher

property

[signer] authority

property

[writable] refunder

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • refunder: web3.PublicKey
DeletePackVoucherStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

EditPack

EditPackInstructionAccounts: { authority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the EditPack instruction

property

[writable] packSet

property

[signer] authority

Type declaration

  • authority: web3.PublicKey
  • packSet: web3.PublicKey
EditPackInstructionArgs: { editPackSetArgs: EditPackSetArgs }

Type declaration

EditPackStruct: FixableBeetArgsStruct<EditPackInstructionArgs & { instructionDiscriminator: number }> = ...

InitPack

InitPackInstructionAccounts: { authority: web3.PublicKey; clock: web3.PublicKey; packSet: web3.PublicKey; rent?: web3.PublicKey; store: web3.PublicKey; whitelistedCreator?: web3.PublicKey }

Accounts required by the InitPack instruction

property

[writable] packSet

property

[signer] authority

property

[] store

property

[] clock Clock account

property

[] whitelistedCreator (optional)

Type declaration

  • authority: web3.PublicKey
  • clock: web3.PublicKey
  • packSet: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • store: web3.PublicKey
  • Optional whitelistedCreator?: web3.PublicKey
InitPackInstructionArgs: { initPackSetArgs: InitPackSetArgs }

Type declaration

InitPackStruct: FixableBeetArgsStruct<InitPackInstructionArgs & { instructionDiscriminator: number }> = ...

RequestCardForRedeem

RequestCardForRedeemInstructionAccounts: { clock: web3.PublicKey; edition: web3.PublicKey; editionMint: web3.PublicKey; packConfig: web3.PublicKey; packSet: web3.PublicKey; packVoucher: web3.PublicKey; provingProcess: web3.PublicKey; recentSlothashes: web3.PublicKey; rent?: web3.PublicKey; store: web3.PublicKey; systemProgram?: web3.PublicKey; userToken?: web3.PublicKey; userWallet: web3.PublicKey }

Accounts required by the RequestCardForRedeem instruction

property

[] packSet

property

[writable] packConfig PDA, ['config', pack]

property

[] store

property

[] edition

property

[] editionMint

property

[] packVoucher

property

[writable] provingProcess PDA, ['proving', pack, user_wallet]

property

[signer] userWallet

property

[] recentSlothashes Solana Slot Hashes

property

[] clock Solana Clock

property

[] userToken (optional)

Type declaration

  • clock: web3.PublicKey
  • edition: web3.PublicKey
  • editionMint: web3.PublicKey
  • packConfig: web3.PublicKey
  • packSet: web3.PublicKey
  • packVoucher: web3.PublicKey
  • provingProcess: web3.PublicKey
  • recentSlothashes: web3.PublicKey
  • Optional rent?: web3.PublicKey
  • store: web3.PublicKey
  • Optional systemProgram?: web3.PublicKey
  • Optional userToken?: web3.PublicKey
  • userWallet: web3.PublicKey
RequestCardForRedeemInstructionArgs: { requestCardToRedeemArgs: RequestCardToRedeemArgs }

Type declaration

RequestCardForRedeemStruct: BeetArgsStruct<RequestCardForRedeemInstructionArgs & { instructionDiscriminator: number }> = ...

TransferPackAuthority

TransferPackAuthorityInstructionAccounts: { currentAuthority: web3.PublicKey; newAuthority: web3.PublicKey; packSet: web3.PublicKey }

Accounts required by the TransferPackAuthority instruction

property

[writable] packSet

property

[signer] currentAuthority

property

[] newAuthority

Type declaration

  • currentAuthority: web3.PublicKey
  • newAuthority: web3.PublicKey
  • packSet: web3.PublicKey
TransferPackAuthorityStruct: BeetArgsStruct<{ instructionDiscriminator: number }> = ...

Generated using TypeDoc