StaticsetSet a custom programId via PublicKey or base58 encoded string. This method is not required for regular usage.
Use this only if you know what you are doing.
StaticderiveDerive the SPL interface PDA. To derive the SPL interface PDA with bump, use deriveSplInterfacePdaWithIndex.
The mint of the SPL interface
The SPL interface PDA
StaticderiveStaticfindFind the index and bump for a given SPL interface PDA and mint.
The SPL interface PDA to find the index and bump for
The mint of the SPL interface
The index and bump number.
StaticfindUse findSplInterfaceIndexAndBump instead.
StaticderiveDerive the SPL interface PDA with index.
The mint of the SPL interface
Index. starts at 0. The Protocol supports 4 indexes aka SPL interfaces per mint.
The SPL interface PDA and bump.
StaticderiveUse deriveSplInterfacePdaWithIndex instead.
StaticcreateConstruct createMint instruction for SPL tokens.
Fee payer.
[createMintAccountInstruction, initializeMintInstruction, createSplInterfaceInstruction]
Note that createSplInterfaceInstruction must be executed after
initializeMintInstruction.
StaticcreateCreate SPL interface (omnibus account) for an existing SPL mint.
For new mints, use CompressedTokenProgram.createMint.
Fee payer.
The createSplInterface instruction
StaticcreateUse createSplInterface instead.
StaticaddAdd a token pool to an existing SPL mint. For new mints, use createSplInterface.
Fee payer.
The addTokenPool instruction
StaticmintConstruct mintTo instruction for compressed tokens
Fee payer.
The mintTo instruction
StaticapproveMint tokens from registered SPL mint account to a compressed account
Fee payer.
The mintTo instruction
StatictransferConstruct transfer instruction for compressed tokens.
V1 inputs automatically migrate to V2 outputs when in V2 mode.
Fee payer.
The transfer instruction
StaticcreateCreate lookup table instructions for the token program's default accounts.
Fee payer.
[createInstruction, extendInstruction, option(extendInstruction2)]
StaticcompressCreate compress instruction
Fee payer.
The compress instruction
StaticdecompressConstruct decompress instruction
Fee payer.
The decompress instruction
StaticmergeCreate mergeTokenAccounts instruction.
Fee payer.
instruction
StaticcompressCreate compressSplTokenAccount instruction
Fee payer.
instruction
StaticgetGet the program ID for a mint
SPL Token mint address.
Connection.
program ID
StaticapproveCreate approve instruction to delegate compressed tokens.
Fee payer.
instruction
StaticrevokeCreate revoke instruction to revoke delegation of compressed tokens.
Fee payer.
instruction
Public key that identifies the CompressedPda program