algorand

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_Algorand_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AssetOptIn

type AssetOptIn struct {

	// ID of the asset
	AssetId uint64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// contains filtered or unexported fields
}

Opt-in message for an asset

func (*AssetOptIn) Descriptor deprecated

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

Deprecated: Use AssetOptIn.ProtoReflect.Descriptor instead.

func (*AssetOptIn) GetAssetId

func (x *AssetOptIn) GetAssetId() uint64

func (*AssetOptIn) ProtoMessage

func (*AssetOptIn) ProtoMessage()

func (*AssetOptIn) ProtoReflect

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

func (*AssetOptIn) Reset

func (x *AssetOptIn) Reset()

func (*AssetOptIn) String

func (x *AssetOptIn) String() string

type AssetTransfer

type AssetTransfer struct {

	// Destination address (string)
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// Amount
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// ID of the asset being transferred
	AssetId uint64 `protobuf:"varint,3,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// contains filtered or unexported fields
}

Asset Transfer message, with assetID

func (*AssetTransfer) Descriptor deprecated

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

Deprecated: Use AssetTransfer.ProtoReflect.Descriptor instead.

func (*AssetTransfer) GetAmount

func (x *AssetTransfer) GetAmount() uint64

func (*AssetTransfer) GetAssetId

func (x *AssetTransfer) GetAssetId() uint64

func (*AssetTransfer) GetToAddress

func (x *AssetTransfer) GetToAddress() string

func (*AssetTransfer) ProtoMessage

func (*AssetTransfer) ProtoMessage()

func (*AssetTransfer) ProtoReflect

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

func (*AssetTransfer) Reset

func (x *AssetTransfer) Reset()

func (*AssetTransfer) String

func (x *AssetTransfer) String() string

type SigningInput

type SigningInput struct {

	// network / chain id
	GenesisId string `protobuf:"bytes,1,opt,name=genesis_id,json=genesisId,proto3" json:"genesis_id,omitempty"`
	// network / chain hash
	GenesisHash []byte `protobuf:"bytes,2,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"`
	// binary note data
	Note []byte `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	// The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// network / first round
	FirstRound uint64 `protobuf:"varint,5,opt,name=first_round,json=firstRound,proto3" json:"first_round,omitempty"`
	// network / last round
	LastRound uint64 `protobuf:"varint,6,opt,name=last_round,json=lastRound,proto3" json:"last_round,omitempty"`
	// fee amount
	Fee uint64 `protobuf:"varint,7,opt,name=fee,proto3" json:"fee,omitempty"`
	// public key
	PublicKey []byte `protobuf:"bytes,8,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// message payload
	//
	// Types that are valid to be assigned to MessageOneof:
	//
	//	*SigningInput_Transfer
	//	*SigningInput_AssetTransfer
	//	*SigningInput_AssetOptIn
	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) GetAssetOptIn

func (x *SigningInput) GetAssetOptIn() *AssetOptIn

func (*SigningInput) GetAssetTransfer

func (x *SigningInput) GetAssetTransfer() *AssetTransfer

func (*SigningInput) GetFee

func (x *SigningInput) GetFee() uint64

func (*SigningInput) GetFirstRound

func (x *SigningInput) GetFirstRound() uint64

func (*SigningInput) GetGenesisHash

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

func (*SigningInput) GetGenesisId

func (x *SigningInput) GetGenesisId() string

func (*SigningInput) GetLastRound

func (x *SigningInput) GetLastRound() uint64

func (*SigningInput) GetMessageOneof

func (x *SigningInput) GetMessageOneof() isSigningInput_MessageOneof

func (*SigningInput) GetNote

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

func (*SigningInput) GetPrivateKey

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

func (*SigningInput) GetPublicKey

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

func (*SigningInput) GetTransfer

func (x *SigningInput) GetTransfer() *Transfer

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_AssetOptIn

type SigningInput_AssetOptIn struct {
	AssetOptIn *AssetOptIn `protobuf:"bytes,12,opt,name=asset_opt_in,json=assetOptIn,proto3,oneof"`
}

type SigningInput_AssetTransfer

type SigningInput_AssetTransfer struct {
	AssetTransfer *AssetTransfer `protobuf:"bytes,11,opt,name=asset_transfer,json=assetTransfer,proto3,oneof"`
}

type SigningInput_Transfer

type SigningInput_Transfer struct {
	Transfer *Transfer `protobuf:"bytes,10,opt,name=transfer,proto3,oneof"`
}

type SigningOutput

type SigningOutput struct {

	// Signed and encoded transaction bytes.
	Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// Signature in base64.
	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 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() 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

type Transfer

type Transfer struct {

	// Destination address (string)
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// Amount
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Simple transfer message, transfer an amount to an address

func (*Transfer) Descriptor deprecated

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() uint64

func (*Transfer) GetToAddress

func (x *Transfer) GetToAddress() string

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

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

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

Jump to

Keyboard shortcuts

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