UNPKG

@bcpros/crypto-wallet-core

Version:

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

52 lines 1.63 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; txInstructions?: Array<SolKit.BaseTransactionMessage['instructions'][number]>; fromKeyPair?: SolKit.KeyPairSigner; space?: number; }): SolKit.Base64EncodedWireTransaction; decodeRawTransaction({ rawTx }: { rawTx: any; }): { signatures: SolKit.SignaturesMap; messageBytes: SolKit.TransactionMessageBytes; lifetimeConstraint: SolKit.TransactionBlockhashLifetime | SolKit.TransactionDurableNonceLifetime; }; sign(params: { tx: string; key: Key; }): Promise<string>; getSignature(params: { tx: string; keys: Array<Key>; }): Promise<string>; applySignature(params: { tx: string; signature: string; }): string; getHash(params: { tx: string; }): string; getSignaturesToEncode(signaturesMap: any): unknown[]; getSignaturesEncoder(): SolKit.VariableSizeEncoder<any>; } //# sourceMappingURL=index.d.ts.map