candy-machine-assistant
Version:
A tool to assist in the connecting to candy machines, mint accounts and confirm NFT transactions based on Solana's Metaplex NFTs.
43 lines (42 loc) • 2.3 kB
TypeScript
import { Keypair, Commitment, Connection, Transaction, TransactionInstruction, Blockhash, FeeCalculator } from "@solana/web3.js";
interface BlockhashAndFeeCalculator {
blockhash: Blockhash;
feeCalculator: FeeCalculator;
}
export declare const DEFAULT_TIMEOUT = 100000;
export declare const getErrorForTransaction: (connection: Connection, txid: string) => Promise<string[]>;
export declare enum SequenceType {
Sequential = 0,
Parallel = 1,
StopOnFailure = 2
}
export declare function sendTransactionsWithManualRetry(connection: Connection, wallet: any, instructions: TransactionInstruction[][], signers: Keypair[][]): Promise<(string | undefined)[]>;
export declare const sendTransactions: (connection: Connection, wallet: any, instructionSet: TransactionInstruction[][], signersSet: Keypair[][], sequenceType?: SequenceType, commitment?: Commitment, successCallback?: (txid: string, ind: number) => void, failCallback?: (reason: string, ind: number) => boolean, block?: BlockhashAndFeeCalculator | undefined, beforeTransactions?: Transaction[], afterTransactions?: Transaction[]) => Promise<{
number: number;
txs: {
txid: string;
slot: number;
}[];
}>;
export declare const sendTransaction: (connection: Connection, wallet: any, instructions: TransactionInstruction[] | Transaction, signers: Keypair[], awaitConfirmation?: boolean, commitment?: Commitment, includesFeePayer?: boolean, block?: BlockhashAndFeeCalculator | undefined) => Promise<{
txid: string;
slot: number;
}>;
export declare const sendTransactionWithRetry: (connection: Connection, wallet: any, instructions: TransactionInstruction[], signers: Keypair[], commitment?: Commitment, includesFeePayer?: boolean, block?: BlockhashAndFeeCalculator | undefined, beforeSend?: (() => void) | undefined) => Promise<{
txid: string;
slot: number;
}>;
export declare const getUnixTs: () => number;
export declare function sendSignedTransaction({ signedTransaction, connection, timeout, }: {
signedTransaction: Transaction;
connection: Connection;
sendingMessage?: string;
sentMessage?: string;
successMessage?: string;
timeout?: number;
}): Promise<{
txid: string;
slot: number;
}>;
export declare function sleep(ms: number): Promise<void>;
export {};