mixin

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const OutputTypeWithdrawalClaim = 0xa9

Variables

This section is empty.

Functions

func CheckEd25519ValidChildPath added in v0.19.0

func CheckEd25519ValidChildPath(path []byte) bool

func DeriveEd25519Child added in v0.19.0

func DeriveEd25519Child(public string, path []byte) ed25519.PublicKey

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