UNPKG

crypto-wallet-core

Version:

A multi-currency support library for address derivation, private key creation, and transaction creation

51 lines 1.61 kB
import * as SolKit from '@solana/kit'; import { Key } from '../../derivation'; export declare class SOLTxProvider { MAX_TRANSFERS: number; MINIMUM_PRIORITY_FEE: number; create(params: { recipients: Array<{ address: string; amount: string; addressKeyPair?: SolKit.KeyPairSigner; }>; from: string; fee?: number; feeRate: number; txType?: 'legacy' | '0'; category?: 'transfer' | 'createAccount'; nonce?: string; nonceAddress?: string; blockHash?: string; blockHeight?: number; priorityFee?: number; computeUnits?: number; memo?: string; txInstructions?: Array<SolKit.BaseTransactionMessage['instructions'][number]>; fromKeyPair?: SolKit.KeyPairSigner; space?: number; }): SolKit.Base64EncodedWireTransaction; decodeRawTransaction({ rawTx, decodeTransactionMessage }: { rawTx: any; decodeTransactionMessage?: boolean; }): any; decodeTransactionMessage(bytes: any): SolKit.CompilableTransactionMessage; sign(params: { tx: string; key: Key; }): Promise<string>; signPartially(params: any): Promise<SolKit.Base64EncodedWireTransaction>; signMessage(params: any): Promise<string>; getSignature(params: { tx: string; keys: Array<Key>; }): Promise<string>; applySignature(params: { tx: string; signature: string; }): string; getHash(params: { tx: string; }): string; } //# sourceMappingURL=index.d.ts.map