Skip to main content

Attach Geth to a Quorum Blockchain Service transaction node

You can use Geth to attach to a Quorum Blockchain Service (QBS) transaction node. Once attached, use the Geth console to call an Ethereum JavaScript API.

Prerequisites

Steps

  1. Open a command prompt or shell.

  2. Use the geth attach subcommand to attach to the running Geth instance on your transaction node. Paste the connection string as an argument for the attach subcommand. For example:

    geth attach https://transaction-1.contoso.supplychainconsortium.onquorum.net:3200/H5xE6imMMj32jtiRYbyEiWa2
  3. Once connected to the transaction node's Ethereum console, you can use the Ethereum JavaScript API. For example, use the following API to find the chainId:

    admin.nodeInfo.protocols.istanbul.config.chainId
  4. To disconnect from the console, type exit.