NULS JS - API Reference
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
APIServer
Class
constructor
api
resources
url
get
Resource
handle
Errors
Hierarchy
APIServerClass
BlockApi
ContractApi
UtxoApi
TransactionApi
Index
Constructors
constructor
Properties
api
resources
url
Methods
get
Resource
handle
Errors
Constructors
constructor
new APIServer
Class
(
apiConf
?:
IAPIConfig
)
:
APIServerClass
Parameters
Default value
apiConf:
IAPIConfig
= config.nuls.api.explorer
Returns
APIServerClass
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
Protected
handle
Errors
handle
Errors
(
e
:
AxiosError
)
:
AxiosError
Parameters
e:
AxiosError
Returns
AxiosError