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 token pool pda. To derive the token pool pda with bump, use deriveTokenPoolPdaWithIndex.
The mint of the token pool
The token pool pda
StaticfindFind the index and bump for a given token pool pda and mint.
The token pool pda to find the index and bump for
The mint of the token pool
The index and bump number.
StaticderiveDerive the token pool pda with index.
The mint of the token pool
Index. starts at 0. The Protocol supports 4 indexes aka token pools per mint.
The token pool pda and bump.
StaticcreateConstruct createMint instruction for compressed tokens.
Fee payer.
[createMintAccountInstruction, initializeMintInstruction, createTokenPoolInstruction]
Note that createTokenPoolInstruction must be executed after
initializeMintInstruction.
StaticcreateEnable compression for an existing SPL mint, creating an omnibus account.
For new mints, use CompressedTokenProgram.createMint.
Fee payer.
The createTokenPool instruction
StaticaddAdd a token pool to an existing SPL mint. For new mints, use createTokenPool.
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
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