nebulas

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_Nebulas_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Data

type Data struct {
	Type    string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Generic data

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetPayload

func (x *Data) GetPayload() []byte

func (*Data) GetType

func (x *Data) GetType() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type RawTransaction

type RawTransaction struct {

	// tx hash
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// source address
	From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// destination address
	To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// amount (uint256, serialized big endian)
	Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// Nonce (should be larger than in the last transaction of the account)
	Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// transaction timestamp
	Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// generic data
	Data *Data `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	// chain ID (4 bytes)
	ChainId uint32 `protobuf:"varint,8,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// gas price (uint256, serialized big endian)
	GasPrice []byte `protobuf:"bytes,9,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// gas limit (uint256, serialized big endian)
	GasLimit []byte `protobuf:"bytes,10,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// algorithm
	Alg uint32 `protobuf:"varint,11,opt,name=alg,proto3" json:"alg,omitempty"`
	// signature
	Sign []byte `protobuf:"bytes,12,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

Raw transaction data

func (*RawTransaction) Descriptor deprecated

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

Deprecated: Use RawTransaction.ProtoReflect.Descriptor instead.

func (*RawTransaction) GetAlg

func (x *RawTransaction) GetAlg() uint32

func (*RawTransaction) GetChainId

func (x *RawTransaction) GetChainId() uint32

func (*RawTransaction) GetData

func (x *RawTransaction) GetData() *Data

func (*RawTransaction) GetFrom

func (x *RawTransaction) GetFrom() []byte

func (*RawTransaction) GetGasLimit

func (x *RawTransaction) GetGasLimit() []byte

func (*RawTransaction) GetGasPrice

func (x *RawTransaction) GetGasPrice() []byte

func (*RawTransaction) GetHash

func (x *RawTransaction) GetHash() []byte

func (*RawTransaction) GetNonce

func (x *RawTransaction) GetNonce() uint64

func (*RawTransaction) GetSign

func (x *RawTransaction) GetSign() []byte

func (*RawTransaction) GetTimestamp

func (x *RawTransaction) GetTimestamp() int64

func (*RawTransaction) GetTo

func (x *RawTransaction) GetTo() []byte

func (*RawTransaction) GetValue

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

func (*RawTransaction) ProtoMessage

func (*RawTransaction) ProtoMessage()

func (*RawTransaction) ProtoReflect

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

func (*RawTransaction) Reset

func (x *RawTransaction) Reset()

func (*RawTransaction) String

func (x *RawTransaction) String() string

type SigningInput

type SigningInput struct {

	// sender's address.
	FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// Chain identifier (uint256, serialized big endian)
	ChainId []byte `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Nonce (uint256, serialized big endian)
	Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Gas price (uint256, serialized big endian)
	GasPrice []byte `protobuf:"bytes,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// Gas limit (uint256, serialized big endian)
	GasLimit []byte `protobuf:"bytes,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// Recipient's address.
	ToAddress string `protobuf:"bytes,6,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// Amount to send in wei, 1 NAS = 10^18 Wei (uint256, serialized big endian)
	Amount []byte `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount,omitempty"`
	// Timestamp to create transaction (uint256, serialized big endian)
	Timestamp []byte `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Optional payload
	Payload string `protobuf:"bytes,9,opt,name=payload,proto3" json:"payload,omitempty"`
	// The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,10,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) GetAmount

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

func (*SigningInput) GetChainId

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

func (*SigningInput) GetFromAddress

func (x *SigningInput) GetFromAddress() string

func (*SigningInput) GetGasLimit

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

func (*SigningInput) GetGasPrice

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

func (*SigningInput) GetNonce

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

func (*SigningInput) GetPayload

func (x *SigningInput) GetPayload() string

func (*SigningInput) GetPrivateKey

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

func (*SigningInput) GetTimestamp

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

func (*SigningInput) GetToAddress

func (x *SigningInput) GetToAddress() string

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 {

	// Algorithm code
	Algorithm uint32 `protobuf:"varint,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
	// The signature
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// Encoded transaction
	Raw string `protobuf:"bytes,3,opt,name=raw,proto3" json:"raw,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) GetAlgorithm

func (x *SigningOutput) GetAlgorithm() uint32

func (*SigningOutput) GetRaw

func (x *SigningOutput) GetRaw() 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