Docs
GitHub
Preparing search index...
The search index is not available
Fuels TS SDK API Documentation
Fuels TS SDK API Documentation
@fuel-ts/abi-coder
OptionCoder
Class OptionCoder<TCoders>
Type Parameters
TCoders
extends
Record
<
string
,
Coder
>
Hierarchy (
view full
)
EnumCoder
<
TCoders
>
OptionCoder
Index
Constructors
constructor
Properties
coders
encoded
Length
name
type
Methods
decode
encode
Constructors
constructor
new
Option
Coder
<
TCoders
>
(
name
,
coders
)
:
OptionCoder
<
TCoders
>
Type Parameters
TCoders
extends
Record
<
string
,
Coder
<
unknown
,
unknown
>
>
Parameters
name
:
string
coders
:
TCoders
Returns
OptionCoder
<
TCoders
>
Properties
coders
coders
:
TCoders
Readonly
encoded
Length
encoded
Length
:
number
name
name
:
string
Readonly
type
type
:
string
Methods
decode
decode
(
data
,
offset
)
:
[
DecodedValueOf
<
TCoders
>
,
number
]
Parameters
data
:
Uint8Array
offset
:
number
Returns
[
DecodedValueOf
<
TCoders
>
,
number
]
encode
encode
(
value
?
)
:
Uint8Array
Parameters
Optional
value
:
unknown
Returns
Uint8Array
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
coders
encoded
Length
name
type
Methods
decode
encode
Docs
GitHub
Fuels TS SDK API Documentation
Loading...