BaseContractMethod
<A
, R
, D
>Type parameter | Value |
---|---|
A extends any [] | any [] |
R | any |
D extends R | ContractTransactionResponse | R | ContractTransactionResponse |
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to call the method with. |
Promise
<D
>
A promise resolving to the result of the call.
Property | Type | Description | Inherited from |
---|---|---|---|
fragment | FunctionFragment | The fragment of the Contract method. This will throw on ambiguous method names. | BaseContractMethod .fragment |
name | string | The name of the Contract method. | BaseContractMethod .name |
args
.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to call the method with. |
Promise
<bigint
>
A promise resolving to the estimated gas.
BaseContractMethod
.estimateGas
args
. This can be used to resolve ambiguous method names.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to constrain the fragment by. |
FunctionFragment
The constrained fragment.
BaseContractMethod
.getFragment
args
.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to populate the transaction with. |
Promise
<ContractTransaction
>
A promise resolving to the populated transaction.
BaseContractMethod
.populateTransaction
args
.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to call the method with. |
Promise
<ContractTransactionResponse
>
A promise resolving to the transaction response.
BaseContractMethod
.send
args
and return the value.
If the return value is a single type, it will be dereferenced and returned directly, otherwise the full Result
will be returned.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to call the method with. |
Promise
<R
>
A promise resolving to the result of the static call.
BaseContractMethod
.staticCall
args
and return the Result without any dereferencing.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to call the method with. |
Promise
<Result
>
A promise resolving to the Result of the static call.
BaseContractMethod
.staticCallResult