Documentation
¶
Index ¶
- Variables
- type OutPoint
- func (*OutPoint) Descriptor() ([]byte, []int)deprecated
- func (x *OutPoint) GetHash() []byte
- func (x *OutPoint) GetTree() uint32
- func (x *OutPoint) GetVout() uint32
- func (*OutPoint) ProtoMessage()
- func (x *OutPoint) ProtoReflect() protoreflect.Message
- func (x *OutPoint) Reset()
- func (x *OutPoint) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetExpiry() uint32
- func (x *Transaction) GetInputs() []*TransactionInput
- func (x *Transaction) GetLockTime() uint32
- func (x *Transaction) GetOutputs() []*TransactionOutput
- func (x *Transaction) GetSerializeType() uint32
- func (x *Transaction) GetVersion() uint32
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionInput
- func (*TransactionInput) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionInput) GetBlockHeight() uint32
- func (x *TransactionInput) GetBlockIndex() uint32
- func (x *TransactionInput) GetOutPoint() *OutPoint
- func (x *TransactionInput) GetScriptSig() []byte
- func (x *TransactionInput) GetSequence() uint32
- func (x *TransactionInput) GetValue() int64
- func (*TransactionInput) ProtoMessage()
- func (x *TransactionInput) ProtoReflect() protoreflect.Message
- func (x *TransactionInput) Reset()
- func (x *TransactionInput) String() string
- type TransactionOutput
- func (*TransactionOutput) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionOutput) GetScript() []byte
- func (x *TransactionOutput) GetValue() int64
- func (x *TransactionOutput) GetVersion() uint32
- func (*TransactionOutput) ProtoMessage()
- func (x *TransactionOutput) ProtoReflect() protoreflect.Message
- func (x *TransactionOutput) Reset()
- func (x *TransactionOutput) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_DecredV2_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OutPoint ¶
type OutPoint struct {
// The hash of the referenced transaction (network byte order, usually needs to be reversed).
// The referenced transaction ID in REVERSED order.
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// The position in the previous transactions output that this input references.
Vout uint32 `protobuf:"varint,2,opt,name=vout,proto3" json:"vout,omitempty"`
// The tree in utxo, only works for DCR.
Tree uint32 `protobuf:"varint,3,opt,name=tree,proto3" json:"tree,omitempty"`
// contains filtered or unexported fields
}
Decred transaction out-point reference.
func (*OutPoint) Descriptor
deprecated
func (*OutPoint) ProtoMessage ¶
func (*OutPoint) ProtoMessage()
func (*OutPoint) ProtoReflect ¶
func (x *OutPoint) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct {
// Serialization format
SerializeType uint32 `protobuf:"varint,1,opt,name=serialize_type,json=serializeType,proto3" json:"serialize_type,omitempty"`
// Transaction version.
// Currently, version 1 is supported only.
Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
// A list of 1 or more transaction inputs or sources for coins.
Inputs []*TransactionInput `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
// A list of 1 or more transaction outputs or destinations for coins
Outputs []*TransactionOutput `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
// Block height or timestamp indicating at what point transactions can be included in a block.
// Zero by default.
LockTime uint32 `protobuf:"varint,5,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
// The block height at which the transaction expires and is no longer valid.
Expiry uint32 `protobuf:"varint,6,opt,name=expiry,proto3" json:"expiry,omitempty"`
// contains filtered or unexported fields
}
A transfer transaction
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetExpiry ¶
func (x *Transaction) GetExpiry() uint32
func (*Transaction) GetInputs ¶
func (x *Transaction) GetInputs() []*TransactionInput
func (*Transaction) GetLockTime ¶
func (x *Transaction) GetLockTime() uint32
func (*Transaction) GetOutputs ¶
func (x *Transaction) GetOutputs() []*TransactionOutput
func (*Transaction) GetSerializeType ¶
func (x *Transaction) GetSerializeType() uint32
func (*Transaction) GetVersion ¶
func (x *Transaction) GetVersion() uint32
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionInput ¶
type TransactionInput struct {
// Reference to the previous transaction's output.
OutPoint *OutPoint `protobuf:"bytes,1,opt,name=out_point,json=outPoint,proto3" json:"out_point,omitempty"`
// Transaction version as defined by the sender.
Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
// The amount of the input.
Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
// Creation block height.
BlockHeight uint32 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
// Index within the block.
BlockIndex uint32 `protobuf:"varint,5,opt,name=block_index,json=blockIndex,proto3" json:"block_index,omitempty"`
// Computational script for confirming transaction authorization.
ScriptSig []byte `protobuf:"bytes,6,opt,name=script_sig,json=scriptSig,proto3" json:"script_sig,omitempty"`
// contains filtered or unexported fields
}
Decred transaction input.
func (*TransactionInput) Descriptor
deprecated
func (*TransactionInput) Descriptor() ([]byte, []int)
Deprecated: Use TransactionInput.ProtoReflect.Descriptor instead.
func (*TransactionInput) GetBlockHeight ¶
func (x *TransactionInput) GetBlockHeight() uint32
func (*TransactionInput) GetBlockIndex ¶
func (x *TransactionInput) GetBlockIndex() uint32
func (*TransactionInput) GetOutPoint ¶
func (x *TransactionInput) GetOutPoint() *OutPoint
func (*TransactionInput) GetScriptSig ¶
func (x *TransactionInput) GetScriptSig() []byte
func (*TransactionInput) GetSequence ¶
func (x *TransactionInput) GetSequence() uint32
func (*TransactionInput) GetValue ¶
func (x *TransactionInput) GetValue() int64
func (*TransactionInput) ProtoMessage ¶
func (*TransactionInput) ProtoMessage()
func (*TransactionInput) ProtoReflect ¶
func (x *TransactionInput) ProtoReflect() protoreflect.Message
func (*TransactionInput) Reset ¶
func (x *TransactionInput) Reset()
func (*TransactionInput) String ¶
func (x *TransactionInput) String() string
type TransactionOutput ¶
type TransactionOutput struct {
// Transaction amount.
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
// Transaction output version.
Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
// Usually contains the public key as a Decred script setting up conditions to claim this output.
Script []byte `protobuf:"bytes,3,opt,name=script,proto3" json:"script,omitempty"`
// contains filtered or unexported fields
}
Decred transaction output.
func (*TransactionOutput) Descriptor
deprecated
func (*TransactionOutput) Descriptor() ([]byte, []int)
Deprecated: Use TransactionOutput.ProtoReflect.Descriptor instead.
func (*TransactionOutput) GetScript ¶
func (x *TransactionOutput) GetScript() []byte
func (*TransactionOutput) GetValue ¶
func (x *TransactionOutput) GetValue() int64
func (*TransactionOutput) GetVersion ¶
func (x *TransactionOutput) GetVersion() uint32
func (*TransactionOutput) ProtoMessage ¶
func (*TransactionOutput) ProtoMessage()
func (*TransactionOutput) ProtoReflect ¶
func (x *TransactionOutput) ProtoReflect() protoreflect.Message
func (*TransactionOutput) Reset ¶
func (x *TransactionOutput) Reset()
func (*TransactionOutput) String ¶
func (x *TransactionOutput) String() string
Click to show internal directories.
Click to hide internal directories.