Socket
Socket
Sign inDemoInstall

web3-eth

Package Overview
Dependencies
Maintainers
4
Versions
460
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth - npm Package Compare versions

Comparing version 4.9.0 to 4.9.1-dev.04da324.0

lib/commonjs/tsconfig.cjs.tsbuildinfo

9

lib/commonjs/constants.d.ts

@@ -1,9 +0,4 @@

import { FMT_BYTES, FMT_NUMBER } from 'web3-types';
import { AbiEventFragment, FMT_BYTES, FMT_NUMBER } from 'web3-types';
export declare const ALL_EVENTS = "ALLEVENTS";
export declare const ALL_EVENTS_ABI: import("web3-types").AbiBaseFragment & {
readonly name: string;
readonly type: string;
readonly inputs?: readonly import("web3-types").AbiParameter[] | undefined;
readonly anonymous?: boolean | undefined;
} & {
export declare const ALL_EVENTS_ABI: AbiEventFragment & {
signature: string;

@@ -10,0 +5,0 @@ };

@@ -1,2 +0,2 @@

import { FormatType, DataFormat, EthExecutionAPI, SignedTransactionInfoAPI, Address, BlockNumberOrTag, Bytes, Filter, Numbers, TransactionReceipt, Transaction, TransactionCall, Web3EthExecutionAPI, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, TransactionForAccessList, Eip712TypedData } from 'web3-types';
import { FormatType, DataFormat, EthExecutionAPI, SignedTransactionInfoAPI, Address, BlockNumberOrTag, Bytes, Filter, HexString, Numbers, HexStringBytes, TransactionReceipt, Transaction, TransactionCall, Web3EthExecutionAPI, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, TransactionForAccessList, Eip712TypedData } from 'web3-types';
import { Web3Context, Web3PromiEvent } from 'web3-core';

@@ -63,14 +63,14 @@ import { SendSignedTransactionEvents, SendSignedTransactionOptions, SendTransactionEvents, SendTransactionOptions, TransactionMiddleware } from './types.js';

*/
export declare function getBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, hydrated: boolean | undefined, returnFormat: ReturnFormat): Promise<{
export declare function getBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, hydrated: boolean | undefined, returnFormat: ReturnFormat): Promise<{
transactions: string[] | {
readonly blockHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly from: string;
readonly from: Address;
readonly hash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
to?: string | null | undefined;
to?: (Address | null) | undefined;
value?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -84,3 +84,3 @@ common?: {

baseChain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
} | undefined;

@@ -96,7 +96,7 @@ gas?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

chain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
chainId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
networkId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
gasLimit?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
yParity?: string | undefined;
yParity?: import("web3-types").Uint | undefined;
v?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

@@ -131,3 +131,3 @@ r?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

*/
export declare function getBlockTransactionCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
export declare function getBlockTransactionCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
/**

@@ -137,3 +137,3 @@ * View additional documentations here: {@link Web3Eth.getBlockUncleCount}

*/
export declare function getBlockUncleCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
export declare function getBlockUncleCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
/**

@@ -143,3 +143,3 @@ * View additional documentations here: {@link Web3Eth.getUncle}

*/
export declare function getUncle<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, uncleIndex: Numbers, returnFormat: ReturnFormat): Promise<{
export declare function getUncle<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, uncleIndex: Numbers, returnFormat: ReturnFormat): Promise<{
readonly parentHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];

@@ -166,10 +166,10 @@ readonly sha3Uncles: import("web3-types").ByteTypes[ReturnFormat["bytes"]];

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly from: string;
readonly from: Address;
readonly hash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
to?: string | null | undefined;
to?: (Address | null) | undefined;
value?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -183,3 +183,3 @@ common?: {

baseChain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
} | undefined;

@@ -195,7 +195,7 @@ gas?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

chain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
chainId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
networkId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
gasLimit?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
yParity?: string | undefined;
yParity?: import("web3-types").Uint | undefined;
v?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

@@ -213,72 +213,72 @@ r?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

export declare function getTransaction<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, transactionHash: Bytes, returnFormat?: ReturnFormat): Promise<{
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly maxFeePerGas: string;
readonly maxPriorityFeePerGas: string;
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly maxFeePerGas: import("web3-types").Uint;
readonly maxPriorityFeePerGas: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly gasPrice: string;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly gasPrice: string;
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly v: string;
readonly r: string;
readonly s: string;
readonly gasPrice: string;
readonly accessList?: undefined;
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly v: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly gasPrice: import("web3-types").Uint;
readonly accessList?: never | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | undefined>;

@@ -290,8 +290,8 @@ /**

export declare function getPendingTransactions<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, returnFormat: ReturnFormat): Promise<{
from?: string | undefined;
to?: string | null | undefined;
from?: Address | undefined;
to?: (Address | null) | undefined;
value?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -305,3 +305,3 @@ common?: {

baseChain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
} | undefined;

@@ -317,7 +317,7 @@ gas?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

chain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
chainId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
networkId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
gasLimit?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
yParity?: string | undefined;
yParity?: import("web3-types").Uint | undefined;
v?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

@@ -331,73 +331,73 @@ r?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

*/
export declare function getTransactionFromBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, transactionIndex: Numbers, returnFormat: ReturnFormat): Promise<{
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly maxFeePerGas: string;
readonly maxPriorityFeePerGas: string;
export declare function getTransactionFromBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, transactionIndex: Numbers, returnFormat: ReturnFormat): Promise<{
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly maxFeePerGas: import("web3-types").Uint;
readonly maxPriorityFeePerGas: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly gasPrice: string;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly gasPrice: string;
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly v: string;
readonly r: string;
readonly s: string;
readonly gasPrice: string;
readonly accessList?: undefined;
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly v: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly gasPrice: import("web3-types").Uint;
readonly accessList?: never | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | undefined>;

@@ -413,8 +413,8 @@ /**

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: Address;
readonly to: Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: Address | undefined;
readonly logs: {

@@ -428,3 +428,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -443,8 +443,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: HexString[];
readonly data: HexString;
readonly raw?: {

@@ -457,3 +457,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: HexString | undefined;
};

@@ -482,8 +482,8 @@ } | undefined;

export declare function sign<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, message: Bytes, addressOrIndex: Address | number, returnFormat?: ReturnFormat): Promise<{
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly message?: string | undefined;
readonly signature: string;
readonly signature: HexString;
} | import("web3-types").ByteTypes[ReturnFormat["bytes"]]>;

@@ -517,3 +517,3 @@ /**

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -559,4 +559,4 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -563,0 +563,0 @@ readonly gasUsed?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

@@ -39,3 +39,31 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.signTypedData = exports.createAccessList = exports.getFeeHistory = exports.getProof = exports.getChainId = exports.getLogs = exports.estimateGas = exports.call = exports.signTransaction = exports.sign = exports.sendSignedTransaction = exports.sendTransaction = exports.getTransactionCount = exports.getTransactionReceipt = exports.getTransactionFromBlock = exports.getPendingTransactions = exports.getTransaction = exports.getUncle = exports.getBlockUncleCount = exports.getBlockTransactionCount = exports.getBlock = exports.getCode = exports.getStorageAt = exports.getBalance = exports.getBlockNumber = exports.getMaxPriorityFeePerGas = exports.getGasPrice = exports.getHashRate = exports.isMining = exports.getCoinbase = exports.isSyncing = exports.getProtocolVersion = void 0;
exports.isMining = exports.getCoinbase = exports.isSyncing = exports.getProtocolVersion = void 0;
exports.getHashRate = getHashRate;
exports.getGasPrice = getGasPrice;
exports.getMaxPriorityFeePerGas = getMaxPriorityFeePerGas;
exports.getBlockNumber = getBlockNumber;
exports.getBalance = getBalance;
exports.getStorageAt = getStorageAt;
exports.getCode = getCode;
exports.getBlock = getBlock;
exports.getBlockTransactionCount = getBlockTransactionCount;
exports.getBlockUncleCount = getBlockUncleCount;
exports.getUncle = getUncle;
exports.getTransaction = getTransaction;
exports.getPendingTransactions = getPendingTransactions;
exports.getTransactionFromBlock = getTransactionFromBlock;
exports.getTransactionReceipt = getTransactionReceipt;
exports.getTransactionCount = getTransactionCount;
exports.sendTransaction = sendTransaction;
exports.sendSignedTransaction = sendSignedTransaction;
exports.sign = sign;
exports.signTransaction = signTransaction;
exports.call = call;
exports.estimateGas = estimateGas;
exports.getLogs = getLogs;
exports.getChainId = getChainId;
exports.getProof = getProof;
exports.getFeeHistory = getFeeHistory;
exports.createAccessList = createAccessList;
exports.signTypedData = signTypedData;
// Disabling because returnTypes must be last param to match 1.x params

@@ -98,3 +126,2 @@ /* eslint-disable default-param-last */

}
exports.getHashRate = getHashRate;
/**

@@ -110,3 +137,2 @@ * View additional documentations here: {@link Web3Eth.getGasPrice}

}
exports.getGasPrice = getGasPrice;
/**

@@ -122,3 +148,2 @@ * View additional documentations here: {@link Web3Eth.getMaxPriorityFeePerGas}

}
exports.getMaxPriorityFeePerGas = getMaxPriorityFeePerGas;
/**

@@ -134,3 +159,2 @@ * View additional documentations here: {@link Web3Eth.getBlockNumber}

}
exports.getBlockNumber = getBlockNumber;
/**

@@ -140,4 +164,4 @@ * View additional documentations here: {@link Web3Eth.getBalance}

*/
function getBalance(web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getBalance(web3Context_1, address_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = (0, web3_validator_1.isBlockTag)(blockNumber)

@@ -150,3 +174,2 @@ ? blockNumber

}
exports.getBalance = getBalance;
/**

@@ -156,4 +179,4 @@ * View additional documentations here: {@link Web3Eth.getStorageAt}

*/
function getStorageAt(web3Context, address, storageSlot, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getStorageAt(web3Context_1, address_1, storageSlot_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, storageSlot, blockNumber = web3Context.defaultBlock, returnFormat) {
const storageSlotFormatted = (0, web3_utils_1.format)({ format: 'uint' }, storageSlot, web3_types_1.ETH_DATA_FORMAT);

@@ -167,3 +190,2 @@ const blockNumberFormatted = (0, web3_validator_1.isBlockTag)(blockNumber)

}
exports.getStorageAt = getStorageAt;
/**

@@ -173,4 +195,4 @@ * View additional documentations here: {@link Web3Eth.getCode}

*/
function getCode(web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getCode(web3Context_1, address_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = (0, web3_validator_1.isBlockTag)(blockNumber)

@@ -183,3 +205,2 @@ ? blockNumber

}
exports.getCode = getCode;
/**

@@ -189,5 +210,5 @@ * View additional documentations here: {@link Web3Eth.getBlock}

*/
function getBlock(web3Context, block = web3Context.defaultBlock, hydrated = false, returnFormat) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
function getBlock(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, hydrated = false, returnFormat) {
var _a;
let response;

@@ -212,3 +233,2 @@ if ((0, web3_validator_1.isBytes)(block)) {

}
exports.getBlock = getBlock;
/**

@@ -218,4 +238,4 @@ * View additional documentations here: {@link Web3Eth.getBlockTransactionCount}

*/
function getBlockTransactionCount(web3Context, block = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getBlockTransactionCount(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, returnFormat) {
let response;

@@ -235,3 +255,2 @@ if ((0, web3_validator_1.isBytes)(block)) {

}
exports.getBlockTransactionCount = getBlockTransactionCount;
/**

@@ -241,4 +260,4 @@ * View additional documentations here: {@link Web3Eth.getBlockUncleCount}

*/
function getBlockUncleCount(web3Context, block = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getBlockUncleCount(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, returnFormat) {
let response;

@@ -258,3 +277,2 @@ if ((0, web3_validator_1.isBytes)(block)) {

}
exports.getBlockUncleCount = getBlockUncleCount;
/**

@@ -264,4 +282,4 @@ * View additional documentations here: {@link Web3Eth.getUncle}

*/
function getUncle(web3Context, block = web3Context.defaultBlock, uncleIndex, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getUncle(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, uncleIndex, returnFormat) {
const uncleIndexFormatted = (0, web3_utils_1.format)({ format: 'uint' }, uncleIndex, web3_types_1.ETH_DATA_FORMAT);

@@ -282,3 +300,2 @@ let response;

}
exports.getUncle = getUncle;
/**

@@ -288,4 +305,4 @@ * View additional documentations here: {@link Web3Eth.getTransaction}

*/
function getTransaction(web3Context, transactionHash, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getTransaction(web3Context_1, transactionHash_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transactionHash, returnFormat = web3Context.defaultReturnFormat) {
const transactionHashFormatted = (0, web3_utils_1.format)({ format: 'bytes32' }, transactionHash, web3_types_1.DEFAULT_RETURN_FORMAT);

@@ -301,3 +318,2 @@ const response = yield web3_rpc_methods_1.ethRpcMethods.getTransactionByHash(web3Context.requestManager, transactionHashFormatted);

}
exports.getTransaction = getTransaction;
/**

@@ -316,3 +332,2 @@ * View additional documentations here: {@link Web3Eth.getPendingTransactions}

}
exports.getPendingTransactions = getPendingTransactions;
/**

@@ -322,4 +337,4 @@ * View additional documentations here: {@link Web3Eth.getTransactionFromBlock}

*/
function getTransactionFromBlock(web3Context, block = web3Context.defaultBlock, transactionIndex, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getTransactionFromBlock(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, transactionIndex, returnFormat) {
const transactionIndexFormatted = (0, web3_utils_1.format)({ format: 'uint' }, transactionIndex, web3_types_1.ETH_DATA_FORMAT);

@@ -345,3 +360,2 @@ let response;

}
exports.getTransactionFromBlock = getTransactionFromBlock;
/**

@@ -375,3 +389,2 @@ * View additional documentations here: {@link Web3Eth.getTransactionReceipt}

}
exports.getTransactionReceipt = getTransactionReceipt;
/**

@@ -381,4 +394,4 @@ * View additional documentations here: {@link Web3Eth.getTransactionCount}

*/
function getTransactionCount(web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getTransactionCount(web3Context_1, address_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = (0, web3_validator_1.isBlockTag)(blockNumber)

@@ -391,3 +404,2 @@ ? blockNumber

}
exports.getTransactionCount = getTransactionCount;
/**

@@ -415,6 +427,6 @@ * View additional documentations here: {@link Web3Eth.sendTransaction}

try {
transactionFormatted = yield sendTxHelper.populateGasPrice({
transactionFormatted = (yield sendTxHelper.populateGasPrice({
transaction,
transactionFormatted,
});
}));
yield sendTxHelper.checkRevertBeforeSending(transactionFormatted);

@@ -456,3 +468,2 @@ sendTxHelper.emitSending(transactionFormatted);

}
exports.sendTransaction = sendTransaction;
/**

@@ -517,3 +528,2 @@ * View additional documentations here: {@link Web3Eth.sendSignedTransaction}

}
exports.sendSignedTransaction = sendSignedTransaction;
/**

@@ -523,5 +533,5 @@ * View additional documentations here: {@link Web3Eth.sign}

*/
function sign(web3Context, message, addressOrIndex, returnFormat = web3Context.defaultReturnFormat) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
function sign(web3Context_1, message_1, addressOrIndex_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, message, addressOrIndex, returnFormat = web3Context.defaultReturnFormat) {
var _a;
const messageFormatted = (0, web3_utils_1.format)({ format: 'bytes' }, message, web3_types_1.DEFAULT_RETURN_FORMAT);

@@ -540,3 +550,2 @@ if ((_a = web3Context.wallet) === null || _a === void 0 ? void 0 : _a.get(addressOrIndex)) {

}
exports.sign = sign;
/**

@@ -546,4 +555,4 @@ * View additional documentations here: {@link Web3Eth.signTransaction}

*/
function signTransaction(web3Context, transaction, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function signTransaction(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, returnFormat = web3Context.defaultReturnFormat) {
const response = yield web3_rpc_methods_1.ethRpcMethods.signTransaction(web3Context.requestManager, (0, format_transaction_js_1.formatTransaction)(transaction, web3_types_1.ETH_DATA_FORMAT, {

@@ -567,3 +576,2 @@ transactionSchema: web3Context.config.customTransactionSchema,

}
exports.signTransaction = signTransaction;
// TODO Decide what to do with transaction.to

@@ -575,4 +583,4 @@ // https://github.com/ChainSafe/web3.js/pull/4525#issuecomment-982330076

*/
function call(web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function call(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat = web3Context.defaultReturnFormat) {
const blockNumberFormatted = (0, web3_validator_1.isBlockTag)(blockNumber)

@@ -587,3 +595,2 @@ ? blockNumber

}
exports.call = call;
// TODO - Investigate whether response is padded as 1.x docs suggest

@@ -594,4 +601,4 @@ /**

*/
function estimateGas(web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function estimateGas(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
const transactionFormatted = (0, format_transaction_js_1.formatTransaction)(transaction, web3_types_1.ETH_DATA_FORMAT, {

@@ -607,3 +614,2 @@ transactionSchema: web3Context.config.customTransactionSchema,

}
exports.estimateGas = estimateGas;
// TODO - Add input formatting to filter

@@ -639,3 +645,2 @@ /**

}
exports.getLogs = getLogs;
/**

@@ -653,3 +658,2 @@ * View additional documentations here: {@link Web3Eth.getChainId}

}
exports.getChainId = getChainId;
/**

@@ -659,4 +663,4 @@ * View additional documentations here: {@link Web3Eth.getProof}

*/
function getProof(web3Context, address, storageKeys, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getProof(web3Context_1, address_1, storageKeys_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, storageKeys, blockNumber = web3Context.defaultBlock, returnFormat) {
const storageKeysFormatted = storageKeys.map(storageKey => (0, web3_utils_1.format)({ format: 'bytes' }, storageKey, web3_types_1.ETH_DATA_FORMAT));

@@ -670,3 +674,2 @@ const blockNumberFormatted = (0, web3_validator_1.isBlockTag)(blockNumber)

}
exports.getProof = getProof;
// TODO Throwing an error with Geth, but not Infura

@@ -678,4 +681,4 @@ // TODO gasUsedRatio and reward not formatting

*/
function getFeeHistory(web3Context, blockCount, newestBlock = web3Context.defaultBlock, rewardPercentiles, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getFeeHistory(web3Context_1, blockCount_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, blockCount, newestBlock = web3Context.defaultBlock, rewardPercentiles, returnFormat) {
const blockCountFormatted = (0, web3_utils_1.format)({ format: 'uint' }, blockCount, web3_types_1.ETH_DATA_FORMAT);

@@ -695,3 +698,2 @@ const newestBlockFormatted = (0, web3_validator_1.isBlockTag)(newestBlock)

}
exports.getFeeHistory = getFeeHistory;
/**

@@ -701,4 +703,4 @@ * View additional documentations here: {@link Web3Eth.createAccessList}

*/
function createAccessList(web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function createAccessList(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = (0, web3_validator_1.isBlockTag)(blockNumber)

@@ -713,3 +715,2 @@ ? blockNumber

}
exports.createAccessList = createAccessList;
/**

@@ -725,3 +726,2 @@ * View additional documentations here: {@link Web3Eth.signTypedData}

}
exports.signTypedData = signTypedData;
//# sourceMappingURL=rpc_method_wrappers.js.map
import { ContractExecutionError, TransactionRevertedWithoutReasonError, TransactionRevertInstructionError, TransactionRevertWithCustomError, InvalidResponseError, TransactionPollingTimeoutError } from 'web3-errors';
import { FormatType, ETH_DATA_FORMAT, DataFormat, Bytes, ContractAbi, HexString, Numbers, Transaction, TransactionReceipt, TransactionWithFromAndToLocalWalletIndex, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex } from 'web3-types';
import { Schema } from 'web3-validator';
export declare type InternalTransaction = FormatType<Transaction, typeof ETH_DATA_FORMAT>;
export declare type SendTransactionEventsBase<ReturnFormat extends DataFormat, TxType> = {
export type InternalTransaction = FormatType<Transaction, typeof ETH_DATA_FORMAT>;
export type SendTransactionEventsBase<ReturnFormat extends DataFormat, TxType> = {
sending: FormatType<TxType, typeof ETH_DATA_FORMAT>;

@@ -17,4 +17,4 @@ sent: FormatType<TxType, typeof ETH_DATA_FORMAT>;

};
export declare type SendTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Transaction>;
export declare type SendSignedTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Bytes>;
export type SendTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Transaction>;
export type SendSignedTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Bytes>;
export interface SendTransactionOptions<ResolveType = TransactionReceipt> {

@@ -42,3 +42,3 @@ ignoreGasPricing?: boolean;

}
export declare type TransactionMiddlewareData = Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex;
export type TransactionMiddlewareData = Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex;
export interface TransactionMiddleware {

@@ -49,5 +49,5 @@ processTransaction(transaction: TransactionMiddlewareData, options?: {

}
export declare type CustomTransactionSchema = {
export type CustomTransactionSchema = {
type: string;
properties: Record<string, Schema>;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decodeSignedTransaction = void 0;
exports.decodeSignedTransaction = decodeSignedTransaction;
const web3_utils_1 = require("web3-utils");

@@ -26,3 +26,2 @@ const web3_eth_accounts_1 = require("web3-eth-accounts");

}
exports.decodeSignedTransaction = decodeSignedTransaction;
//# sourceMappingURL=decode_signed_transaction.js.map

@@ -19,3 +19,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.formatTransaction = void 0;
exports.formatTransaction = formatTransaction;
const web3_types_1 = require("web3-types");

@@ -61,3 +61,2 @@ const web3_validator_1 = require("web3-validator");

}
exports.formatTransaction = formatTransaction;
//# sourceMappingURL=format_transaction.js.map

@@ -28,3 +28,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getRevertReason = exports.parseTransactionError = void 0;
exports.parseTransactionError = void 0;
exports.getRevertReason = getRevertReason;
const web3_errors_1 = require("web3-errors");

@@ -70,4 +71,4 @@ const web3_eth_abi_1 = require("web3-eth-abi");

*/
function getRevertReason(web3Context, transaction, contractAbi, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
function getRevertReason(web3Context_1, transaction_1, contractAbi_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, contractAbi, returnFormat = web3Context.defaultReturnFormat) {
try {

@@ -82,3 +83,2 @@ yield (0, rpc_method_wrappers_js_1.call)(web3Context, transaction, web3Context.defaultBlock, returnFormat);

}
exports.getRevertReason = getRevertReason;
//# sourceMappingURL=get_revert_reason.js.map

@@ -10,8 +10,8 @@ import { Web3Context } from 'web3-core';

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: import("web3-types").Address;
readonly to: import("web3-types").Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: import("web3-types").Address | undefined;
readonly logs: {

@@ -25,3 +25,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: import("web3-types").Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -40,8 +40,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -54,3 +54,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};

@@ -63,8 +63,8 @@ } | undefined;

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: import("web3-types").Address;
readonly to: import("web3-types").Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: import("web3-types").Address | undefined;
readonly logs: {

@@ -78,3 +78,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: import("web3-types").Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -93,8 +93,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -107,3 +107,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};

@@ -116,8 +116,8 @@ } | undefined;

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: import("web3-types").Address;
readonly to: import("web3-types").Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: import("web3-types").Address | undefined;
readonly logs: {

@@ -131,3 +131,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: import("web3-types").Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -146,8 +146,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -160,5 +160,5 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};
} | undefined;
}>>;

@@ -28,3 +28,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getTransactionError = void 0;
exports.getTransactionError = getTransactionError;
const web3_errors_1 = require("web3-errors");

@@ -63,3 +63,2 @@ // eslint-disable-next-line import/no-cycle

}
exports.getTransactionError = getTransactionError;
//# sourceMappingURL=get_transaction_error.js.map

@@ -28,3 +28,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getTransactionGasPricing = void 0;
exports.getTransactionGasPricing = getTransactionGasPricing;
const web3_types_1 = require("web3-types");

@@ -39,4 +39,4 @@ const web3_validator_1 = require("web3-validator");

function getEip1559GasPricing(transaction, web3Context, returnFormat) {
var _a, _b, _c, _d;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c, _d;
const block = yield (0, rpc_method_wrappers_js_1.getBlock)(web3Context, web3Context.defaultBlock, false, web3_types_1.ETH_DATA_FORMAT);

@@ -86,3 +86,2 @@ if ((0, web3_validator_1.isNullish)(block.baseFeePerGas))

}
exports.getTransactionGasPricing = getTransactionGasPricing;
//# sourceMappingURL=get_transaction_gas_pricing.js.map

@@ -98,3 +98,3 @@ "use strict";

};
const prepareTransactionForSigning = (transaction, web3Context, privateKey, fillGasPrice = false, fillGasLimit = true) => __awaiter(void 0, void 0, void 0, function* () {
const prepareTransactionForSigning = (transaction_1, web3Context_1, privateKey_1, ...args_1) => __awaiter(void 0, [transaction_1, web3Context_1, privateKey_1, ...args_1], void 0, function* (transaction, web3Context, privateKey, fillGasPrice = false, fillGasLimit = true) {
const populatedTransaction = (yield (0, transaction_builder_js_1.transactionBuilder)({

@@ -101,0 +101,0 @@ transaction,

@@ -12,3 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.rejectIfBlockTimeout = void 0;
exports.rejectIfBlockTimeout = rejectIfBlockTimeout;
const web3_utils_1 = require("web3-utils");

@@ -46,4 +46,4 @@ const web3_errors_1 = require("web3-errors");

function resolveBySubscription(web3Context, starterBlockNumber, transactionHash) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
// The following variable will stay true except if the data arrived,

@@ -123,4 +123,4 @@ // or if watching started after an error had occurred.

function rejectIfBlockTimeout(web3Context, transactionHash) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b;
const { provider } = web3Context.requestManager;

@@ -140,3 +140,2 @@ let callingRes;

}
exports.rejectIfBlockTimeout = rejectIfBlockTimeout;
//# sourceMappingURL=reject_if_block_timeout.js.map

@@ -89,7 +89,7 @@ "use strict";

}
populateGasPrice({ transactionFormatted, transaction, }) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
populateGasPrice(_a) {
return __awaiter(this, arguments, void 0, function* ({ transactionFormatted, transaction, }) {
var _b;
let result = transactionFormatted;
if (!((_a = this.options) === null || _a === void 0 ? void 0 : _a.ignoreGasPricing) &&
if (!((_b = this.options) === null || _b === void 0 ? void 0 : _b.ignoreGasPricing) &&
(0, web3_validator_1.isNullish)(transactionFormatted.gasPrice) &&

@@ -103,4 +103,4 @@ ((0, web3_validator_1.isNullish)(transaction.maxPriorityFeePerGas) ||

}
signAndSend({ wallet, tx, }) {
return __awaiter(this, void 0, void 0, function* () {
signAndSend(_a) {
return __awaiter(this, arguments, void 0, function* ({ wallet, tx, }) {
if (wallet) {

@@ -134,8 +134,8 @@ const signedTransaction = yield wallet.signTransaction(tx);

}
handleError({ error, tx }) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
handleError(_a) {
return __awaiter(this, arguments, void 0, function* ({ error, tx }) {
var _b;
let _error = error;
if (_error instanceof web3_errors_1.ContractExecutionError && this.web3Context.handleRevert) {
_error = yield (0, get_transaction_error_js_1.getTransactionError)(this.web3Context, tx, undefined, undefined, (_a = this.options) === null || _a === void 0 ? void 0 : _a.contractAbi);
_error = yield (0, get_transaction_error_js_1.getTransactionError)(this.web3Context, tx, undefined, undefined, (_b = this.options) === null || _b === void 0 ? void 0 : _b.contractAbi);
}

@@ -159,7 +159,7 @@ if ((_error instanceof web3_errors_1.InvalidResponseError ||

}
handleResolve({ receipt, tx }) {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.transactionResolver) {
return (_b = this.options) === null || _b === void 0 ? void 0 : _b.transactionResolver(receipt);
handleResolve(_a) {
return __awaiter(this, arguments, void 0, function* ({ receipt, tx }) {
var _b, _c, _d;
if ((_b = this.options) === null || _b === void 0 ? void 0 : _b.transactionResolver) {
return (_c = this.options) === null || _c === void 0 ? void 0 : _c.transactionResolver(receipt);
}

@@ -169,3 +169,3 @@ if (receipt.status === BigInt(0)) {

// @ts-expect-error unknown type fix
receipt, undefined, (_c = this.options) === null || _c === void 0 ? void 0 : _c.contractAbi);
receipt, undefined, (_d = this.options) === null || _d === void 0 ? void 0 : _d.contractAbi);
if (this.promiEvent.listenerCount('error') > 0) {

@@ -172,0 +172,0 @@ this.promiEvent.emit('error', error);

import { EthExecutionAPI, Address, HexString, Transaction, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, Web3NetAPI, DataFormat, FormatType, ETH_DATA_FORMAT } from 'web3-types';
import { Web3Context } from 'web3-core';
export declare const getTransactionFromOrToAttr: (attr: 'from' | 'to', web3Context: Web3Context<EthExecutionAPI>, transaction?: Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex, privateKey?: HexString | Uint8Array) => Address | undefined;
export declare const getTransactionFromOrToAttr: (attr: "from" | "to", web3Context: Web3Context<EthExecutionAPI>, transaction?: Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex, privateKey?: HexString | Uint8Array) => Address | undefined;
export declare const getTransactionNonce: <ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, address?: Address, returnFormat?: ReturnFormat) => Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;

@@ -13,3 +13,3 @@ export declare const getTransactionType: (transaction: FormatType<Transaction, typeof ETH_DATA_FORMAT>, web3Context: Web3Context<EthExecutionAPI>) => string | undefined;

}): Promise<ReturnType>;
export declare const transactionBuilder: <ReturnType_1 = Transaction>(options: {
export declare const transactionBuilder: <ReturnType = Transaction>(options: {
transaction: Transaction;

@@ -20,2 +20,2 @@ web3Context: Web3Context<EthExecutionAPI>;

fillGasLimit?: boolean;
}) => Promise<ReturnType_1>;
}) => Promise<ReturnType>;

@@ -28,3 +28,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.transactionBuilder = exports.defaultTransactionBuilder = exports.getTransactionType = exports.getTransactionNonce = exports.getTransactionFromOrToAttr = void 0;
exports.transactionBuilder = exports.getTransactionType = exports.getTransactionNonce = exports.getTransactionFromOrToAttr = void 0;
exports.defaultTransactionBuilder = defaultTransactionBuilder;
const web3_types_1 = require("web3-types");

@@ -74,3 +75,3 @@ const web3_eth_accounts_1 = require("web3-eth-accounts");

exports.getTransactionFromOrToAttr = getTransactionFromOrToAttr;
const getTransactionNonce = (web3Context, address, returnFormat = web3Context.defaultReturnFormat) => __awaiter(void 0, void 0, void 0, function* () {
const getTransactionNonce = (web3Context_1, address_1, ...args_1) => __awaiter(void 0, [web3Context_1, address_1, ...args_1], void 0, function* (web3Context, address, returnFormat = web3Context.defaultReturnFormat) {
if ((0, web3_validator_1.isNullish)(address)) {

@@ -95,4 +96,4 @@ // TODO if (web3.eth.accounts.wallet) use address from local wallet

function defaultTransactionBuilder(options) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b;
let populatedTransaction = (0, web3_utils_1.format)(schemas_js_1.transactionSchema, options.transaction, options.web3Context.defaultReturnFormat);

@@ -168,3 +169,2 @@ if ((0, web3_validator_1.isNullish)(populatedTransaction.from)) {

}
exports.defaultTransactionBuilder = defaultTransactionBuilder;
const transactionBuilder = (options) => __awaiter(void 0, void 0, void 0, function* () {

@@ -171,0 +171,0 @@ var _a;

@@ -12,3 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.trySendTransaction = void 0;
exports.trySendTransaction = trySendTransaction;
const web3_utils_1 = require("web3-utils");

@@ -35,4 +35,4 @@ const web3_errors_1 = require("web3-errors");

return yield Promise.race([
sendTransactionFunc(),
rejectOnTimeout,
sendTransactionFunc(), // this is the function that will send the transaction
rejectOnTimeout, // this will throw an error on Transaction Send Timeout
rejectOnBlockTimeout, // this will throw an error on Transaction Block Timeout

@@ -47,3 +47,2 @@ ]);

}
exports.trySendTransaction = trySendTransaction;
//# sourceMappingURL=try_send_transaction.js.map

@@ -28,3 +28,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.waitForTransactionReceipt = void 0;
exports.waitForTransactionReceipt = waitForTransactionReceipt;
const web3_errors_1 = require("web3-errors");

@@ -38,4 +38,4 @@ // eslint-disable-next-line import/no-cycle

function waitForTransactionReceipt(web3Context, transactionHash, returnFormat, customGetTransactionReceipt) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const pollingInterval = (_a = web3Context.transactionReceiptPollingInterval) !== null && _a !== void 0 ? _a : web3Context.transactionPollingInterval;

@@ -60,3 +60,3 @@ const [awaitableTransactionReceipt, IntervalId] = (0, web3_utils_1.pollTillDefinedAndReturnIntervalId)(() => __awaiter(this, void 0, void 0, function* () {

awaitableTransactionReceipt,
rejectOnTimeout,
rejectOnTimeout, // this will throw an error on Transaction Polling Timeout
rejectOnBlockTimeout, // this will throw an error on Transaction Block Timeout

@@ -74,3 +74,2 @@ ]);

}
exports.waitForTransactionReceipt = waitForTransactionReceipt;
//# sourceMappingURL=wait_for_transaction_receipt.js.map

@@ -6,4 +6,4 @@ import { EthExecutionAPI, TransactionReceipt } from 'web3-types';

import { SendSignedTransactionEvents, SendTransactionEvents } from '../types.js';
export declare type Web3PromiEventEventTypeBase<ReturnFormat extends DataFormat> = SendTransactionEvents<ReturnFormat> | SendSignedTransactionEvents<ReturnFormat>;
export declare type WaitProps<ReturnFormat extends DataFormat, ResolveType = TransactionReceipt> = {
export type Web3PromiEventEventTypeBase<ReturnFormat extends DataFormat> = SendTransactionEvents<ReturnFormat> | SendSignedTransactionEvents<ReturnFormat>;
export type WaitProps<ReturnFormat extends DataFormat, ResolveType = TransactionReceipt> = {
web3Context: Web3Context<EthExecutionAPI>;

@@ -10,0 +10,0 @@ transactionReceipt: TransactionReceipt;

@@ -51,4 +51,4 @@ "use strict";

subscription.on('error', () => __awaiter(void 0, void 0, void 0, function* () {
var _b;
yield ((_b = web3Context.subscriptionManager) === null || _b === void 0 ? void 0 : _b.removeSubscription(subscription));
var _a;
yield ((_a = web3Context.subscriptionManager) === null || _a === void 0 ? void 0 : _a.removeSubscription(subscription));
needToWatchLater = false;

@@ -55,0 +55,0 @@ (0, watch_transaction_by_polling_js_1.watchTransactionByPolling)({

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchTransactionForConfirmations = void 0;
exports.watchTransactionForConfirmations = watchTransactionForConfirmations;
const web3_utils_1 = require("web3-utils");

@@ -46,3 +46,2 @@ const web3_validator_1 = require("web3-validator");

}
exports.watchTransactionForConfirmations = watchTransactionForConfirmations;
//# sourceMappingURL=watch_transaction_for_confirmations.js.map

@@ -24,4 +24,4 @@ import { AccessList, AccessListEntry, BaseTransactionAPI, Transaction1559UnsignedAPI, Transaction2930UnsignedAPI, TransactionCall, TransactionLegacyUnsignedAPI, TransactionWithSenderAPI } from 'web3-types';

export declare const validateGas: (transaction: InternalTransaction) => void;
export declare const validateTransactionForSigning: (transaction: InternalTransaction, overrideMethod?: ((transaction: InternalTransaction) => void) | undefined, options?: {
export declare const validateTransactionForSigning: (transaction: InternalTransaction, overrideMethod?: (transaction: InternalTransaction) => void, options?: {
transactionSchema?: CustomTransactionSchema;
}) => void;

@@ -19,3 +19,13 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.validateTransactionForSigning = exports.validateGas = exports.validateFeeMarketGas = exports.validateLegacyGas = exports.validateHardfork = exports.validateBaseChain = exports.validateChainInfo = exports.validateCustomChainInfo = exports.validateTransactionCall = exports.isTransactionCall = exports.validateTransactionWithSender = exports.isTransactionWithSender = exports.isTransactionLegacyUnsigned = exports.isTransaction2930Unsigned = exports.isTransaction1559Unsigned = exports.isAccessList = exports.isAccessListEntry = exports.isBaseTransaction = void 0;
exports.validateTransactionForSigning = exports.validateGas = exports.validateFeeMarketGas = exports.validateLegacyGas = exports.validateHardfork = exports.validateBaseChain = exports.validateChainInfo = exports.validateCustomChainInfo = void 0;
exports.isBaseTransaction = isBaseTransaction;
exports.isAccessListEntry = isAccessListEntry;
exports.isAccessList = isAccessList;
exports.isTransaction1559Unsigned = isTransaction1559Unsigned;
exports.isTransaction2930Unsigned = isTransaction2930Unsigned;
exports.isTransactionLegacyUnsigned = isTransactionLegacyUnsigned;
exports.isTransactionWithSender = isTransactionWithSender;
exports.validateTransactionWithSender = validateTransactionWithSender;
exports.isTransactionCall = isTransactionCall;
exports.validateTransactionCall = validateTransactionCall;
const web3_types_1 = require("web3-types");

@@ -42,3 +52,2 @@ const web3_validator_1 = require("web3-validator");

}
exports.isBaseTransaction = isBaseTransaction;
function isAccessListEntry(value) {

@@ -52,3 +61,2 @@ if (!(0, web3_validator_1.isNullish)(value.address) && !(0, web3_validator_1.isAddress)(value.address))

}
exports.isAccessListEntry = isAccessListEntry;
function isAccessList(value) {

@@ -60,3 +68,2 @@ if (!Array.isArray(value) ||

}
exports.isAccessList = isAccessList;
function isTransaction1559Unsigned(value) {

@@ -73,3 +80,2 @@ if (!isBaseTransaction(value))

}
exports.isTransaction1559Unsigned = isTransaction1559Unsigned;
function isTransaction2930Unsigned(value) {

@@ -84,3 +90,2 @@ if (!isBaseTransaction(value))

}
exports.isTransaction2930Unsigned = isTransaction2930Unsigned;
function isTransactionLegacyUnsigned(value) {

@@ -93,3 +98,2 @@ if (!isBaseTransaction(value))

}
exports.isTransactionLegacyUnsigned = isTransactionLegacyUnsigned;
function isTransactionWithSender(value) {

@@ -106,3 +110,2 @@ if (!(0, web3_validator_1.isAddress)(value.from))

}
exports.isTransactionWithSender = isTransactionWithSender;
function validateTransactionWithSender(value) {

@@ -112,3 +115,2 @@ if (!isTransactionWithSender(value))

}
exports.validateTransactionWithSender = validateTransactionWithSender;
function isTransactionCall(value) {

@@ -137,3 +139,2 @@ if (!(0, web3_validator_1.isNullish)(value.from) && !(0, web3_validator_1.isAddress)(value.from))

}
exports.isTransactionCall = isTransactionCall;
function validateTransactionCall(value) {

@@ -143,3 +144,2 @@ if (!isTransactionCall(value))

}
exports.validateTransactionCall = validateTransactionCall;
const validateCustomChainInfo = (transaction) => {

@@ -146,0 +146,0 @@ if (!(0, web3_validator_1.isNullish)(transaction.common)) {

@@ -21,5 +21,5 @@ import { SyncOutput, Address, BlockNumberOrTag, HexString, Topic, BlockHeaderOutput, LogsOutput } from 'web3-types';

protected _buildSubscriptionParams(): (string | {
readonly fromBlock?: BlockNumberOrTag | undefined;
readonly address?: string | string[] | undefined;
readonly topics?: string[] | undefined;
readonly fromBlock?: BlockNumberOrTag;
readonly address?: Address | Address[];
readonly topics?: Topic[];
})[];

@@ -31,8 +31,8 @@ protected formatSubscriptionResult(data: LogsOutput): {

readonly transactionIndex?: string | number | bigint | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: string | number | bigint | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: HexString[];
readonly data: HexString;
};

@@ -39,0 +39,0 @@ }

@@ -124,4 +124,4 @@ /*

*/
export function getBalance(web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getBalance(web3Context_1, address_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = isBlockTag(blockNumber)

@@ -138,4 +138,4 @@ ? blockNumber

*/
export function getStorageAt(web3Context, address, storageSlot, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getStorageAt(web3Context_1, address_1, storageSlot_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, storageSlot, blockNumber = web3Context.defaultBlock, returnFormat) {
const storageSlotFormatted = format({ format: 'uint' }, storageSlot, ETH_DATA_FORMAT);

@@ -153,4 +153,4 @@ const blockNumberFormatted = isBlockTag(blockNumber)

*/
export function getCode(web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getCode(web3Context_1, address_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = isBlockTag(blockNumber)

@@ -167,5 +167,5 @@ ? blockNumber

*/
export function getBlock(web3Context, block = web3Context.defaultBlock, hydrated = false, returnFormat) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
export function getBlock(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, hydrated = false, returnFormat) {
var _a;
let response;

@@ -194,4 +194,4 @@ if (isBytes(block)) {

*/
export function getBlockTransactionCount(web3Context, block = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getBlockTransactionCount(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, returnFormat) {
let response;

@@ -215,4 +215,4 @@ if (isBytes(block)) {

*/
export function getBlockUncleCount(web3Context, block = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getBlockUncleCount(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, returnFormat) {
let response;

@@ -236,4 +236,4 @@ if (isBytes(block)) {

*/
export function getUncle(web3Context, block = web3Context.defaultBlock, uncleIndex, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getUncle(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, uncleIndex, returnFormat) {
const uncleIndexFormatted = format({ format: 'uint' }, uncleIndex, ETH_DATA_FORMAT);

@@ -258,4 +258,4 @@ let response;

*/
export function getTransaction(web3Context, transactionHash, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getTransaction(web3Context_1, transactionHash_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transactionHash, returnFormat = web3Context.defaultReturnFormat) {
const transactionHashFormatted = format({ format: 'bytes32' }, transactionHash, DEFAULT_RETURN_FORMAT);

@@ -288,4 +288,4 @@ const response = yield ethRpcMethods.getTransactionByHash(web3Context.requestManager, transactionHashFormatted);

*/
export function getTransactionFromBlock(web3Context, block = web3Context.defaultBlock, transactionIndex, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getTransactionFromBlock(web3Context_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, block = web3Context.defaultBlock, transactionIndex, returnFormat) {
const transactionIndexFormatted = format({ format: 'uint' }, transactionIndex, ETH_DATA_FORMAT);

@@ -343,4 +343,4 @@ let response;

*/
export function getTransactionCount(web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getTransactionCount(web3Context_1, address_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = isBlockTag(blockNumber)

@@ -375,6 +375,6 @@ ? blockNumber

try {
transactionFormatted = yield sendTxHelper.populateGasPrice({
transactionFormatted = (yield sendTxHelper.populateGasPrice({
transaction,
transactionFormatted,
});
}));
yield sendTxHelper.checkRevertBeforeSending(transactionFormatted);

@@ -479,5 +479,5 @@ sendTxHelper.emitSending(transactionFormatted);

*/
export function sign(web3Context, message, addressOrIndex, returnFormat = web3Context.defaultReturnFormat) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
export function sign(web3Context_1, message_1, addressOrIndex_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, message, addressOrIndex, returnFormat = web3Context.defaultReturnFormat) {
var _a;
const messageFormatted = format({ format: 'bytes' }, message, DEFAULT_RETURN_FORMAT);

@@ -500,4 +500,4 @@ if ((_a = web3Context.wallet) === null || _a === void 0 ? void 0 : _a.get(addressOrIndex)) {

*/
export function signTransaction(web3Context, transaction, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function signTransaction(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, returnFormat = web3Context.defaultReturnFormat) {
const response = yield ethRpcMethods.signTransaction(web3Context.requestManager, formatTransaction(transaction, ETH_DATA_FORMAT, {

@@ -527,4 +527,4 @@ transactionSchema: web3Context.config.customTransactionSchema,

*/
export function call(web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function call(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat = web3Context.defaultReturnFormat) {
const blockNumberFormatted = isBlockTag(blockNumber)

@@ -544,4 +544,4 @@ ? blockNumber

*/
export function estimateGas(web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function estimateGas(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
const transactionFormatted = formatTransaction(transaction, ETH_DATA_FORMAT, {

@@ -603,4 +603,4 @@ transactionSchema: web3Context.config.customTransactionSchema,

*/
export function getProof(web3Context, address, storageKeys, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getProof(web3Context_1, address_1, storageKeys_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, address, storageKeys, blockNumber = web3Context.defaultBlock, returnFormat) {
const storageKeysFormatted = storageKeys.map(storageKey => format({ format: 'bytes' }, storageKey, ETH_DATA_FORMAT));

@@ -620,4 +620,4 @@ const blockNumberFormatted = isBlockTag(blockNumber)

*/
export function getFeeHistory(web3Context, blockCount, newestBlock = web3Context.defaultBlock, rewardPercentiles, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getFeeHistory(web3Context_1, blockCount_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, blockCount, newestBlock = web3Context.defaultBlock, rewardPercentiles, returnFormat) {
const blockCountFormatted = format({ format: 'uint' }, blockCount, ETH_DATA_FORMAT);

@@ -641,4 +641,4 @@ const newestBlockFormatted = isBlockTag(newestBlock)

*/
export function createAccessList(web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function createAccessList(web3Context_1, transaction_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, blockNumber = web3Context.defaultBlock, returnFormat) {
const blockNumberFormatted = isBlockTag(blockNumber)

@@ -645,0 +645,0 @@ ? blockNumber

@@ -65,4 +65,4 @@ /*

*/
export function getRevertReason(web3Context, transaction, contractAbi, returnFormat = web3Context.defaultReturnFormat) {
return __awaiter(this, void 0, void 0, function* () {
export function getRevertReason(web3Context_1, transaction_1, contractAbi_1) {
return __awaiter(this, arguments, void 0, function* (web3Context, transaction, contractAbi, returnFormat = web3Context.defaultReturnFormat) {
try {

@@ -69,0 +69,0 @@ yield call(web3Context, transaction, web3Context.defaultBlock, returnFormat);

@@ -35,4 +35,4 @@ /*

function getEip1559GasPricing(transaction, web3Context, returnFormat) {
var _a, _b, _c, _d;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c, _d;
const block = yield getBlock(web3Context, web3Context.defaultBlock, false, ETH_DATA_FORMAT);

@@ -39,0 +39,0 @@ if (isNullish(block.baseFeePerGas))

@@ -95,3 +95,3 @@ /*

};
export const prepareTransactionForSigning = (transaction, web3Context, privateKey, fillGasPrice = false, fillGasLimit = true) => __awaiter(void 0, void 0, void 0, function* () {
export const prepareTransactionForSigning = (transaction_1, web3Context_1, privateKey_1, ...args_1) => __awaiter(void 0, [transaction_1, web3Context_1, privateKey_1, ...args_1], void 0, function* (transaction, web3Context, privateKey, fillGasPrice = false, fillGasLimit = true) {
const populatedTransaction = (yield transactionBuilder({

@@ -98,0 +98,0 @@ transaction,

@@ -42,4 +42,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

function resolveBySubscription(web3Context, starterBlockNumber, transactionHash) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
// The following variable will stay true except if the data arrived,

@@ -119,4 +119,4 @@ // or if watching started after an error had occurred.

export function rejectIfBlockTimeout(web3Context, transactionHash) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b;
const { provider } = web3Context.requestManager;

@@ -123,0 +123,0 @@ let callingRes;

@@ -86,7 +86,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
populateGasPrice({ transactionFormatted, transaction, }) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
populateGasPrice(_a) {
return __awaiter(this, arguments, void 0, function* ({ transactionFormatted, transaction, }) {
var _b;
let result = transactionFormatted;
if (!((_a = this.options) === null || _a === void 0 ? void 0 : _a.ignoreGasPricing) &&
if (!((_b = this.options) === null || _b === void 0 ? void 0 : _b.ignoreGasPricing) &&
isNullish(transactionFormatted.gasPrice) &&

@@ -100,4 +100,4 @@ (isNullish(transaction.maxPriorityFeePerGas) ||

}
signAndSend({ wallet, tx, }) {
return __awaiter(this, void 0, void 0, function* () {
signAndSend(_a) {
return __awaiter(this, arguments, void 0, function* ({ wallet, tx, }) {
if (wallet) {

@@ -131,8 +131,8 @@ const signedTransaction = yield wallet.signTransaction(tx);

}
handleError({ error, tx }) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
handleError(_a) {
return __awaiter(this, arguments, void 0, function* ({ error, tx }) {
var _b;
let _error = error;
if (_error instanceof ContractExecutionError && this.web3Context.handleRevert) {
_error = yield getTransactionError(this.web3Context, tx, undefined, undefined, (_a = this.options) === null || _a === void 0 ? void 0 : _a.contractAbi);
_error = yield getTransactionError(this.web3Context, tx, undefined, undefined, (_b = this.options) === null || _b === void 0 ? void 0 : _b.contractAbi);
}

@@ -156,7 +156,7 @@ if ((_error instanceof InvalidResponseError ||

}
handleResolve({ receipt, tx }) {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.transactionResolver) {
return (_b = this.options) === null || _b === void 0 ? void 0 : _b.transactionResolver(receipt);
handleResolve(_a) {
return __awaiter(this, arguments, void 0, function* ({ receipt, tx }) {
var _b, _c, _d;
if ((_b = this.options) === null || _b === void 0 ? void 0 : _b.transactionResolver) {
return (_c = this.options) === null || _c === void 0 ? void 0 : _c.transactionResolver(receipt);
}

@@ -166,3 +166,3 @@ if (receipt.status === BigInt(0)) {

// @ts-expect-error unknown type fix
receipt, undefined, (_c = this.options) === null || _c === void 0 ? void 0 : _c.contractAbi);
receipt, undefined, (_d = this.options) === null || _d === void 0 ? void 0 : _d.contractAbi);
if (this.promiEvent.listenerCount('error') > 0) {

@@ -169,0 +169,0 @@ this.promiEvent.emit('error', error);

@@ -69,3 +69,3 @@ /*

};
export const getTransactionNonce = (web3Context, address, returnFormat = web3Context.defaultReturnFormat) => __awaiter(void 0, void 0, void 0, function* () {
export const getTransactionNonce = (web3Context_1, address_1, ...args_1) => __awaiter(void 0, [web3Context_1, address_1, ...args_1], void 0, function* (web3Context, address, returnFormat = web3Context.defaultReturnFormat) {
if (isNullish(address)) {

@@ -88,4 +88,4 @@ // TODO if (web3.eth.accounts.wallet) use address from local wallet

export function defaultTransactionBuilder(options) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b;
let populatedTransaction = format(transactionSchema, options.transaction, options.web3Context.defaultReturnFormat);

@@ -92,0 +92,0 @@ if (isNullish(populatedTransaction.from)) {

@@ -31,4 +31,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

return yield Promise.race([
sendTransactionFunc(),
rejectOnTimeout,
sendTransactionFunc(), // this is the function that will send the transaction
rejectOnTimeout, // this will throw an error on Transaction Send Timeout
rejectOnBlockTimeout, // this will throw an error on Transaction Block Timeout

@@ -35,0 +35,0 @@ ]);

@@ -34,4 +34,4 @@ /*

export function waitForTransactionReceipt(web3Context, transactionHash, returnFormat, customGetTransactionReceipt) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const pollingInterval = (_a = web3Context.transactionReceiptPollingInterval) !== null && _a !== void 0 ? _a : web3Context.transactionPollingInterval;

@@ -56,3 +56,3 @@ const [awaitableTransactionReceipt, IntervalId] = pollTillDefinedAndReturnIntervalId(() => __awaiter(this, void 0, void 0, function* () {

awaitableTransactionReceipt,
rejectOnTimeout,
rejectOnTimeout, // this will throw an error on Transaction Polling Timeout
rejectOnBlockTimeout, // this will throw an error on Transaction Block Timeout

@@ -59,0 +59,0 @@ ]);

@@ -48,4 +48,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

subscription.on('error', () => __awaiter(void 0, void 0, void 0, function* () {
var _b;
yield ((_b = web3Context.subscriptionManager) === null || _b === void 0 ? void 0 : _b.removeSubscription(subscription));
var _a;
yield ((_a = web3Context.subscriptionManager) === null || _a === void 0 ? void 0 : _a.removeSubscription(subscription));
needToWatchLater = false;

@@ -52,0 +52,0 @@ watchTransactionByPolling({

@@ -1,9 +0,4 @@

import { FMT_BYTES, FMT_NUMBER } from 'web3-types';
import { AbiEventFragment, FMT_BYTES, FMT_NUMBER } from 'web3-types';
export declare const ALL_EVENTS = "ALLEVENTS";
export declare const ALL_EVENTS_ABI: import("web3-types").AbiBaseFragment & {
readonly name: string;
readonly type: string;
readonly inputs?: readonly import("web3-types").AbiParameter[] | undefined;
readonly anonymous?: boolean | undefined;
} & {
export declare const ALL_EVENTS_ABI: AbiEventFragment & {
signature: string;

@@ -10,0 +5,0 @@ };

@@ -1,2 +0,2 @@

import { FormatType, DataFormat, EthExecutionAPI, SignedTransactionInfoAPI, Address, BlockNumberOrTag, Bytes, Filter, Numbers, TransactionReceipt, Transaction, TransactionCall, Web3EthExecutionAPI, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, TransactionForAccessList, Eip712TypedData } from 'web3-types';
import { FormatType, DataFormat, EthExecutionAPI, SignedTransactionInfoAPI, Address, BlockNumberOrTag, Bytes, Filter, HexString, Numbers, HexStringBytes, TransactionReceipt, Transaction, TransactionCall, Web3EthExecutionAPI, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, TransactionForAccessList, Eip712TypedData } from 'web3-types';
import { Web3Context, Web3PromiEvent } from 'web3-core';

@@ -63,14 +63,14 @@ import { SendSignedTransactionEvents, SendSignedTransactionOptions, SendTransactionEvents, SendTransactionOptions, TransactionMiddleware } from './types.js';

*/
export declare function getBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, hydrated: boolean | undefined, returnFormat: ReturnFormat): Promise<{
export declare function getBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, hydrated: boolean | undefined, returnFormat: ReturnFormat): Promise<{
transactions: string[] | {
readonly blockHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly from: string;
readonly from: Address;
readonly hash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
to?: string | null | undefined;
to?: (Address | null) | undefined;
value?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -84,3 +84,3 @@ common?: {

baseChain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
} | undefined;

@@ -96,7 +96,7 @@ gas?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

chain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
chainId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
networkId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
gasLimit?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
yParity?: string | undefined;
yParity?: import("web3-types").Uint | undefined;
v?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

@@ -131,3 +131,3 @@ r?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

*/
export declare function getBlockTransactionCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
export declare function getBlockTransactionCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
/**

@@ -137,3 +137,3 @@ * View additional documentations here: {@link Web3Eth.getBlockUncleCount}

*/
export declare function getBlockUncleCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
export declare function getBlockUncleCount<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, returnFormat: ReturnFormat): Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
/**

@@ -143,3 +143,3 @@ * View additional documentations here: {@link Web3Eth.getUncle}

*/
export declare function getUncle<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, uncleIndex: Numbers, returnFormat: ReturnFormat): Promise<{
export declare function getUncle<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, uncleIndex: Numbers, returnFormat: ReturnFormat): Promise<{
readonly parentHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];

@@ -166,10 +166,10 @@ readonly sha3Uncles: import("web3-types").ByteTypes[ReturnFormat["bytes"]];

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly from: string;
readonly from: Address;
readonly hash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
to?: string | null | undefined;
to?: (Address | null) | undefined;
value?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -183,3 +183,3 @@ common?: {

baseChain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
} | undefined;

@@ -195,7 +195,7 @@ gas?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

chain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
chainId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
networkId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
gasLimit?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
yParity?: string | undefined;
yParity?: import("web3-types").Uint | undefined;
v?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

@@ -213,72 +213,72 @@ r?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

export declare function getTransaction<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, transactionHash: Bytes, returnFormat?: ReturnFormat): Promise<{
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly maxFeePerGas: string;
readonly maxPriorityFeePerGas: string;
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly maxFeePerGas: import("web3-types").Uint;
readonly maxPriorityFeePerGas: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly gasPrice: string;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly gasPrice: string;
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly v: string;
readonly r: string;
readonly s: string;
readonly gasPrice: string;
readonly accessList?: undefined;
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly v: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly gasPrice: import("web3-types").Uint;
readonly accessList?: never | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | undefined>;

@@ -290,8 +290,8 @@ /**

export declare function getPendingTransactions<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, returnFormat: ReturnFormat): Promise<{
from?: string | undefined;
to?: string | null | undefined;
from?: Address | undefined;
to?: (Address | null) | undefined;
value?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -305,3 +305,3 @@ common?: {

baseChain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
} | undefined;

@@ -317,7 +317,7 @@ gas?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

chain?: import("web3-types").ValidChains | undefined;
hardfork?: "chainstart" | "frontier" | "homestead" | "dao" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople" | "petersburg" | "istanbul" | "muirGlacier" | "berlin" | "london" | "altair" | "arrowGlacier" | "grayGlacier" | "bellatrix" | "merge" | "capella" | "shanghai" | undefined;
hardfork?: import("web3-types").Hardfork | undefined;
chainId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
networkId?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
gasLimit?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
yParity?: string | undefined;
yParity?: import("web3-types").Uint | undefined;
v?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

@@ -331,73 +331,73 @@ r?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

*/
export declare function getTransactionFromBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: string | number | bigint | Uint8Array | undefined, transactionIndex: Numbers, returnFormat: ReturnFormat): Promise<{
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly maxFeePerGas: string;
readonly maxPriorityFeePerGas: string;
export declare function getTransactionFromBlock<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, block: (Bytes | BlockNumberOrTag) | undefined, transactionIndex: Numbers, returnFormat: ReturnFormat): Promise<{
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly maxFeePerGas: import("web3-types").Uint;
readonly maxPriorityFeePerGas: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly gasPrice: string;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly yParity: string;
readonly r: string;
readonly s: string;
readonly v?: undefined;
readonly gasPrice: string;
readonly yParity: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly v?: never | undefined;
readonly gasPrice: import("web3-types").Uint;
readonly accessList: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[];
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | {
readonly v: string;
readonly r: string;
readonly s: string;
readonly gasPrice: string;
readonly accessList?: undefined;
readonly maxFeePerGas?: undefined;
readonly maxPriorityFeePerGas?: undefined;
readonly to?: string | null | undefined;
readonly type: string;
readonly nonce: string;
readonly gas: string;
readonly value: string;
readonly input: string;
readonly data?: string | undefined;
readonly chainId?: string | undefined;
readonly hash: string;
readonly blockHash?: string | undefined;
readonly blockNumber?: string | undefined;
readonly from: string;
readonly transactionIndex?: string | undefined;
readonly v: import("web3-types").Uint;
readonly r: import("web3-types").Uint;
readonly s: import("web3-types").Uint;
readonly gasPrice: import("web3-types").Uint;
readonly accessList?: never | undefined;
readonly maxFeePerGas?: never | undefined;
readonly maxPriorityFeePerGas?: never | undefined;
readonly to?: (Address | null) | undefined;
readonly type: import("web3-types").HexStringSingleByte;
readonly nonce: import("web3-types").Uint;
readonly gas: import("web3-types").Uint;
readonly value: import("web3-types").Uint;
readonly input: HexStringBytes;
readonly data?: HexStringBytes | undefined;
readonly chainId?: import("web3-types").Uint | undefined;
readonly hash: import("web3-types").HexString32Bytes;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").Uint | undefined;
readonly from: Address;
readonly transactionIndex?: import("web3-types").Uint | undefined;
} | undefined>;

@@ -413,8 +413,8 @@ /**

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: Address;
readonly to: Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: Address | undefined;
readonly logs: {

@@ -428,3 +428,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -443,8 +443,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: HexString[];
readonly data: HexString;
readonly raw?: {

@@ -457,3 +457,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: HexString | undefined;
};

@@ -482,8 +482,8 @@ } | undefined;

export declare function sign<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, message: Bytes, addressOrIndex: Address | number, returnFormat?: ReturnFormat): Promise<{
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly message?: string | undefined;
readonly signature: string;
readonly signature: HexString;
} | import("web3-types").ByteTypes[ReturnFormat["bytes"]]>;

@@ -517,3 +517,3 @@ /**

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -559,4 +559,4 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly accessList?: {
readonly address?: string | undefined;
readonly storageKeys?: string[] | undefined;
readonly address?: Address | undefined;
readonly storageKeys?: import("web3-types").HexString32Bytes[] | undefined;
}[] | undefined;

@@ -563,0 +563,0 @@ readonly gasUsed?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;

import { ContractExecutionError, TransactionRevertedWithoutReasonError, TransactionRevertInstructionError, TransactionRevertWithCustomError, InvalidResponseError, TransactionPollingTimeoutError } from 'web3-errors';
import { FormatType, ETH_DATA_FORMAT, DataFormat, Bytes, ContractAbi, HexString, Numbers, Transaction, TransactionReceipt, TransactionWithFromAndToLocalWalletIndex, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex } from 'web3-types';
import { Schema } from 'web3-validator';
export declare type InternalTransaction = FormatType<Transaction, typeof ETH_DATA_FORMAT>;
export declare type SendTransactionEventsBase<ReturnFormat extends DataFormat, TxType> = {
export type InternalTransaction = FormatType<Transaction, typeof ETH_DATA_FORMAT>;
export type SendTransactionEventsBase<ReturnFormat extends DataFormat, TxType> = {
sending: FormatType<TxType, typeof ETH_DATA_FORMAT>;

@@ -17,4 +17,4 @@ sent: FormatType<TxType, typeof ETH_DATA_FORMAT>;

};
export declare type SendTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Transaction>;
export declare type SendSignedTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Bytes>;
export type SendTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Transaction>;
export type SendSignedTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Bytes>;
export interface SendTransactionOptions<ResolveType = TransactionReceipt> {

@@ -42,3 +42,3 @@ ignoreGasPricing?: boolean;

}
export declare type TransactionMiddlewareData = Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex;
export type TransactionMiddlewareData = Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex;
export interface TransactionMiddleware {

@@ -49,3 +49,3 @@ processTransaction(transaction: TransactionMiddlewareData, options?: {

}
export declare type CustomTransactionSchema = {
export type CustomTransactionSchema = {
type: string;

@@ -52,0 +52,0 @@ properties: Record<string, Schema>;

@@ -10,8 +10,8 @@ import { Web3Context } from 'web3-core';

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: import("web3-types").Address;
readonly to: import("web3-types").Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: import("web3-types").Address | undefined;
readonly logs: {

@@ -25,3 +25,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: import("web3-types").Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -40,8 +40,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -54,3 +54,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};

@@ -63,8 +63,8 @@ } | undefined;

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: import("web3-types").Address;
readonly to: import("web3-types").Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: import("web3-types").Address | undefined;
readonly logs: {

@@ -78,3 +78,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: import("web3-types").Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -93,8 +93,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -107,3 +107,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};

@@ -116,8 +116,8 @@ } | undefined;

readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly from: string;
readonly to: string;
readonly from: import("web3-types").Address;
readonly to: import("web3-types").Address;
readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly contractAddress?: string | undefined;
readonly contractAddress?: import("web3-types").Address | undefined;
readonly logs: {

@@ -131,3 +131,3 @@ readonly id?: string | undefined;

readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address?: string | undefined;
readonly address?: import("web3-types").Address | undefined;
readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;

@@ -146,8 +146,8 @@ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;

readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: import("web3-types").HexString[];
readonly data: import("web3-types").HexString;
readonly raw?: {

@@ -160,3 +160,3 @@ data: string;

};
readonly signature?: string | undefined;
readonly signature?: import("web3-types").HexString | undefined;
};

@@ -163,0 +163,0 @@ } | undefined;

import { EthExecutionAPI, Address, HexString, Transaction, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, Web3NetAPI, DataFormat, FormatType, ETH_DATA_FORMAT } from 'web3-types';
import { Web3Context } from 'web3-core';
export declare const getTransactionFromOrToAttr: (attr: 'from' | 'to', web3Context: Web3Context<EthExecutionAPI>, transaction?: Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex, privateKey?: HexString | Uint8Array) => Address | undefined;
export declare const getTransactionFromOrToAttr: (attr: "from" | "to", web3Context: Web3Context<EthExecutionAPI>, transaction?: Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex, privateKey?: HexString | Uint8Array) => Address | undefined;
export declare const getTransactionNonce: <ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, address?: Address, returnFormat?: ReturnFormat) => Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;

@@ -13,3 +13,3 @@ export declare const getTransactionType: (transaction: FormatType<Transaction, typeof ETH_DATA_FORMAT>, web3Context: Web3Context<EthExecutionAPI>) => string | undefined;

}): Promise<ReturnType>;
export declare const transactionBuilder: <ReturnType_1 = Transaction>(options: {
export declare const transactionBuilder: <ReturnType = Transaction>(options: {
transaction: Transaction;

@@ -20,3 +20,3 @@ web3Context: Web3Context<EthExecutionAPI>;

fillGasLimit?: boolean;
}) => Promise<ReturnType_1>;
}) => Promise<ReturnType>;
//# sourceMappingURL=transaction_builder.d.ts.map

@@ -6,4 +6,4 @@ import { EthExecutionAPI, TransactionReceipt } from 'web3-types';

import { SendSignedTransactionEvents, SendTransactionEvents } from '../types.js';
export declare type Web3PromiEventEventTypeBase<ReturnFormat extends DataFormat> = SendTransactionEvents<ReturnFormat> | SendSignedTransactionEvents<ReturnFormat>;
export declare type WaitProps<ReturnFormat extends DataFormat, ResolveType = TransactionReceipt> = {
export type Web3PromiEventEventTypeBase<ReturnFormat extends DataFormat> = SendTransactionEvents<ReturnFormat> | SendSignedTransactionEvents<ReturnFormat>;
export type WaitProps<ReturnFormat extends DataFormat, ResolveType = TransactionReceipt> = {
web3Context: Web3Context<EthExecutionAPI>;

@@ -10,0 +10,0 @@ transactionReceipt: TransactionReceipt;

@@ -24,5 +24,5 @@ import { AccessList, AccessListEntry, BaseTransactionAPI, Transaction1559UnsignedAPI, Transaction2930UnsignedAPI, TransactionCall, TransactionLegacyUnsignedAPI, TransactionWithSenderAPI } from 'web3-types';

export declare const validateGas: (transaction: InternalTransaction) => void;
export declare const validateTransactionForSigning: (transaction: InternalTransaction, overrideMethod?: ((transaction: InternalTransaction) => void) | undefined, options?: {
export declare const validateTransactionForSigning: (transaction: InternalTransaction, overrideMethod?: (transaction: InternalTransaction) => void, options?: {
transactionSchema?: CustomTransactionSchema;
}) => void;
//# sourceMappingURL=validation.d.ts.map

@@ -21,5 +21,5 @@ import { SyncOutput, Address, BlockNumberOrTag, HexString, Topic, BlockHeaderOutput, LogsOutput } from 'web3-types';

protected _buildSubscriptionParams(): (string | {
readonly fromBlock?: BlockNumberOrTag | undefined;
readonly address?: string | string[] | undefined;
readonly topics?: string[] | undefined;
readonly fromBlock?: BlockNumberOrTag;
readonly address?: Address | Address[];
readonly topics?: Topic[];
})[];

@@ -31,8 +31,8 @@ protected formatSubscriptionResult(data: LogsOutput): {

readonly transactionIndex?: string | number | bigint | undefined;
readonly transactionHash?: string | undefined;
readonly blockHash?: string | undefined;
readonly transactionHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockHash?: import("web3-types").HexString32Bytes | undefined;
readonly blockNumber?: string | number | bigint | undefined;
readonly address: string;
readonly topics: string[];
readonly data: string;
readonly topics: HexString[];
readonly data: HexString;
};

@@ -39,0 +39,0 @@ }

{
"name": "web3-eth",
"version": "4.9.0",
"version": "4.9.1-dev.04da324.0+04da324",
"description": "Web3 module to interact with the Ethereum blockchain and smart contracts.",

@@ -61,19 +61,19 @@ "main": "./lib/commonjs/index.js",

"ts-jest": "^29.1.1",
"typescript": "^4.7.4",
"web3-providers-http": "^4.2.0"
"typescript": "^5.5.4",
"web3-providers-http": "4.2.1-dev.04da324.0+04da324"
},
"dependencies": {
"setimmediate": "^1.0.5",
"web3-core": "^4.6.0",
"web3-errors": "^1.3.0",
"web3-eth-abi": "^4.2.4",
"web3-eth-accounts": "^4.2.1",
"web3-net": "^4.1.0",
"web3-providers-ws": "^4.0.8",
"web3-rpc-methods": "^1.3.0",
"web3-types": "^1.8.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
"web3-core": "4.6.1-dev.04da324.0+04da324",
"web3-errors": "1.3.1-dev.04da324.0+04da324",
"web3-eth-abi": "4.2.5-dev.04da324.0+04da324",
"web3-eth-accounts": "4.2.2-dev.04da324.0+04da324",
"web3-net": "4.1.1-dev.04da324.0+04da324",
"web3-providers-ws": "4.0.9-dev.04da324.0+04da324",
"web3-rpc-methods": "1.3.1-dev.04da324.0+04da324",
"web3-types": "1.8.1-dev.04da324.0+04da324",
"web3-utils": "4.3.2-dev.04da324.0+04da324",
"web3-validator": "2.0.7-dev.04da324.0+04da324"
},
"gitHead": "07993314c5db2dfaedb51bf1243c99568b6e070f"
"gitHead": "04da324744d2e8d8b358cd4ccf0e97c08d635be3"
}

@@ -601,7 +601,9 @@ /*

let transactionFormatted:
let transactionFormatted: FormatType<
| Transaction
| TransactionWithFromLocalWalletIndex
| TransactionWithToLocalWalletIndex
| TransactionWithFromAndToLocalWalletIndex = formatTransaction(
| TransactionWithFromAndToLocalWalletIndex,
ReturnFormat
> = formatTransaction(
{

@@ -616,9 +618,9 @@ ...transaction,

},
);
) as FormatType<Transaction, ReturnFormat>;
try {
transactionFormatted = await sendTxHelper.populateGasPrice({
transactionFormatted = (await sendTxHelper.populateGasPrice({
transaction,
transactionFormatted,
});
})) as FormatType<Transaction, ReturnFormat>;

@@ -625,0 +627,0 @@ await sendTxHelper.checkRevertBeforeSending(

@@ -48,2 +48,3 @@ /*

import {
InternalTransaction,
SendSignedTransactionEvents,

@@ -154,3 +155,8 @@ SendTransactionEvents,

if (this.promiEvent.listenerCount('sending') > 0) {
this.promiEvent.emit('sending', tx);
this.promiEvent.emit(
'sending',
tx as
| SendSignedTransactionEvents<ReturnFormat>['sending']
| SendTransactionEvents<ReturnFormat>['sending'],
);
}

@@ -178,3 +184,3 @@ }

...(await getTransactionGasPricing(
transactionFormatted,
transactionFormatted as InternalTransaction,
this.web3Context,

@@ -197,3 +203,3 @@ ETH_DATA_FORMAT,

if (wallet) {
const signedTransaction = await wallet.signTransaction(tx);
const signedTransaction = await wallet.signTransaction(tx as Transaction);

@@ -222,3 +228,8 @@ return trySendTransaction(

if (this.promiEvent.listenerCount('sent') > 0) {
this.promiEvent.emit('sent', tx);
this.promiEvent.emit(
'sent',
tx as
| SendSignedTransactionEvents<ReturnFormat>['sent']
| SendTransactionEvents<ReturnFormat>['sent'],
);
}

@@ -225,0 +236,0 @@ }

@@ -65,3 +65,3 @@ /*

latestBlockHash: format({ format: 'bytes32' }, transactionReceipt.blockHash, returnFormat),
});
} as Web3PromiEventEventType['confirmation']);

@@ -68,0 +68,0 @@ // so a subscription for newBlockHeaders can be made instead of polling

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc