mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-30 20:52:01 +08:00
* feat: add handler * feat: add get transaction * feat: add get utxos output * refactor: function parameter * feat: add check utxo not found * feat: add sats to get utxo output api * feat: add utxo sats entity * feat: add get utxos output batch * feat: handle error * fix: context * fix: sqlc queries * fix: remove unused code * fix: comment * fix: check utxo not found error * refactor: add some space * fix: comment * fix: use public field
21 lines
592 B
Go
21 lines
592 B
Go
package httphandler
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func (h *HttpHandler) Mount(router fiber.Router) error {
|
|
r := router.Group("/v2/runes")
|
|
|
|
r.Post("/balances/wallet/batch", h.GetBalancesBatch)
|
|
r.Get("/balances/wallet/:wallet", h.GetBalances)
|
|
r.Get("/transactions", h.GetTransactions)
|
|
r.Get("/holders/:id", h.GetHolders)
|
|
r.Get("/info/:id", h.GetTokenInfo)
|
|
r.Get("/utxos/wallet/:wallet", h.GetUTXOs)
|
|
r.Post("/utxos/output/batch", h.GetUTXOsOutputByLocationBatch)
|
|
r.Get("/utxos/output/:txHash", h.GetUTXOsOutputByLocation)
|
|
r.Get("/block", h.GetCurrentBlock)
|
|
return nil
|
|
}
|