Function
createConnectionToBlockchainRid
createConnectionToBlockchainRid( oldConnection: Connection, newBlockchainRid: BufferId, ): Promise<Connection>Uses the provided connection to create a new connection to the specified blockchain rid. The new brid must be available in the cluster that the old connection is configured to use.
Parameters
- oldConnection: Connection
a connection that can be used to fetch the new blockchain info
- newBlockchainRid: BufferId
the rid of the blockchain to create connection for
Returns Promise<Connection>
Connection instance configured to use the specified blockchain
- oldConnection: Connection