req

package
v0.101.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemAddress  ItemType = "Address"
	ItemIdentity          = "Identity"
	ItemRecord            = "Record"
)
View Source
const (
	IDENTITY_FLAGS_CKB = "0x00"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Type  ItemType `json:"type"`
	Value string   `json:"value"`
}

func NewAddressItem

func NewAddressItem(addr string) (*Item, error)

func NewIdentityItemByAddress

func NewIdentityItemByAddress(address string) (*Item, error)

func NewIdentityItemByCkb

func NewIdentityItemByCkb(pubKey string) (*Item, error)

func NewRecordItemByAddress

func NewRecordItemByAddress(point *types.OutPoint, address string) (*Item, error)

func NewRecordItemByScript

func NewRecordItemByScript(point *types.OutPoint, script *types.Script) (*Item, error)

type ItemType

type ItemType string

Jump to

Keyboard shortcuts

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