wormhole-explorer/api
ftocal a4b4e90fd7
Handle missing txhHash in vaa in vaas endpoint (#880)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-12-07 14:52:20 -03:00
..
cacheable
docs
handlers Handle missing txhHash in vaa in vaas endpoint (#880) 2023-12-07 14:52:20 -03:00
internal
middleware Handle native tx hash for solana when receive event from blockchain-watcher (#851) 2023-12-04 16:29:38 -03:00
response
routes operation endpoint remove q query param, add address and txHash query… (#852) 2023-12-04 16:33:38 -03:00
rpc Handle native tx hash for solana when receive event from blockchain-watcher (#851) 2023-12-04 16:29:38 -03:00
.gitignore
Dockerfile
Makefile
README.md
go.mod Handle native tx hash for solana when receive event from blockchain-watcher (#851) 2023-12-04 16:29:38 -03:00
go.sum Handle native tx hash for solana when receive event from blockchain-watcher (#851) 2023-12-04 16:29:38 -03:00
main.go

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