How can I customize the coin symbol?

BlockScout utilizes the COIN environment variable which pulls the associated market data from the Coinmarketcap.com API or CoinGecko API to provide pricing data throughout the application.

Displayed Coin Symbol

BlockScout uses gettext to create the displayed coin symbols throughout the application. Gettext documentation is available here. In BlockScout there are po and pot files in the BlockScoutWeb Umbrella application.

The default text will be listed as (Example Instance):

  • msgid "ETH"

  • msgstr "POA"

To edit the POA symbol throughout the application, replace the msgstr value with your target value in the following files:

Po File: https://github.com/poanetwork/blockscout/blob/03061be2f710a1fc84c6ce555f676e8bb9dfa54d/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

Pot File: https://github.com/poanetwork/blockscout/blob/03061be2f710a1fc84c6ce555f676e8bb9dfa54d/apps/block_scout_web/priv/gettext/default.pot

Edit on GitHub