NULS JS - API Reference
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Transaction
Api
constructor
api
resources
url
broadcast
get
Resource
handle
Errors
transaction
Hierarchy
APIServerClass
TransactionApi
Index
Constructors
constructor
Properties
api
resources
url
Methods
broadcast
get
Resource
handle
Errors
transaction
Constructors
constructor
new
Transaction
Api
(
conf
?:
IAPIConfig
)
:
TransactionApi
Parameters
Default value
conf:
IAPIConfig
= config.nuls.api.explorer
Returns
TransactionApi
Properties
api
api
:
AxiosInstance
Optional
resources
resources
:
Record
<
string
,
string
>
url
url
:
string
Methods
broadcast
broadcast
(
txHex
:
string
)
:
Promise
<
TransactionHash
>
Parameters
txHex:
string
Returns
Promise
<
TransactionHash
>
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
transaction
transaction
(
hash
:
string
)
:
Promise
<
ApiTransaction
>
Parameters
hash:
string
Returns
Promise
<
ApiTransaction
>