api

package
v1.42.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessDeniedError = errors.New("Access Denied")
View Source
var BlockTransactionNotFound = errors.New("BlockTransaction not found, it should exist for this webhook to be received")
View Source
var CouldNotConvertToBigInt = errors.New("BlockTransaction Value could not be converted")
View Source
var ReceiverBlockShouldBeVOutBlock = errors.New("BlockTransaction marked as 'receiver' Usage should also be of 'vin' BitcoinTransactionType")

Functions

func Route

func Route(router router.Router, args ...gin.HandlerFunc)

Wire up Bitcoin endpoint

func Webhook

func Webhook(c *gin.Context)

Handle Bitcoin webhook POSTs

Types

type Event

type Event struct {
	Name     string `json:"name"`
	Type     Type   `json:"type"`
	Password string `json:"password"`

	DataId   string        `json:"dataId"`
	DataKind Kind          `json:"dataKind"`
	Data     ej.RawMessage `json:"data"`
}

type Kind

type Kind string
const (
	BlockKind        Kind = "block"
	BlockAddress     Kind = "blockaddress"
	BlockTransaction Kind = "blocktransaction"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL