注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。The AbiCoder is a low-level class responsible for encoding JavaScript values into binary data and decoding binary data into JavaScript values.
external
functions.
Parameter | Type | Description |
---|---|---|
types | readonly (string | ParamType )[] | Array of parameter types. |
data | BytesLike | The ABI data to decode. |
loose ? | boolean | Enable loose decoding. Default is false |
Result
The decoded values.
Parameter | Type | Description |
---|---|---|
types | readonly (string | ParamType )[] | Array of parameter types. |
values | readonly any [] | Array of values to encode. |
string
The encoded data in hexadecimal format.
uint
is by default 0
and bool
is by default
false
.
Parameter | Type | Description |
---|---|---|
types | readonly (string | ParamType )[] | Array of parameter types to get default values for. |
Result
The default values corresponding to the given types.
AbiCoder
The default ABI coder instance.
Parameter | Type | Description |
---|---|---|
action | CallExceptionAction | The action that triggered the exception. |
tx | object | The transaction information. |
tx.data ? | string | - |
tx.from ? | null | string | - |
tx.to ? | null | string | - |
data | null | BytesLike | The data associated with the call exception. |
CallExceptionError
The corresponding call exception error.