solana

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_txproto_solana_solana_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SigningInput

type SigningInput struct {

	// Recent blockhash, base58.
	RecentBlockhash string `protobuf:"bytes,1,opt,name=recent_blockhash,json=recentBlockhash,proto3" json:"recent_blockhash,omitempty"`
	// Types that are valid to be assigned to TransactionType:
	//
	//	*SigningInput_TransferTransaction
	//	*SigningInput_TokenTransferTransaction
	TransactionType isSigningInput_TransactionType `protobuf_oneof:"transaction_type"`
	// contains filtered or unexported fields
}

SigningInput mirrors a minimal subset of TW.Solana.Proto.SigningInput.

func (*SigningInput) Descriptor deprecated

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

Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.

func (*SigningInput) GetRecentBlockhash

func (x *SigningInput) GetRecentBlockhash() string

func (*SigningInput) GetTokenTransferTransaction

func (x *SigningInput) GetTokenTransferTransaction() *TokenTransfer

func (*SigningInput) GetTransactionType

func (x *SigningInput) GetTransactionType() isSigningInput_TransactionType

func (*SigningInput) GetTransferTransaction

func (x *SigningInput) GetTransferTransaction() *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_TokenTransferTransaction

type SigningInput_TokenTransferTransaction struct {
	TokenTransferTransaction *TokenTransfer `protobuf:"bytes,3,opt,name=token_transfer_transaction,json=tokenTransferTransaction,proto3,oneof"`
}

type SigningInput_TransferTransaction

type SigningInput_TransferTransaction struct {
	TransferTransaction *Transfer `protobuf:"bytes,2,opt,name=transfer_transaction,json=transferTransaction,proto3,oneof"`
}

type SigningOutput

type SigningOutput struct {

	// base58 of the fully signed transaction.
	Encoded string `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// raw signed transaction bytes.
	Raw []byte `protobuf:"bytes,2,opt,name=raw,proto3" json:"raw,omitempty"`
	// Error message, empty on success.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

SigningOutput mirrors a minimal subset of TW.Solana.Proto.SigningOutput.

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() string

func (*SigningOutput) GetRaw

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

type TokenTransfer

type TokenTransfer struct {
	TokenMintAddress      string `protobuf:"bytes,1,opt,name=token_mint_address,json=tokenMintAddress,proto3" json:"token_mint_address,omitempty"`       // base58
	SenderTokenAddress    string `protobuf:"bytes,2,opt,name=sender_token_address,json=senderTokenAddress,proto3" json:"sender_token_address,omitempty"` // base58 (the source ATA)
	RecipientTokenAddress string ``                                                                                                                      // base58 (the destination ATA)
	/* 126-byte string literal not displayed */
	Amount   uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Decimals uint32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// contains filtered or unexported fields
}

SPL token transfer via the Token Program (checked transfer).

func (*TokenTransfer) Descriptor deprecated

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

Deprecated: Use TokenTransfer.ProtoReflect.Descriptor instead.

func (*TokenTransfer) GetAmount

func (x *TokenTransfer) GetAmount() uint64

func (*TokenTransfer) GetDecimals

func (x *TokenTransfer) GetDecimals() uint32

func (*TokenTransfer) GetRecipientTokenAddress

func (x *TokenTransfer) GetRecipientTokenAddress() string

func (*TokenTransfer) GetSenderTokenAddress

func (x *TokenTransfer) GetSenderTokenAddress() string

func (*TokenTransfer) GetTokenMintAddress

func (x *TokenTransfer) GetTokenMintAddress() string

func (*TokenTransfer) ProtoMessage

func (*TokenTransfer) ProtoMessage()

func (*TokenTransfer) ProtoReflect

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

func (*TokenTransfer) Reset

func (x *TokenTransfer) Reset()

func (*TokenTransfer) String

func (x *TokenTransfer) String() string

type Transfer

type Transfer struct {
	Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` // base58 address
	Value     uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`        // lamports
	// contains filtered or unexported fields
}

Native SOL transfer via the System Program.

func (*Transfer) Descriptor deprecated

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetRecipient

func (x *Transfer) GetRecipient() string

func (*Transfer) GetValue

func (x *Transfer) GetValue() uint64

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