ETHToolbox
ETHToolbox(
__namedParameters
):Promise
<{approve
: (__namedParameters
) =>Promise
<string
>;approvedAmount
: (__namedParameters
) =>Promise
<bigint
>;broadcastTransaction
: (signedTx
) =>Promise
<TransactionResponse
> | (signedTx
) =>Promise
<TransactionResponse
>;call
: <T
>(__namedParameters
) =>Promise
<T
>;createApprovalTx
: (__namedParameters
) =>Promise
<ContractTransaction
>;createContract
: (address
,abi
) =>Contract
;createContractTxObject
: (__namedParameters
) =>Promise
<ContractTransaction
>;createTransaction
: (__namedParameters
) =>Promise
<ContractTransaction
>;createTransferTx
: (__namedParameters
) =>Promise
<ContractTransaction
>;EIP1193SendTransaction
: (__namedParameters
) =>Promise
<string
>;estimateCall
: (__namedParameters
) =>Promise
<bigint
>;estimateGasLimit
: (__namedParameters
) =>Promise
<bigint
>;estimateGasPrices
: () =>Promise
<{average
: {gasPrice?
:bigint
;l1GasPrice?
:bigint
;maxFeePerGas?
:bigint
;maxPriorityFeePerGas?
:bigint
; };fast
: {gasPrice?
:bigint
;l1GasPrice?
:bigint
;maxFeePerGas?
:bigint
;maxPriorityFeePerGas?
:bigint
; };fastest
: {gasPrice?
:bigint
;l1GasPrice?
:bigint
;maxFeePerGas?
:bigint
;maxPriorityFeePerGas?
:bigint
; }; }>;estimateTransactionFee
: (__namedParameters
) =>Promise
<AssetValue
>;getAddress
: () =>undefined
|Promise
<string
>;getBalance
: (address
,scamFilter
) =>Promise
<AssetValue
[]>;getNetworkParams
: () =>undefined
;isApproved
: (__namedParameters
) =>Promise
<boolean
>;multicall
: (callTuples
,multicallAddress
,funcName
,feeOptionKey
) =>Promise
<string
>;sendTransaction
: (__namedParameters
) =>Promise
<string
>;signMessage
:undefined
| (message
) =>Promise
<string
> | (message
) =>Promise
<string
> | (_message
) =>Promise
<string
>;transfer
: (__namedParameters
) =>Promise
<string
>;validateAddress
: (address
) =>boolean
; }>
Defined in: packages/toolboxes/src/evm/toolbox/evm.ts:15
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”Promise
<{ approve
: (__namedParameters
) => Promise
<string
>; approvedAmount
: (__namedParameters
) => Promise
<bigint
>; broadcastTransaction
: (signedTx
) => Promise
<TransactionResponse
> | (signedTx
) => Promise
<TransactionResponse
>; call
: <T
>(__namedParameters
) => Promise
<T
>; createApprovalTx
: (__namedParameters
) => Promise
<ContractTransaction
>; createContract
: (address
, abi
) => Contract
; createContractTxObject
: (__namedParameters
) => Promise
<ContractTransaction
>; createTransaction
: (__namedParameters
) => Promise
<ContractTransaction
>; createTransferTx
: (__namedParameters
) => Promise
<ContractTransaction
>; EIP1193SendTransaction
: (__namedParameters
) => Promise
<string
>; estimateCall
: (__namedParameters
) => Promise
<bigint
>; estimateGasLimit
: (__namedParameters
) => Promise
<bigint
>; estimateGasPrices
: () => Promise
<{ average
: { gasPrice?
: bigint
; l1GasPrice?
: bigint
; maxFeePerGas?
: bigint
; maxPriorityFeePerGas?
: bigint
; }; fast
: { gasPrice?
: bigint
; l1GasPrice?
: bigint
; maxFeePerGas?
: bigint
; maxPriorityFeePerGas?
: bigint
; }; fastest
: { gasPrice?
: bigint
; l1GasPrice?
: bigint
; maxFeePerGas?
: bigint
; maxPriorityFeePerGas?
: bigint
; }; }>; estimateTransactionFee
: (__namedParameters
) => Promise
<AssetValue
>; getAddress
: () => undefined
| Promise
<string
>; getBalance
: (address
, scamFilter
) => Promise
<AssetValue
[]>; getNetworkParams
: () => undefined
; isApproved
: (__namedParameters
) => Promise
<boolean
>; multicall
: (callTuples
, multicallAddress
, funcName
, feeOptionKey
) => Promise
<string
>; sendTransaction
: (__namedParameters
) => Promise
<string
>; signMessage
: undefined
| (message
) => Promise
<string
> | (message
) => Promise
<string
> | (_message
) => Promise
<string
>; transfer
: (__namedParameters
) => Promise
<string
>; validateAddress
: (address
) => boolean
; }>