Bware Docs
  • About Bware Labs Decentralized API
  • API Docs
    • Ethereum API
      • RPC
        • eth_getBlockByNumber method
        • eth_getBalance method
        • eth_blockNumber method
        • eth_syncing method
      • Websocket API
        • eth_syncing method
    • Binance Smart Chain API
      • RPC
        • eth_getTransactionByHash method
        • eth_getBlockByNumber method
        • eth_blockNumber method
        • eth_syncing method
        • eth_getBalance method
        • eth_accounts method
        • eth_gasPrice method
      • Websocket API
        • eth_syncing method
    • Avalanche API
      • X-Chain
      • C-Chain
      • P-Chain
      • Keystore API
      • Health API
      • Admin API
      • Info API
      • Metrics API
    • Moonbeam/Moonriver API
      • RPC
        • eth_getBlockByNumber method
        • eth_getBalance method
        • eth_blockNumber method
        • eth_syncing method
      • Websocket
    • Astar/Shiden APIs
      • RPC
        • eth_getBlockByNumber method
        • eth_getBalance method
        • eth_blockNumber method
        • eth_syncing method
      • Websocket
    • Fantom API
      • RPC
        • eth_getBlockByNumber method
        • eth_getBalance method
        • eth_blockNumber method
        • eth_syncing method
      • Websockets
        • eth_syncing method
    • Polkadot API
      • RPC
        • chain_getBlock
        • chain_getHeader
        • system_chainType
        • state_getMetadata
      • Websockets
        • system_chainType
    • Elrond API
      • REST API
        • Get Block By Hash
        • Get Shard Status
  • Tutorials
    • Using Bware Labs Platform
      • Getting a Bware Labs full endpoint
    • Using Bware Labs Endpoint in PolkadotJs
    • Using Bware Labs Endpoint in Metamask
    • Using a Bware Labs endpoint in code
Powered by GitBook
On this page
  • Installation Guide
  • Connect using the Bware Generated Endpoint
  • Simple Request Example

Was this helpful?

  1. API Docs
  2. Binance Smart Chain API
  3. Websocket API

eth_syncing method

Returns an object with data about the sync status or false.

PreviousWebsocket APINextAvalanche API

Last updated 4 years ago

Was this helpful?

Installation Guide

The Websocket API is very similar to the RPC API, the only difference is the way you connect to the Node. The method we recommend is to use as a client for connecting to websockets. wscat can be installed using npm:

$ sudo npm install -g wscat 

Connect using the Bware Generated Endpoint

To connect to the endpoint, we will use the following command:

$ wscat -c wss://bsc-api.bwarelabs.com/ws/<your-endpoint-id>
Connected (press CTRL+C to quit)
>   

Simple Request Example

After Connected is shown, you can make a simple query like the following:

Connected (press CTRL+C to quit)

//Request
> {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":53}

//Response
< {"jsonrpc": "2.0", "id": 1, "result": false}
wscat