LogoLogo
BloqStakeBloqCloudGitHub
  • What is Bloq?
    • Introduction
    • Bloq Account Setup
    • Create Client Keys
    • Accounts Overview
  • Bloq Services
    • BloqNodes
      • CLI
      • Nodes Usage
    • BloqStake
      • Authenticate to Bloq API
        • Authentication
        • API Routes
      • Ethereum
        • Stake ETH
        • Withdraw ETH
        • API Routes
      • Avalanche
        • Stake AVAX
        • API Routes
  • Advanced Documentation
    • Developers Guide
      • Client Tokens
      • BloqNodes Setup
      • Authentication
    • Technical Reference
      • CLI
      • Accounts API
      • Nodes API
      • Blockchain Node API
      • Javascript SDK
    • Knowledge Base
      • How do I connect my Ethereum Node using the Web3 interface?
Powered by GitBook
On this page
  • REST
  • JSON RPC

Was this helpful?

  1. Bloq Services
  2. BloqNodes

Nodes Usage

PreviousCLINextBloqStake

Last updated 1 year ago

Was this helpful?

To access a node, you will need to use the IP address which you can obtain via bcl nodes list or bcl nodes info.

From there you may access the REST or RPC interfaces (described in the ) using curl or any other HTTP client.

REST

Use REST for connecting to Bitcoin, Bitcoin Cash, and Litecoin nodes.

curl -k -X GET \
  --user <nodeUser>:<nodePass> \
  https://<ip-address>:8332/rest/chaininfo.json

JSON RPC

Use JSON RPC for connecting to Ethereum and Avalanche nodes.

curl -k -X POST \
  --user <nodeUser>:<nodePass> \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' \
  https://<ip-address>:8332/

Client-token

To generate a client token, run the following command:

bcl client-token

Technical Reference