Last update: July 4, 2022
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¶
- Install Geth.
- Get your QBS connection string.
- Create a QBS blockchain member.
Steps¶
- Open a command prompt or shell.
-
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
-
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
-
To disconnect from the console, type
exit
.