@gorbchain-xyz/chaindecode
Version:
GorbchainSDK V1.3+ - Complete Solana development toolkit with advanced cryptography, messaging, and collaboration features. Build secure applications with blockchain, DeFi, and end-to-end encryption.
23 lines (22 loc) • 832 B
TypeScript
import type { Address } from '@solana/addresses';
import type { IInstruction } from '@solana/instructions';
import type { Transaction } from '@solana/transactions';
import type { RpcClient } from '../rpc/client.js';
/**
* Create and sign a transaction from instructions and feePayer.
* Automatically fetches recentBlockhash and lastValidBlockHeight.
*/
export declare function createTransaction({ connection, instructions, feePayer, signers }: {
connection: RpcClient;
instructions: IInstruction[];
feePayer: string | Address;
signers: CryptoKeyPair[];
}): Promise<Transaction>;
/**
* Return transaction metadata and raw instructions for UI or API
*/
export declare function getTransactionMetadata(tx: Transaction): {
signatures: any;
messageBytes: any;
};
export * from './getAndDecodeTransaction.js';