multiversx

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_MultiversX_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Accounts

type Accounts struct {

	// Nonce of the sender
	SenderNonce uint64 `protobuf:"varint,1,opt,name=sender_nonce,json=senderNonce,proto3" json:"sender_nonce,omitempty"`
	// Sender address
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// Sender username
	SenderUsername string `protobuf:"bytes,3,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"`
	// Receiver address
	Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// Receiver username
	ReceiverUsername string `protobuf:"bytes,5,opt,name=receiver_username,json=receiverUsername,proto3" json:"receiver_username,omitempty"`
	// Guardian address
	Guardian string `protobuf:"bytes,6,opt,name=guardian,proto3" json:"guardian,omitempty"`
	// Relayer address
	Relayer string `protobuf:"bytes,7,opt,name=relayer,proto3" json:"relayer,omitempty"`
	// contains filtered or unexported fields
}

Transaction sender & receiver etc.

func (*Accounts) Descriptor deprecated

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

Deprecated: Use Accounts.ProtoReflect.Descriptor instead.

func (*Accounts) GetGuardian

func (x *Accounts) GetGuardian() string

func (*Accounts) GetReceiver

func (x *Accounts) GetReceiver() string

func (*Accounts) GetReceiverUsername

func (x *Accounts) GetReceiverUsername() string

func (*Accounts) GetRelayer

func (x *Accounts) GetRelayer() string

func (*Accounts) GetSender

func (x *Accounts) GetSender() string

func (*Accounts) GetSenderNonce

func (x *Accounts) GetSenderNonce() uint64

func (*Accounts) GetSenderUsername

func (x *Accounts) GetSenderUsername() string

func (*Accounts) ProtoMessage

func (*Accounts) ProtoMessage()

func (*Accounts) ProtoReflect

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

func (*Accounts) Reset

func (x *Accounts) Reset()

func (*Accounts) String

func (x *Accounts) String() string

type EGLDTransfer

