solana-framework
Version:
solana-framework is solana uni-tools for typescript
58 lines • 2.23 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';
/**
* @category Instructions
* @category CreateEscrowAccount
* @category generated
*/
export declare const CreateEscrowAccountStruct: beet.BeetArgsStruct<{
instructionDiscriminator: number;
}>;
/**
* Accounts required by the _CreateEscrowAccount_ instruction
*
* @property [_writable_] escrow Escrow account
* @property [_writable_] metadata Metadata account
* @property [] mint Mint account
* @property [] tokenAccount Token account of the token
* @property [] edition Edition account
* @property [_writable_, **signer**] payer Wallet paying for the transaction and new account
* @property [] sysvarInstructions Instructions sysvar account
* @property [**signer**] authority (optional) Authority/creator of the escrow account
* @category Instructions
* @category CreateEscrowAccount
* @category generated
*/
export type CreateEscrowAccountInstructionAccounts = {
escrow: web3.PublicKey;
metadata: web3.PublicKey;
mint: web3.PublicKey;
tokenAccount: web3.PublicKey;
edition: web3.PublicKey;
payer: web3.PublicKey;
systemProgram?: web3.PublicKey;
sysvarInstructions: web3.PublicKey;
authority?: web3.PublicKey;
};
export declare const createEscrowAccountInstructionDiscriminator = 38;
/**
* Creates a _CreateEscrowAccount_ 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
* @category Instructions
* @category CreateEscrowAccount
* @category generated
*/
export declare function createCreateEscrowAccountInstruction(accounts: CreateEscrowAccountInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
//# sourceMappingURL=CreateEscrowAccount.d.ts.map