# createConnectionToBlockchainRid · FT4 TypeScript client · Chromia Docs (concept)

> createConnectionToBlockchainRid(
    oldConnection: Connection ,
    newBlockchainRid: BufferId,
): Promise< Connection > Uses the provided connection to c

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/ft-session.createConnectionToBlockchainRid/

Function

# createConnectionToBlockchainRid

* ```signature
  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](https://docs.chromia.com/pages/ft4-ts-client/interfaces/ft-session.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](https://docs.chromia.com/pages/ft4-ts-client/interfaces/ft-session.Connection/)>

  Connection instance configured to use the specified blockchain

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/ft-session.createConnectionToBlockchainRid.html)Generated API reference, mirrored from the live docs
