Class: Connection

Connection

Information about the connection to the Sequence API.


new Connection(ledgerName, credential, agent)

constructor - create a new Sequence client object.

Parameters:
Name Type Description
ledgerName String

Ledger name.

credential String

Sequence credential for API access.

agent https.Agent

https agent for optional TLS/network config.

Methods


request(path [, body])

Submit a request to the configured ledger.

Parameters:
Name Type Argument Default Description
path String
body object <optional>
{}
Returns:
Type
Promise