nimiq

package
v0.0.1-gowrapper-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NetworkId_name = map[int32]string{
		0:  "UseDefault",
		42: "Mainnet",
		24: "MainnetAlbatross",
	}
	NetworkId_value = map[string]int32{
		"UseDefault":       0,
		"Mainnet":          42,
		"MainnetAlbatross": 24,
	}
)

Enum value maps for NetworkId.

View Source
var File_Nimiq_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type NetworkId

type NetworkId int32
const (
	NetworkId_UseDefault NetworkId = 0
	// Default PoW Mainnet.
	NetworkId_Mainnet NetworkId = 42
	// PoS Mainnet starting at the PoW block height 3’456’000.
	NetworkId_MainnetAlbatross NetworkId = 24
)

func (NetworkId) Descriptor

func (NetworkId) Descriptor() protoreflect.EnumDescriptor

func (NetworkId) Enum

func (x NetworkId) Enum() *NetworkId

func (NetworkId) EnumDescriptor deprecated

func (NetworkId) EnumDescriptor() ([]byte, []int)

Deprecated: Use NetworkId.Descriptor instead.

func (NetworkId) Number

func (x NetworkId) Number() protoreflect.EnumNumber

func (NetworkId) String

func (x NetworkId) String() string

func (NetworkId) Type

type SigningInput

type SigningInput struct {

	// The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Destination address
	Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
	// Amount of the transfer
	Value uint64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
	// Fee amount
	Fee uint64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
	// Validity start, in block height
	ValidityStartHeight uint32 `protobuf:"varint,5,opt,name=validity_start_height,json=validityStartHeight,proto3" json:"validity_start_height,omitempty"`
	// Network ID.
	NetworkId NetworkId `protobuf:"varint,6,opt,name=network_id,json=networkId,proto3,enum=TW.Nimiq.Proto.NetworkId" json:"network_id,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) GetDestination

func (x *SigningInput) GetDestination() string

func (*SigningInput) GetFee

func (x *SigningInput) GetFee() uint64

func (*SigningInput) GetNetworkId

func (x *SigningInput) GetNetworkId() NetworkId

func (*SigningInput) GetPrivateKey

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

func (*SigningInput) GetValidityStartHeight

func (x *SigningInput) GetValidityStartHeight() uint32

func (*SigningInput) GetValue

func (x *SigningInput) GetValue() uint64

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 {

	// The encoded transaction
	Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,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) 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