Skip to content

BitCannaGlobal/cosmospay-api

Repository files navigation

Cosmospay-api

Update chains in cosmos.config.json

This repo allows to automatically update RPC/LCD url from chain registry.

Add your chain

  1. Fork this repo to your own github account
  2. Clone fork and create new branch
git clone https://github.com/BitCannaGlobal/cosmospay-api.git
cd cosmospay-api/
git branch <your_branch_name>
git checkout <your_branch_name>
nano cosmos.config.json
  1. Edit cosmos.config.json and add your own config.
    Example:
  {
    "chainId": "bitcanna-1",
    "name": "BitCanna",
    "apiURL": "https://lcd.bitcanna.io",
    "rpcURL": "https://rpc.bitcanna.io/",
    "coinLookup": {
      "viewDenom": "BCNA",
      "chainDenom": "ubcna",
      "addressPrefix": "bcna",
      "icon": "https://raw.githubusercontent.com/osmosis-labs/assetlists/main/images/bcna.svg",
      "banner": "https://demo.cosmos-tool.com//wp-content/plugins/cosmos-woocomerce/public/img/BitCanna.png"
    },
    "coingeckoId": "bitcanna",
    "mintscanId": "bitcanna",
    "active": "true",
    "lastUpdate": "2022-10-03T10:26:26.440Z"
  }
  1. Commit and push to your fork
git add cosmos.config.json
git commit -m "Add <your_chain>"
git push origin <your_branch_name>
  1. From your repository, make pull requesrt (PR)

The team will contact you with respect to the listing in the plugin