UNPKG

solana-framework-deno

Version:

solana-framework-deno is solana uni-tools for deno

18 lines 2.74 kB
/// <reference types="node" /> import { AddressLookupTableAccount, ConfirmedSignatureInfo, Connection, Keypair, PublicKey, RpcResponseAndContext, Transaction, TransactionInstruction, VersionedTransaction, Commitment, GetAccountInfoConfig, AccountInfo, ParsedAccountData, ParsedTransactionWithMeta } from "@solana/web3.js"; import { TransferTransactionData } from "../types/transfer"; export declare const getSimulationComputeUnits: (connection: Connection, instructions: Array<TransactionInstruction>, payer: PublicKey, lookupTables?: Array<AddressLookupTableAccount>) => Promise<number | null>; export declare function mustGetParsedTransactions(connection: Connection, signatures: string[], retrySec?: number): Promise<(ParsedTransactionWithMeta | null)[]>; export declare function getSignatures(connection: Connection, target: PublicKey, start: string, includeErrTx?: boolean): Promise<ConfirmedSignatureInfo[]>; export declare function getRecentBlockhash(connection: Connection): Promise<string>; export declare function sendInstructions(connection: Connection, ixs: TransactionInstruction[], signers: Keypair[], maxExecErrorRetry?: number, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise<string | undefined>; export declare function sendInstructionsV0(connection: Connection, ixs: TransactionInstruction[], addressLookupTableAccounts: AddressLookupTableAccount[], signers: Keypair[], maxExecErrorRetry?: number, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise<string | undefined>; export declare function sendTransaction(connection: Connection, recentSignedTransaction: () => Promise<Transaction | VersionedTransaction>, maxExecErrorRetry?: number, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise<string | undefined>; export declare function getPriorityFee(connection: Connection): Promise<number>; export declare function isExistAccount(connection: Connection, address: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<boolean>; export declare function createTokenTransferInstructions(connection: Connection, mint: PublicKey, // token from: PublicKey, to: PublicKey, amount: number, isDelegated?: boolean, // Is `to` delegated by `from`? (default: false). if true, `to` is payer and receiver tokenProgram?: PublicKey, AssociatedTokenProgram?: PublicKey): Promise<TransactionInstruction[]>; export declare function mustGetMultipleParsedAccounts(connection: Connection, publicKeys: PublicKey[]): Promise<RpcResponseAndContext<(AccountInfo<Buffer | ParsedAccountData> | null)[]>>; export declare function parseTransactions(connection: Connection, signaturesInfos: ConfirmedSignatureInfo[]): Promise<TransferTransactionData[]>; //# sourceMappingURL=Connection.d.ts.map