@pythnetwork/solana-utils
Version:
Utility functions for Solana
15 lines • 809 B
TypeScript
import { Logger } from "ts-log";
import { Wallet } from "@coral-xyz/anchor";
import { PublicKey, Signer, TransactionInstruction, VersionedTransaction } from "@solana/web3.js";
import { SearcherClient } from "jito-ts/dist/sdk/block-engine/searcher";
export declare const TIP_ACCOUNTS: string[];
export declare function getRandomTipAccount(): PublicKey;
export declare function buildJitoTipInstruction(payer: PublicKey, lamports: number): TransactionInstruction;
export declare function sendTransactionsJito(transactions: {
tx: VersionedTransaction;
signers?: Signer[] | undefined;
}[], searcherClients: SearcherClient | SearcherClient[], wallet: Wallet, options?: {
maxRetryTimeMs?: number;
delayBetweenCyclesMs?: number;
}, logger?: Logger): Promise<string>;
//# sourceMappingURL=jito.d.ts.map