Developer Guide

utils/web3-utils

Index

Functions

Functions

Const estimateGas

estimateGas(tx: Tx, gasEstimator: function, caller: function): Promise‹number›

Defined in contractkit/src/utils/web3-utils.ts:21

Parameters:

tx: Tx

gasEstimator: function

▸ (tx: Tx): Promise‹number›

Parameters:

Name

Type

tx

Tx

caller: function

▸ (tx: Tx): Promise‹string›

Parameters:

Name

Type

tx

Tx

Returns: Promise‹number›

Const getAbiTypes

getAbiTypes(abi: ABIDefinition[], methodName: string): string[]

Defined in contractkit/src/utils/web3-utils.ts:5

Parameters:

Name

Type

abi

ABIDefinition[]

methodName

string

Returns: string[]

Const parseDecodedParams

parseDecodedParams(params: DecodedParamsObject): object

Defined in contractkit/src/utils/web3-utils.ts:8

Parameters:

Name

Type

params

DecodedParamsObject

Returns: object

  • args: any[]

  • params: DecodedParamsObject