Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OPRNameMap = map[OPReturnType]string{ OPReturnType(txscript.OP_MEER_LOCK): "LockAmount", }
Functions ¶
func GetOPReturnTxOutput ¶
func IsOPReturn ¶
Types ¶
type IOPReturn ¶
type IOPReturn interface { GetType() OPReturnType Verify(tx *types.Transaction) error Init(ops []txscript.ParsedOpcode) error PKScript() []byte }
Exclusive to Coinbase OP Return function
func NewOPReturnFrom ¶
type LockAmount ¶
type LockAmount struct {
// contains filtered or unexported fields
}
func NewShowAmount ¶
func NewShowAmount(amount int64) *LockAmount
func (*LockAmount) GetAmount ¶
func (a *LockAmount) GetAmount() int64
func (*LockAmount) GetType ¶
func (a *LockAmount) GetType() OPReturnType
func (*LockAmount) Init ¶
func (a *LockAmount) Init(ops []txscript.ParsedOpcode) error
func (*LockAmount) PKScript ¶
func (a *LockAmount) PKScript() []byte
func (*LockAmount) Verify ¶
func (a *LockAmount) Verify(tx *types.Transaction) error
type OPReturnType ¶
type OPReturnType byte
func (OPReturnType) Name ¶
func (t OPReturnType) Name() string
Click to show internal directories.
Click to hide internal directories.