mixin

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OutputTypeWithdrawalClaim = 0xa9

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	Type       uint8           `json:"type"`
	Amount     string          `json:"amount"`
	Withdrawal *WithdrawalData `json:"withdrawal"`
}

type RPCSnapshot

type RPCSnapshot struct {
	Hash        string           `json:"hash"`
	Hex         string           `json:"hex"`
	Transaction []RPCTransaction `json:"transactions"`
	Topology    uint64           `json:"topology"`
}

func RPCListSnapshots

func RPCListSnapshots(ctx context.Context, rpc string, offset uint64, limit int) ([]RPCSnapshot, error)

type RPCTransaction

type RPCTransaction struct {
	Asset      string   `json:"asset"`
	Extra      string   `json:"extra"`
	Hash       string   `json:"hash"`
	Output     []Output `json:"outputs"`
	References []string `json:"references"`
}

func RPCGetTransaction

func RPCGetTransaction(ctx context.Context, rpc, hash string) (*RPCTransaction, error)

type WithdrawalData

type WithdrawalData struct {
	Address string `json:"address"`
	Tag     string `json:"tag"`
}

Jump to

Keyboard shortcuts

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