Documentation
¶
Index ¶
- Variables
- type OutPoint
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetInputs() []*TransactionInput
- func (x *Transaction) GetLockTime() uint32
- func (x *Transaction) GetOutputs() []*TransactionOutput
- 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) GetOutPoint() *OutPoint
- func (x *TransactionInput) GetScriptSig() []byte
- func (x *TransactionInput) GetSequence() uint32
- func (x *TransactionInput) GetWitnessItems() [][]byte
- 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) GetScriptPubkey() []byte
- func (x *TransactionOutput) GetValue() int64
- 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_Utxo_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"` // contains filtered or unexported fields }
Bitcoin 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 { // The protocol version, is currently expected to be 1 or 2 (BIP68). Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Block height or timestamp indicating at what point transactions can be included in a block. // Zero by default. LockTime uint32 `protobuf:"varint,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` // The transaction inputs. Inputs []*TransactionInput `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` // The transaction outputs. Outputs []*TransactionOutput `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
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) 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"` // The sequence number, used for timelocks, replace-by-fee, etc. Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` // The script for claiming the input (non-Segwit/non-Taproot). ScriptSig []byte `protobuf:"bytes,3,opt,name=script_sig,json=scriptSig,proto3" json:"script_sig,omitempty"` // The script for claiming the input (Segit/Taproot). WitnessItems [][]byte `protobuf:"bytes,4,rep,name=witness_items,json=witnessItems,proto3" json:"witness_items,omitempty"` // contains filtered or unexported fields }
func (*TransactionInput) Descriptor
deprecated
func (*TransactionInput) Descriptor() ([]byte, []int)
Deprecated: Use TransactionInput.ProtoReflect.Descriptor instead.
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) GetWitnessItems ¶
func (x *TransactionInput) GetWitnessItems() [][]byte
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 { // The condition for claiming the output. ScriptPubkey []byte `protobuf:"bytes,1,opt,name=script_pubkey,json=scriptPubkey,proto3" json:"script_pubkey,omitempty"` // The amount of satoshis to spend. Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TransactionOutput) Descriptor
deprecated
func (*TransactionOutput) Descriptor() ([]byte, []int)
Deprecated: Use TransactionOutput.ProtoReflect.Descriptor instead.
func (*TransactionOutput) GetScriptPubkey ¶
func (x *TransactionOutput) GetScriptPubkey() []byte
func (*TransactionOutput) GetValue ¶
func (x *TransactionOutput) GetValue() int64
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.