vechain

package
v0.0.1-gowrapper-dev 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_VeChain_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Clause

type Clause struct {

	// / Recipient address.
	To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	// / Transaction amount (uint256, serialized big endian)
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// / Payload data.
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

A clause, between a sender and destination

func (*Clause) Descriptor deprecated

func (*Clause) Descriptor() ([]byte, []int)

Deprecated: Use Clause.ProtoReflect.Descriptor instead.

func (*Clause) GetData

func (x *Clause) GetData() []byte

func (*Clause) GetTo

func (x *Clause) GetTo() string

func (*Clause) GetValue

func (x *Clause) GetValue() []byte

func (*Clause) ProtoMessage

func (*Clause) ProtoMessage()

func (*Clause) ProtoReflect

func (x *Clause) ProtoReflect() protoreflect.Message

func (*Clause) Reset

func (x *Clause) Reset()

func (*Clause) String

func (x *Clause) String() string

type SigningInput

type SigningInput struct {

	// / Last byte of the genesis block ID which is used to identify a blockchain to prevent the cross-chain replay attack.
	ChainTag uint32 `protobuf:"varint,1,opt,name=chain_tag,json=chainTag,proto3" json:"chain_tag,omitempty"`
	// / Reference to a specific block.
	BlockRef uint64 `protobuf:"varint,2,opt,name=block_ref,json=blockRef,proto3" json:"block_ref,omitempty"`
	// / How long, in terms of the number of blocks, the transaction will be allowed to be mined in VeChainThor.
	Expiration uint32 `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// / An array of Clause objects.
	// /
	// / Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
	// / by the transaction sender.
	Clauses []*Clause `protobuf:"bytes,4,rep,name=clauses,proto3" json:"clauses,omitempty"`
	// / Coefficient used to calculate the gas price for the transaction.
	GasPriceCoef uint32 `protobuf:"varint,5,opt,name=gas_price_coef,json=gasPriceCoef,proto3" json:"gas_price_coef,omitempty"`
	// / Maximum amount of gas allowed to pay for the transaction.
	Gas uint64 `protobuf:"varint,6,opt,name=gas,proto3" json:"gas,omitempty"`
	// / ID of the transaction on which the current transaction depends.
	DependsOn []byte `protobuf:"bytes,7,opt,name=depends_on,json=dependsOn,proto3" json:"depends_on,omitempty"`
	// / Number set by user.
	Nonce uint64 `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// / The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,9,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

Input data necessary to create a signed transaction.

func (*SigningInput) Descriptor deprecated

func (*SigningInput) Descriptor() ([]byte, []int)

Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.

func (*SigningInput) GetBlockRef

func (x *SigningInput) GetBlockRef() uint64

func (*SigningInput) GetChainTag

func (x *SigningInput) GetChainTag() uint32

func (*SigningInput) GetClauses

func (x *SigningInput) GetClauses() []*Clause

func (*SigningInput) GetDependsOn

func (x *SigningInput) GetDependsOn() []byte

func (*SigningInput) GetExpiration

func (x *SigningInput) GetExpiration() uint32

func (*SigningInput) GetGas

func (x *SigningInput) GetGas() uint64

func (*SigningInput) GetGasPriceCoef

func (x *SigningInput) GetGasPriceCoef() uint32

func (*SigningInput) GetNonce

func (x *SigningInput) GetNonce() uint64

func (*SigningInput) GetPrivateKey

func (x *SigningInput) GetPrivateKey() []byte

func (*SigningInput) ProtoMessage

func (*SigningInput) ProtoMessage()

func (*SigningInput) ProtoReflect

func (x *SigningInput) ProtoReflect() protoreflect.Message

func (*SigningInput) Reset

func (x *SigningInput) Reset()

func (*SigningInput) String

func (x *SigningInput) String() string

type SigningOutput

type SigningOutput struct {

	// Signed and encoded transaction bytes.
	Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// Signature.
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// error code, 0 is ok, other codes will be treated as errors
	Error common.SigningError `protobuf:"varint,3,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	// error code description
	ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

Result containing the signed and encoded transaction.

func (*SigningOutput) Descriptor deprecated

func (*SigningOutput) Descriptor() ([]byte, []int)

Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.

func (*SigningOutput) GetEncoded

func (x *SigningOutput) GetEncoded() []byte

func (*SigningOutput) GetError

func (x *SigningOutput) GetError() common.SigningError

func (*SigningOutput) GetErrorMessage

func (x *SigningOutput) GetErrorMessage() string

func (*SigningOutput) GetSignature

func (x *SigningOutput) GetSignature() []byte

func (*SigningOutput) ProtoMessage

func (*SigningOutput) ProtoMessage()

func (*SigningOutput) ProtoReflect

func (x *SigningOutput) ProtoReflect() protoreflect.Message

func (*SigningOutput) Reset

func (x *SigningOutput) Reset()

func (*SigningOutput) String

func (x *SigningOutput) String() string

Jump to

Keyboard shortcuts

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