Clean explorer API for crypto currencies.
Deploy it in less than 30 seconds!
go get -u github.com/trustwallet/blockatlas ~/go/bin/blockatlasdocker run -it -p 8420:8420 trustwallet/blockatlas
- Setup Redis
brew install redis // Install Redis using Homebrewln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents // Enable Redis autostart- Running in the IDE ( GoLand )
- Run
- Edit configuration
- New Go build configuration
- Select
directoryas configuration type - Set
apias program argument and-ias Go tools argument
Block Atlas can run just fine without configuration.
If you want to use custom RPC endpoints, or enable coins without public RPC (like Nimiq), you can configure Block Atlas over config.yml or environment variables.
By default, config.yml is loaded from the working directory.
Example (config.yml):
nimiq: api: http://localhost:8648 #...The rest gets loaded from the environment variables. Every config option is available under the ATLAS_ prefix.
Example:
ATLAS_NIMIQ_API=http://localhost:8648 \ blockatlasIf you'd like to add support for a new blockchain, feel free to file a pull request. Note that most tokens that run on top of other chains are already supported and don't require code changes (e.g. ERC-20).
The best way to submit feedback and report bugs is to open a GitHub issue. Please be sure to include your operating system, version number, and steps to reproduce reported bugs.