Documentation
¶
Index ¶
- Variables
- type NetworkId
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetDestination() string
- func (x *SigningInput) GetFee() uint64
- func (x *SigningInput) GetNetworkId() NetworkId
- func (x *SigningInput) GetPrivateKey() []byte
- func (x *SigningInput) GetValidityStartHeight() uint32
- func (x *SigningInput) GetValue() uint64
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningOutput
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
func (NetworkId) Descriptor ¶
func (NetworkId) Descriptor() protoreflect.EnumDescriptor
func (NetworkId) EnumDescriptor
deprecated
func (NetworkId) Number ¶
func (x NetworkId) Number() protoreflect.EnumNumber
func (NetworkId) Type ¶
func (NetworkId) Type() protoreflect.EnumType
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
Click to show internal directories.
Click to hide internal directories.