type EGLDTransfer struct {

	// Accounts involved
	Accounts *Accounts `protobuf:"bytes,1,opt,name=accounts,proto3" json:"accounts,omitempty"`
	// Transfer amount (string)
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Data   string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// transaction version, if empty, the default value will be used
	Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

EGLD transfer (move balance).

func (*EGLDTransfer) Descriptor deprecated

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

Deprecated: Use EGLDTransfer.ProtoReflect.Descriptor instead.

func (*EGLDTransfer) GetAccounts

func (x *EGLDTransfer) GetAccounts() *Accounts

func (*EGLDTransfer) GetAmount

func (x *EGLDTransfer) GetAmount() string

func (*EGLDTransfer) GetData

func (x *EGLDTransfer) GetData() string

func (*EGLDTransfer) GetVersion

func (x *EGLDTransfer) GetVersion() uint32

func (*EGLDTransfer) ProtoMessage

func (*EGLDTransfer) ProtoMessage()

func (*EGLDTransfer) ProtoReflect

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

func (*EGLDTransfer) Reset

func (x *EGLDTransfer) Reset()

func (*EGLDTransfer) String

func (x *EGLDTransfer) String() string

type ESDTNFTTransfer

type ESDTNFTTransfer struct {

	// Accounts involved
	Accounts *Accounts `protobuf:"bytes,1,opt,name=accounts,proto3" json:"accounts,omitempty"`
	// tokens
	TokenCollection string `protobuf:"bytes,2,opt,name=token_collection,json=tokenCollection,proto3" json:"token_collection,omitempty"`
	// nonce of the token
	TokenNonce uint64 `protobuf:"varint,3,opt,name=token_nonce,json=tokenNonce,proto3" json:"token_nonce,omitempty"`
	// transfer amount
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// transaction version, if empty, the default value will be used
	Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

ESDTNFT transfer (transfer NFTs, SFTs and Meta ESDTs).

func (*ESDTNFTTransfer) Descriptor deprecated

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

Deprecated: Use ESDTNFTTransfer.ProtoReflect.Descriptor instead.

func (*ESDTNFTTransfer) GetAccounts

func (x *ESDTNFTTransfer) GetAccounts() *Accounts

func (*ESDTNFTTransfer) GetAmount

func (x *ESDTNFTTransfer) GetAmount() string

func (*ESDTNFTTransfer) GetTokenCollection

func (x *ESDTNFTTransfer) GetTokenCollection() string

func (*ESDTNFTTransfer) GetTokenNonce

func (x *ESDTNFTTransfer) GetTokenNonce() uint64

func (*ESDTNFTTransfer) GetVersion

func (x *ESDTNFTTransfer) GetVersion() uint32

func (*ESDTNFTTransfer) ProtoMessage

func (*ESDTNFTTransfer) ProtoMessage()

func (*ESDTNFTTransfer) ProtoReflect

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

func (*ESDTNFTTransfer) Reset

func (x *ESDTNFTTransfer) Reset()

func (*ESDTNFTTransfer) String

func (x *ESDTNFTTransfer) String() string

type ESDTTransfer

type ESDTTransfer struct {

	// Accounts involved
	Accounts *Accounts `protobuf:"bytes,1,opt,name=accounts,proto3" json:"accounts,omitempty"`
	// Token ID
	TokenIdentifier string `protobuf:"bytes,2,opt,name=token_identifier,json=tokenIdentifier,proto3" json:"token_identifier,omitempty"`
	// Transfer token amount (string)
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// transaction version, if empty, the default value will be used
	Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

ESDT transfer (transfer regular ESDTs - fungible tokens).

func (*ESDTTransfer) Descriptor deprecated

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

Deprecated: Use ESDTTransfer.ProtoReflect.Descriptor instead.

func (*ESDTTransfer) GetAccounts

func (x *ESDTTransfer) GetAccounts() *Accounts

func (*ESDTTransfer) GetAmount

func (x *ESDTTransfer) GetAmount() string

func (*ESDTTransfer) GetTokenIdentifier

func (x *ESDTTransfer) GetTokenIdentifier() string

func (*ESDTTransfer) GetVersion

func (x *ESDTTransfer) GetVersion() uint32

func (*ESDTTransfer) ProtoMessage

func (*ESDTTransfer) ProtoMessage()

func (*ESDTTransfer) ProtoReflect

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

func (*ESDTTransfer) Reset

func (x *ESDTTransfer) Reset()

func (*ESDTTransfer) String

func (x *ESDTTransfer) String() string

type GenericAction

type GenericAction struct {

	// Accounts involved
	Accounts *Accounts `protobuf:"bytes,1,opt,name=accounts,proto3" json:"accounts,omitempty"`
	// amount
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// additional data
	Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// transaction version
	Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// Generally speaking, the "options" field can be ignored (not set) by applications using TW Core.
	Options uint32 `protobuf:"varint,5,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Generic action. Using one of the more specific actions (e.g. transfers, see below) is recommended.

func (*GenericAction) Descriptor deprecated

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

Deprecated: Use GenericAction.ProtoReflect.Descriptor instead.

func (*GenericAction) GetAccounts

func (x *GenericAction) GetAccounts() *Accounts

func (*GenericAction) GetData

func (x *GenericAction) GetData() string

func (*GenericAction) GetOptions

func (x *GenericAction) GetOptions() uint32

func (*GenericAction) GetValue

func (x *GenericAction) GetValue() string

func (*GenericAction) GetVersion

func (x *GenericAction) GetVersion() uint32

func (*GenericAction) ProtoMessage

func (*GenericAction) ProtoMessage()

func (*GenericAction) ProtoReflect

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

func (*GenericAction) Reset

func (x *GenericAction) Reset()

func (*GenericAction) String

func (x *GenericAction) String() string

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"`
	// Chain identifier, string
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Gas price
	GasPrice uint64 `protobuf:"varint,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// Limit for the gas used
	GasLimit uint64 `protobuf:"varint,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// transfer payload
	//
	// Types that are valid to be assigned to MessageOneof:
	//
	//	*SigningInput_GenericAction
	//	*SigningInput_EgldTransfer
	//	*SigningInput_EsdtTransfer
	//	*SigningInput_EsdtnftTransfer
	MessageOneof isSigningInput_MessageOneof `protobuf_oneof:"message_oneof"`
	// 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) GetChainId

func (x *SigningInput) GetChainId() string

func (*SigningInput) GetEgldTransfer

func (x *SigningInput) GetEgldTransfer() *EGLDTransfer

func (*SigningInput) GetEsdtTransfer

func (x *SigningInput) GetEsdtTransfer() *ESDTTransfer

func (*SigningInput) GetEsdtnftTransfer

func (x *SigningInput) GetEsdtnftTransfer() *ESDTNFTTransfer

func (*SigningInput) GetGasLimit

func (x *SigningInput) GetGasLimit() uint64

func (*SigningInput) GetGasPrice

func (x *SigningInput) GetGasPrice() uint64

func (*SigningInput) GetGenericAction

func (x *SigningInput) GetGenericAction() *GenericAction

func (*SigningInput) GetMessageOneof

func (x *SigningInput) GetMessageOneof() isSigningInput_MessageOneof

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 SigningInput_EgldTransfer

type SigningInput_EgldTransfer struct {
	EgldTransfer *EGLDTransfer `protobuf:"bytes,6,opt,name=egld_transfer,json=egldTransfer,proto3,oneof"`
}

type SigningInput_EsdtTransfer

type SigningInput_EsdtTransfer struct {
	EsdtTransfer *ESDTTransfer `protobuf:"bytes,7,opt,name=esdt_transfer,json=esdtTransfer,proto3,oneof"`
}

type SigningInput_EsdtnftTransfer

type SigningInput_EsdtnftTransfer struct {
	EsdtnftTransfer *ESDTNFTTransfer `protobuf:"bytes,8,opt,name=esdtnft_transfer,json=esdtnftTransfer,proto3,oneof"`
}

type SigningInput_GenericAction

type SigningInput_GenericAction struct {
	GenericAction *GenericAction `protobuf:"bytes,5,opt,name=generic_action,json=genericAction,proto3,oneof"`
}

type SigningOutput

type SigningOutput struct {
	Encoded   string `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	Signature string `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() string

func (*SigningOutput) GetError

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

func (*SigningOutput) GetErrorMessage

func (x *SigningOutput) GetErrorMessage() string

func (*SigningOutput) GetSignature

func (x *SigningOutput) GetSignature() string

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