Connects to the specified node.
A Blockchain API instance on which we can query data or submit transactions.
Remove the cached connection.
Connect to a node or return an already established connection.
A Blockchain API instance on which we can query data or submit transactions.
Disconnect from the specified host.
The host to disconnect from.
Connect to a node or return an already established connection.
A Blockchain API instance on which we can query data or submit transactions.
Generated using TypeDoc
Blockchain Api Connection enables the building and accessing of your Substrate Blockchain connection. In which it keeps one connection open and allows to reuse the connection for all Blockchain related tasks.
Other modules can access the Blockchain as such:
const blockchain = await connect()
.