FAQs for developers
How do I speed up my self-hosted instance?
sudo systemctl restart explorer.service
How do I customize the coin symbol / name?
COIN
ENV variablesCOIN
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 SymbolIn order to set displayed coin symbol, instance maintainer should set COIN_NAME
runtime environment variable:How do I manage deployment with AWS CodeDeploy?
Reroute traffic
button to initiate.
What's the best way to deploy to AWS?
How do I replace missing assets/version numbers?
ssh -i <host.pem> ec2-user@<public_ip>
, where <host.pem>
is host’s private key file, <public_ip>
is the public ip of the host, that can be found in the AWS dashboard.
cd /opt/app/apps/block_scout_web/priv/static
./images
folder depending on what is missing. Refresh Blockscout instance page. For example, if favicon.ico
is missing in ./images
folder, just copy it from the root assets folder cp favicon.ico ./images/
. You should see now the missing assets.
ssh -i <host.pem> ec2-user@<public_ip>
, where <host.pem>
is host’s private key file, <public_ip>
is the public ip of the host, that can be found in the AWS dashboard.
/opt/app/apps/block_scout_web/lib/block_scout_web/templates/layout
_footer.html.eex
footer template in the favorite text editor. For example nano ./_footer.html.eex
and fix the line <% version = version() %>
(it is in the bottom of the file) with the hardcoded new version, for example, <% version = 'v1.3.3-beta' %>
and save.
sudo systemctl restart explorer.service
How do I fix the Gettext.Error?
(Gettext.Error) translation with msgid '...<msg_here>...' has a non-empty msgstr
To update gettext, run the following command in the app’s folder where the changes were made../apps/{name_of_app}
folder where the changes were made.
mix gettext.extract --merge
How do I update the UI?
mix phx.digest
to apply the changes.How can I view smart contracts using RPC?
listcontracts
endpoint. For example, to view verified contracts, use the following query. Pagination is availableWhy are Market Cap/Token Price stats wrong?
How do I verify contracts via an API?
How do I disable exchange rates?
enabled: true
to enabled: false
How can I migrate verified contracts between databases?
smart_contracts
table
Which Linux distro do I use for manual deployment?
Can I set RPC variable to a normal http(s) url?
ethereum_json_rpc_http
variable can be set to any url, it does not need to be a localhost. Client variant env variable should be specified in either case.Do I need to enable ws?
ETHEREUM_JSONRPC_WS_URL
env var empty or unset it.How to fix error message "execution timeout at `pushGasToTopCall`"?
ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT
ENV variable. The default is 5 sec.How do I fix Unknown Private Network error?
CHAIN_ID
env variable
NETWORK_ID