@kaiachain/web3js-ext
Version:
web3.js extension for kaiachain blockchain
5 lines (4 loc) • 752 B
TypeScript
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;