UNPKG

@kaiachain/web3js-ext

Version:
5 lines (4 loc) 752 B
import { Web3Context } from "web3-core"; import { EthExecutionAPI, Transaction, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, FormatType, ETH_DATA_FORMAT, HexString, Address } from "web3-types"; export declare const getTransactionFromOrToAttr: (attr: "from" | "to", web3Context: Web3Context<EthExecutionAPI>, transaction?: Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex, privateKey?: HexString | Uint8Array) => Address | undefined; export declare const getTransactionType: (transaction: FormatType<Transaction, typeof ETH_DATA_FORMAT>, web3Context: Web3Context<EthExecutionAPI>) => string | undefined;