solana-framework
Version:
solana-framework is solana uni-tools for typescript
70 lines • 2.51 kB
TypeScript
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
import * as beet from '@metaplex-foundation/beet';
import * as web3 from '@solana/web3.js';
import { UtilizeArgs } from '../types/UtilizeArgs';
/**
* @category Instructions
* @category Utilize
* @category generated
*/
export type UtilizeInstructionArgs = {
utilizeArgs: UtilizeArgs;
};
/**
* @category Instructions
* @category Utilize
* @category generated
*/
export declare const UtilizeStruct: beet.BeetArgsStruct<UtilizeInstructionArgs & {
instructionDiscriminator: number;
}>;
/**
* Accounts required by the _Utilize_ instruction
*
* @property [_writable_] metadata Metadata account
* @property [_writable_] tokenAccount Token Account Of NFT
* @property [_writable_] mint Mint of the Metadata
* @property [_writable_, **signer**] useAuthority A Use Authority / Can be the current Owner of the NFT
* @property [] owner Owner
* @property [_writable_] useAuthorityRecord (optional) Use Authority Record PDA If present the program Assumes a delegated use authority
* @property [] burner (optional) Program As Signer (Burner)
* @category Instructions
* @category Utilize
* @category generated
*/
export type UtilizeInstructionAccounts = {
metadata: web3.PublicKey;
tokenAccount: web3.PublicKey;
mint: web3.PublicKey;
useAuthority: web3.PublicKey;
owner: web3.PublicKey;
tokenProgram?: web3.PublicKey;
ataProgram?: web3.PublicKey;
systemProgram?: web3.PublicKey;
rent?: web3.PublicKey;
useAuthorityRecord?: web3.PublicKey;
burner?: web3.PublicKey;
};
export declare const utilizeInstructionDiscriminator = 19;
/**
* Creates a _Utilize_ instruction.
*
* Optional accounts that are not provided will be omitted from the accounts
* array passed with the instruction.
* An optional account that is set cannot follow an optional account that is unset.
* Otherwise an Error is raised.
*
* @param accounts that will be accessed while the instruction is processed
* @param args to provide as instruction data to the program
*
* @category Instructions
* @category Utilize
* @category generated
*/
export declare function createUtilizeInstruction(accounts: UtilizeInstructionAccounts, args: UtilizeInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
//# sourceMappingURL=Utilize.d.ts.map