注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。A Contract method can be called directly, or used in various ways.
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 |
---|---|---|
fragment | FunctionFragment | The fragment of the Contract method. This will throw on ambiguous method names. |
name | string | The name of the Contract method. |
args
.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to call the method with. |
Promise
<bigint
>
A promise resolving to the estimated gas.
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.
args
.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to populate the transaction with. |
Promise
<ContractTransaction
>
A promise resolving to the populated transaction.
args
.
Parameter | Type | Description |
---|---|---|
…args | ContractMethodArgs <A > | The arguments to call the method with. |
Promise
<ContractTransactionResponse
>
A promise resolving to the transaction response.
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.
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.