wormhole-explorer/api
walker-16 4760c820c3
808 enhance operationsaddress to provide information for all address formats (#1145)
* Add index in globalTransactions by originTx.attribute.value.originAddress

* Add in the operation by address endpoint support to wormchain chains
2024-02-23 10:32:26 -03:00
..
cacheable
docs [Issue:1052] Create job for fetching contributor stats and storing in db (#1144) 2024-02-22 14:58:45 -03:00
handlers 808 enhance operationsaddress to provide information for all address formats (#1145) 2024-02-23 10:32:26 -03:00
internal [Issue:1052] Create job for fetching contributor stats and storing in db (#1144) 2024-02-22 14:58:45 -03:00
middleware
response
routes [Issue:1052] Create job for fetching contributor stats and storing in db (#1144) 2024-02-22 14:58:45 -03:00
rpc
.gitignore
Dockerfile
Makefile
README.md
go.mod
go.sum
main.go [Issue:1052] Create job for fetching contributor stats and storing in db (#1144) 2024-02-22 14:58:45 -03:00

README.md

API

How to build

make build

Config

You will need to set some env variables with the prefix WORMSCAN

  • WORMSCAN_DB_MONGO
  • WORMSCAN_DB_NAME
  • WORMSCAN_PORT

for example:

WORMSCAN_DB_URL=mongodb://localhost:27017/wormhole WORMSCAN_DB_NAME=wormhole WORMSCAN_PORT=5555 WORMSCAN_RUNMODE=DEVELOPMENT ./api

API Documentation

Documentation is automagically generated via swaggo using annotations on code and placed inside doc/ folder.

To install swag tool run this

go install github.com/swaggo/swag/cmd/swag@latest

To generate or update the doc run:

make doc