NULS JS - API Reference
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Utxo
Api
constructor
api
resources
url
get
Resource
get
Utxos
handle
Errors
Hierarchy
APIServerClass
UtxoApi
Index
Constructors
constructor
Properties
api
resources
url
Methods
get
Resource
get
Utxos
handle
Errors
Constructors
constructor
new
Utxo
Api
(
conf
?:
IAPIConfig
)
:
UtxoApi
Parameters
Default value
conf:
IAPIConfig
= config.nuls.api.explorer
Returns
UtxoApi
Properties
api
api
:
AxiosInstance
Optional
resources
resources
:
Record
<
string
,
string
>
url
url
:
string
Methods
Protected
get
Resource
get
Resource
(
name
:
string
,
...
args
:
string
[]
)
:
string
Parameters
name:
string
Rest
...
args:
string
[]
Returns
string
get
Utxos
get
Utxos
(
address
:
string
)
:
Promise
<
UTXO
[]
>
Parameters
address:
string
Returns
Promise
<
UTXO
[]
>
Protected
handle
Errors
handle
Errors
(
e
:
AxiosError
)
:
AxiosError
Parameters
e:
AxiosError
Returns
AxiosError