Search
Preparing search index...
The search index is not available
Subsocial JS SDK
Options
All
Public
Public/Protected
All
Menu
Exports
Substrate
Connect
constructor
api
connected
connect
disconnect
log
Chain
Info
Hierarchy
SubstrateConnect
Index
Constructors
constructor
Properties
api
connected
Methods
connect
disconnect
log
Chain
Info
Constructors
constructor
new
Substrate
Connect
(
)
:
SubstrateConnect
Returns
SubstrateConnect
Properties
Static
Protected
api
api
:
ApiPromise
Static
Protected
connected
connected
:
boolean
= false
Methods
Static
connect
connect
(
nodeUrl
?:
string
, metadata
?:
Record
<
string
,
string
>
)
:
Promise
<
ApiPromise
>
Parameters
Optional
nodeUrl:
string
Optional
metadata:
Record
<
string
,
string
>
Returns
Promise
<
ApiPromise
>
Static
disconnect
disconnect
(
)
:
void
Returns
void
Static
Protected
log
Chain
Info
log
Chain
Info
(
)
:
Promise
<
void
>
Retrieve the chain & node information via RPC calls and log into console.
Returns
Promise
<
void
>
Retrieve the chain & node information via RPC calls and log into console.