My Hive Posts

    Updated Config.json to update Websocket

    @steemdev recently written a post that a new public jussi endpoint is available and they are going to use it for future which is available at https://api.steemit.com. They have also asked all the third-party applications to use api.steemit.com instead of steemd.steemit.com.

    I am using Steem npm package, for that, we have a config.json file in https://github.com/steemit/steem-js. So if we need to change from steemd.steemit.com to api.steemit.com, I need to update the Config.json file.

    I have created a branch called codingdefined-patch-1 after forking the original repository and updated the config.json.

    Previous Config.json was

    {
      "transport": "ws",
      "websocket": "wss://steemd.steemit.com",
      "websocketdev": "wss://steemd.steemitdev.com",
      "uri": "https://steemd.steemit.com",
      "url": "",
      "dev_uri": "https://steemd.steemitdev.com",
      "stage_uri": "https://steemd.steemitstage.com",
      "address_prefix": "STM",
      "chain_id": "0000000000000000000000000000000000000000000000000000000000000000"
    }
    

    And it is changed to

    {
      "transport": "ws",
      "websocket": "https://api.steemit.com",
      "websocketdev": "wss://steemd.steemitdev.com",
      "uri": "https://api.steemit.com",
      "url": "",
      "dev_uri": "https://steemd.steemitdev.com",
      "stage_uri": "https://steemd.steemitstage.com",
      "address_prefix": "STM",
      "chain_id": "0000000000000000000000000000000000000000000000000000000000000000"
    }
    

    If you do not want to change the configuration by not changing the config, then you can set the configuration directly using the below code.

    steem.config.set('url', 'https://api.steemit.com')
    



    Open Source Contribution posted via Utopian.io