mirror of
https://github.com/alexgo-io/redstone-node.git
synced 2026-01-12 22:43:31 +08:00
954 B
954 B
How to add a new token
Should I do this?
Tokens config file, which is located in src/config/tokens.json, is used in RedStone web app and redstone-api. If you want your token to be accessible through redstone-api npm module you should add it to the config.
How to add a token
- Add token details to
tools/config/predefined-configs/tokens.json - Run
node tools/config/add-new-tokens-from-predefined-config.js - Upload the token logo to RedStone Images repository, so it is publicly accessible at
https://raw.githubusercontent.com/redstone-finance/redstone-images/main/symbols/<TOKEN_NAME_LOWER_CASE>.<IMG_EXTENSION></IMG_EXTENSION> - Run
node tools/cdn-images/update-tokens-config.jsto replace logo urls in tokens config with redstone images repository urls - Update
redstone-nodedependency inredstone-api,redstone-appand other packages wheretokens.jsonis used.