Documentation
¶
Index ¶
- Constants
- Variables
- func ConvertAccountFromProto(p *Account) (*typesolana.Account, error)
- func ConvertCommitmentFromProto(c CommitmentType) typesolana.CommitmentType
- func ConvertCompiledInstructionFromProto(p *CompiledInstruction) typesolana.CompiledInstruction
- func ConvertComputeConfigFromProto(p *ComputeConfig) *typesolana.ComputeConfig
- func ConvertConfirmationStatusFromProto(c ConfirmationStatusType) typesolana.ConfirmationStatusType
- func ConvertDataBytesOrJSONFromProto(p *DataBytesOrJSON) *typesolana.DataBytesOrJSON
- func ConvertDataSliceFromProto(p *DataSlice) *typesolana.DataSlice
- func ConvertEncodingTypeFromProto(e EncodingType) typesolana.EncodingType
- func ConvertEventSigFromProto(b []byte) (typesolana.EventSignature, error)
- func ConvertExpressionsFromProto(protoExpressions []*Expression) ([]query.Expression, error)
- func ConvertGetAccountInfoOptsFromProto(p *GetAccountInfoOpts) *typesolana.GetAccountInfoOpts
- func ConvertGetBalanceReplyFromProto(p *GetBalanceReply) *typesolana.GetBalanceReply
- func ConvertGetBalanceRequestFromProto(p *GetBalanceRequest) (typesolana.GetBalanceRequest, error)
- func ConvertGetBlockOptsFromProto(p *GetBlockOpts) *typesolana.GetBlockOpts
- func ConvertGetBlockOptsReplyFromProto(p *GetBlockReply) (*typesolana.GetBlockReply, error)
- func ConvertGetBlockRequestFromProto(p *GetBlockRequest) *typesolana.GetBlockRequest
- func ConvertGetFeeForMessageReplyFromProto(p *GetFeeForMessageReply) *typesolana.GetFeeForMessageReply
- func ConvertGetFeeForMessageRequestFromProto(p *GetFeeForMessageRequest) *typesolana.GetFeeForMessageRequest
- func ConvertGetMultipleAccountsOptsFromProto(p *GetMultipleAccountsOpts) *typesolana.GetMultipleAccountsOpts
- func ConvertGetMultipleAccountsReplyFromProto(p *GetMultipleAccountsWithOptsReply) (*typesolana.GetMultipleAccountsReply, error)
- func ConvertGetMultipleAccountsRequestFromProto(p *GetMultipleAccountsWithOptsRequest) *typesolana.GetMultipleAccountsRequest
- func ConvertGetSignatureStatusesReplyFromProto(p *GetSignatureStatusesReply) *typesolana.GetSignatureStatusesReply
- func ConvertGetSignatureStatusesRequestFromProto(p *GetSignatureStatusesRequest) (*typesolana.GetSignatureStatusesRequest, error)
- func ConvertGetSlotHeightReplyFromProto(p *GetSlotHeightReply) *typesolana.GetSlotHeightReply
- func ConvertGetSlotHeightRequestFromProto(p *GetSlotHeightRequest) typesolana.GetSlotHeightRequest
- func ConvertGetTransactionReplyFromProto(p *GetTransactionReply) (*typesolana.GetTransactionReply, error)
- func ConvertGetTransactionRequestFromProto(p *GetTransactionRequest) (typesolana.GetTransactionRequest, error)
- func ConvertHashFromProto(b []byte) (typesolana.Hash, error)
- func ConvertInnerInstructionFromProto(p *InnerInstruction) typesolana.InnerInstruction
- func ConvertLPFilterQueryFromProto(p *LPFilterQuery) (*typesolana.LPFilterQuery, error)
- func ConvertLoadedAddressesFromProto(p *LoadedAddresses) typesolana.LoadedAddresses
- func ConvertLogFromProto(p *Log) (*typesolana.Log, error)
- func ConvertMessageHeaderFromProto(p *MessageHeader) typesolana.MessageHeader
- func ConvertParsedMessageFromProto(p *ParsedMessage) (typesolana.Message, error)
- func ConvertParsedTransactionFromProto(p *ParsedTransaction) (typesolana.Transaction, error)
- func ConvertPublicKeyFromProto(b []byte) (typesolana.PublicKey, error)
- func ConvertPublicKeysFromProto(pubKeys [][]byte) ([]typesolana.PublicKey, error)
- func ConvertPublicKeysToProto(keys []typesolana.PublicKey) [][]byte
- func ConvertRPCContextFromProto(p *RPCContext) typesolana.RPCContext
- func ConvertReturnDataFromProto(p *ReturnData) (*typesolana.ReturnData, error)
- func ConvertSignatureFromProto(b []byte) (typesolana.Signature, error)
- func ConvertSignaturesFromProto(arr [][]byte) ([]typesolana.Signature, error)
- func ConvertSignaturesToProto(sigs []typesolana.Signature) [][]byte
- func ConvertSimulateTXOptsFromProto(p *SimulateTXOpts) *typesolana.SimulateTXOpts
- func ConvertSimulateTXReplyFromProto(p *SimulateTXReply) (*typesolana.SimulateTXReply, error)
- func ConvertSimulateTXRequestFromProto(p *SimulateTXRequest) (typesolana.SimulateTXRequest, error)
- func ConvertSimulateTransactionAccountsOptsFromProto(p *SimulateTransactionAccountsOpts) *typesolana.SimulateTransactionAccountsOpts
- func ConvertSubkeyPathsFromProto(skeys []*Subkeys) [][]string
- func ConvertSubmitTransactionReplyFromProto(p *SubmitTransactionReply) (*typesolana.SubmitTransactionReply, error)
- func ConvertSubmitTransactionRequestFromProto(p *SubmitTransactionRequest) (typesolana.SubmitTransactionRequest, error)
- func ConvertTokenBalanceFromProto(p *TokenBalance) (*typesolana.TokenBalance, error)
- func ConvertTransactionEnvelopeFromProto(p *TransactionEnvelope) (typesolana.TransactionResultEnvelope, error)
- func ConvertTransactionMetaFromProto(p *TransactionMeta) (*typesolana.TransactionMeta, error)
- func ConvertUiTokenAmountFromProto(p *UiTokenAmount) *typesolana.UiTokenAmount
- func ConvertValueCompraratorsFromProto(comparators []*IndexedValueComparator) []solprimitives.IndexedValueComparator
- func RegisterSolanaServer(s grpc.ServiceRegistrar, srv SolanaServer)
- func ValidatePublicKeyBytes(b []byte) error
- func ValidateSignatureBytes(b []byte) error
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetData() *DataBytesOrJSON
- func (x *Account) GetExecutable() bool
- func (x *Account) GetLamports() uint64
- func (x *Account) GetOwner() []byte
- func (x *Account) GetRentEpoch() *pb.BigInt
- func (x *Account) GetSpace() uint64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type BooleanExpression
- func (*BooleanExpression) Descriptor() ([]byte, []int)deprecated
- func (x *BooleanExpression) GetBooleanOperator() chain_common.BooleanOperator
- func (x *BooleanExpression) GetExpression() []*Expression
- func (*BooleanExpression) ProtoMessage()
- func (x *BooleanExpression) ProtoReflect() protoreflect.Message
- func (x *BooleanExpression) Reset()
- func (x *BooleanExpression) String() string
- type CommitmentType
- func (CommitmentType) Descriptor() protoreflect.EnumDescriptor
- func (x CommitmentType) Enum() *CommitmentType
- func (CommitmentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CommitmentType) Number() protoreflect.EnumNumber
- func (x CommitmentType) String() string
- func (CommitmentType) Type() protoreflect.EnumType
- type CompiledInstruction
- func (*CompiledInstruction) Descriptor() ([]byte, []int)deprecated
- func (x *CompiledInstruction) GetAccounts() []uint32
- func (x *CompiledInstruction) GetData() []byte
- func (x *CompiledInstruction) GetProgramIdIndex() uint32
- func (x *CompiledInstruction) GetStackHeight() uint32
- func (*CompiledInstruction) ProtoMessage()
- func (x *CompiledInstruction) ProtoReflect() protoreflect.Message
- func (x *CompiledInstruction) Reset()
- func (x *CompiledInstruction) String() string
- type ComputeConfig
- func (*ComputeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ComputeConfig) GetComputeLimit() uint32
- func (x *ComputeConfig) GetComputeMaxPrice() uint64
- func (*ComputeConfig) ProtoMessage()
- func (x *ComputeConfig) ProtoReflect() protoreflect.Message
- func (x *ComputeConfig) Reset()
- func (x *ComputeConfig) String() string
- type ConfirmationStatusType
- func (ConfirmationStatusType) Descriptor() protoreflect.EnumDescriptor
- func (x ConfirmationStatusType) Enum() *ConfirmationStatusType
- func (ConfirmationStatusType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConfirmationStatusType) Number() protoreflect.EnumNumber
- func (x ConfirmationStatusType) String() string
- func (ConfirmationStatusType) Type() protoreflect.EnumType
- type Data
- type DataBytesOrJSON
- func (*DataBytesOrJSON) Descriptor() ([]byte, []int)deprecated
- func (x *DataBytesOrJSON) GetBody() isDataBytesOrJSON_Body
- func (x *DataBytesOrJSON) GetEncoding() EncodingType
- func (x *DataBytesOrJSON) GetJson() []byte
- func (x *DataBytesOrJSON) GetRaw() []byte
- func (*DataBytesOrJSON) ProtoMessage()
- func (x *DataBytesOrJSON) ProtoReflect() protoreflect.Message
- func (x *DataBytesOrJSON) Reset()
- func (x *DataBytesOrJSON) String() string
- type DataBytesOrJSON_Json
- type DataBytesOrJSON_Raw
- type DataSlice
- type EncodingType
- func (EncodingType) Descriptor() protoreflect.EnumDescriptor
- func (x EncodingType) Enum() *EncodingType
- func (EncodingType) EnumDescriptor() ([]byte, []int)deprecated
- func (x EncodingType) Number() protoreflect.EnumNumber
- func (x EncodingType) String() string
- func (EncodingType) Type() protoreflect.EnumType
- type EventBySubkey
- func (*EventBySubkey) Descriptor() ([]byte, []int)deprecated
- func (x *EventBySubkey) GetSubkeyIndex() uint64
- func (x *EventBySubkey) GetValueComparers() []*IndexedValueComparator
- func (*EventBySubkey) ProtoMessage()
- func (x *EventBySubkey) ProtoReflect() protoreflect.Message
- func (x *EventBySubkey) Reset()
- func (x *EventBySubkey) String() string
- type EventSig
- func (*EventSig) Descriptor() ([]byte, []int)deprecated
- func (x *EventSig) GetHashedValueComparers() []*HashedValueComparator
- func (x *EventSig) GetTopic() uint64
- func (*EventSig) ProtoMessage()
- func (x *EventSig) ProtoReflect() protoreflect.Message
- func (x *EventSig) Reset()
- func (x *EventSig) String() string
- type Expression
- func (*Expression) Descriptor() ([]byte, []int)deprecated
- func (x *Expression) GetBooleanExpression() *BooleanExpression
- func (x *Expression) GetEvaluator() isExpression_Evaluator
- func (x *Expression) GetPrimitive() *Primitive
- func (*Expression) ProtoMessage()
- func (x *Expression) ProtoReflect() protoreflect.Message
- func (x *Expression) Reset()
- func (x *Expression) String() string
- type Expression_BooleanExpression
- type Expression_Primitive
- type GetAccountInfoOpts
- func (*GetAccountInfoOpts) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountInfoOpts) GetCommitment() CommitmentType
- func (x *GetAccountInfoOpts) GetDataSlice() *DataSlice
- func (x *GetAccountInfoOpts) GetEncoding() EncodingType
- func (x *GetAccountInfoOpts) GetMinContextSlot() uint64
- func (*GetAccountInfoOpts) ProtoMessage()
- func (x *GetAccountInfoOpts) ProtoReflect() protoreflect.Message
- func (x *GetAccountInfoOpts) Reset()
- func (x *GetAccountInfoOpts) String() string
- type GetAccountInfoWithOptsReply
- func (*GetAccountInfoWithOptsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountInfoWithOptsReply) GetRpcContext() *RPCContext
- func (x *GetAccountInfoWithOptsReply) GetValue() *Account
- func (*GetAccountInfoWithOptsReply) ProtoMessage()
- func (x *GetAccountInfoWithOptsReply) ProtoReflect() protoreflect.Message
- func (x *GetAccountInfoWithOptsReply) Reset()
- func (x *GetAccountInfoWithOptsReply) String() string
- type GetAccountInfoWithOptsRequest
- func (*GetAccountInfoWithOptsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountInfoWithOptsRequest) GetAccount() []byte
- func (x *GetAccountInfoWithOptsRequest) GetOpts() *GetAccountInfoOpts
- func (*GetAccountInfoWithOptsRequest) ProtoMessage()
- func (x *GetAccountInfoWithOptsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountInfoWithOptsRequest) Reset()
- func (x *GetAccountInfoWithOptsRequest) String() string
- type GetBalanceReply
- type GetBalanceRequest
- func (*GetBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceRequest) GetAddr() []byte
- func (x *GetBalanceRequest) GetCommitment() CommitmentType
- func (*GetBalanceRequest) ProtoMessage()
- func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *GetBalanceRequest) Reset()
- func (x *GetBalanceRequest) String() string
- type GetBlockOpts
- type GetBlockReply
- func (*GetBlockReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockReply) GetBlockHeight() uint64
- func (x *GetBlockReply) GetBlockTime() int64
- func (x *GetBlockReply) GetBlockhash() []byte
- func (x *GetBlockReply) GetParentSlot() uint64
- func (x *GetBlockReply) GetPreviousBlockhash() []byte
- func (*GetBlockReply) ProtoMessage()
- func (x *GetBlockReply) ProtoReflect() protoreflect.Message
- func (x *GetBlockReply) Reset()
- func (x *GetBlockReply) String() string
- type GetBlockRequest
- func (*GetBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockRequest) GetOpts() *GetBlockOpts
- func (x *GetBlockRequest) GetSlot() uint64
- func (*GetBlockRequest) ProtoMessage()
- func (x *GetBlockRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockRequest) Reset()
- func (x *GetBlockRequest) String() string
- type GetFeeForMessageReply
- func (*GetFeeForMessageReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFeeForMessageReply) GetFee() uint64
- func (*GetFeeForMessageReply) ProtoMessage()
- func (x *GetFeeForMessageReply) ProtoReflect() protoreflect.Message
- func (x *GetFeeForMessageReply) Reset()
- func (x *GetFeeForMessageReply) String() string
- type GetFeeForMessageRequest
- func (*GetFeeForMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFeeForMessageRequest) GetCommitment() CommitmentType
- func (x *GetFeeForMessageRequest) GetMessage() string
- func (*GetFeeForMessageRequest) ProtoMessage()
- func (x *GetFeeForMessageRequest) ProtoReflect() protoreflect.Message
- func (x *GetFeeForMessageRequest) Reset()
- func (x *GetFeeForMessageRequest) String() string
- type GetLatestLPBlockReply
- func (*GetLatestLPBlockReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestLPBlockReply) GetSlot() uint64
- func (*GetLatestLPBlockReply) ProtoMessage()
- func (x *GetLatestLPBlockReply) ProtoReflect() protoreflect.Message
- func (x *GetLatestLPBlockReply) Reset()
- func (x *GetLatestLPBlockReply) String() string
- type GetMultipleAccountsOpts
- func (*GetMultipleAccountsOpts) Descriptor() ([]byte, []int)deprecated
- func (x *GetMultipleAccountsOpts) GetCommitment() CommitmentType
- func (x *GetMultipleAccountsOpts) GetDataSlice() *DataSlice
- func (x *GetMultipleAccountsOpts) GetEncoding() EncodingType
- func (x *GetMultipleAccountsOpts) GetMinContextSlot() uint64
- func (*GetMultipleAccountsOpts) ProtoMessage()
- func (x *GetMultipleAccountsOpts) ProtoReflect() protoreflect.Message
- func (x *GetMultipleAccountsOpts) Reset()
- func (x *GetMultipleAccountsOpts) String() string
- type GetMultipleAccountsWithOptsReply
- func (*GetMultipleAccountsWithOptsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetMultipleAccountsWithOptsReply) GetRpcContext() *RPCContext
- func (x *GetMultipleAccountsWithOptsReply) GetValue() []*OptionalAccountWrapper
- func (*GetMultipleAccountsWithOptsReply) ProtoMessage()
- func (x *GetMultipleAccountsWithOptsReply) ProtoReflect() protoreflect.Message
- func (x *GetMultipleAccountsWithOptsReply) Reset()
- func (x *GetMultipleAccountsWithOptsReply) String() string
- type GetMultipleAccountsWithOptsRequest
- func (*GetMultipleAccountsWithOptsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMultipleAccountsWithOptsRequest) GetAccounts() [][]byte
- func (x *GetMultipleAccountsWithOptsRequest) GetOpts() *GetMultipleAccountsOpts
- func (*GetMultipleAccountsWithOptsRequest) ProtoMessage()
- func (x *GetMultipleAccountsWithOptsRequest) ProtoReflect() protoreflect.Message
- func (x *GetMultipleAccountsWithOptsRequest) Reset()
- func (x *GetMultipleAccountsWithOptsRequest) String() string
- type GetSignatureStatusesReply
- func (*GetSignatureStatusesReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetSignatureStatusesReply) GetResults() []*GetSignatureStatusesResult
- func (*GetSignatureStatusesReply) ProtoMessage()
- func (x *GetSignatureStatusesReply) ProtoReflect() protoreflect.Message
- func (x *GetSignatureStatusesReply) Reset()
- func (x *GetSignatureStatusesReply) String() string
- type GetSignatureStatusesRequest
- func (*GetSignatureStatusesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSignatureStatusesRequest) GetSigs() [][]byte
- func (*GetSignatureStatusesRequest) ProtoMessage()
- func (x *GetSignatureStatusesRequest) ProtoReflect() protoreflect.Message
- func (x *GetSignatureStatusesRequest) Reset()
- func (x *GetSignatureStatusesRequest) String() string
- type GetSignatureStatusesResult
- func (*GetSignatureStatusesResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetSignatureStatusesResult) GetConfirmationStatus() ConfirmationStatusType
- func (x *GetSignatureStatusesResult) GetConfirmations() uint64
- func (x *GetSignatureStatusesResult) GetErr() string
- func (x *GetSignatureStatusesResult) GetSlot() uint64
- func (*GetSignatureStatusesResult) ProtoMessage()
- func (x *GetSignatureStatusesResult) ProtoReflect() protoreflect.Message
- func (x *GetSignatureStatusesResult) Reset()
- func (x *GetSignatureStatusesResult) String() string
- type GetSlotHeightReply
- func (*GetSlotHeightReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetSlotHeightReply) GetHeight() uint64
- func (*GetSlotHeightReply) ProtoMessage()
- func (x *GetSlotHeightReply) ProtoReflect() protoreflect.Message
- func (x *GetSlotHeightReply) Reset()
- func (x *GetSlotHeightReply) String() string
- type GetSlotHeightRequest
- func (*GetSlotHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSlotHeightRequest) GetCommitment() CommitmentType
- func (*GetSlotHeightRequest) ProtoMessage()
- func (x *GetSlotHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetSlotHeightRequest) Reset()
- func (x *GetSlotHeightRequest) String() string
- type GetTransactionReply
- func (*GetTransactionReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionReply) GetBlockTime() int64
- func (x *GetTransactionReply) GetMeta() *TransactionMeta
- func (x *GetTransactionReply) GetSlot() uint64
- func (x *GetTransactionReply) GetTransaction() *TransactionEnvelope
- func (*GetTransactionReply) ProtoMessage()
- func (x *GetTransactionReply) ProtoReflect() protoreflect.Message
- func (x *GetTransactionReply) Reset()
- func (x *GetTransactionReply) String() string
- type GetTransactionRequest
- func (*GetTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionRequest) GetSignature() []byte
- func (*GetTransactionRequest) ProtoMessage()
- func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetTransactionRequest) Reset()
- func (x *GetTransactionRequest) String() string
- type HashedValueComparator
- func (*HashedValueComparator) Descriptor() ([]byte, []int)deprecated
- func (x *HashedValueComparator) GetOperator() int64
- func (x *HashedValueComparator) GetValues() [][]byte
- func (*HashedValueComparator) ProtoMessage()
- func (x *HashedValueComparator) ProtoReflect() protoreflect.Message
- func (x *HashedValueComparator) Reset()
- func (x *HashedValueComparator) String() string
- type IndexedValueComparator
- func (*IndexedValueComparator) Descriptor() ([]byte, []int)deprecated
- func (x *IndexedValueComparator) GetOperator() chain_common.ComparisonOperator
- func (x *IndexedValueComparator) GetValue() []byte
- func (*IndexedValueComparator) ProtoMessage()
- func (x *IndexedValueComparator) ProtoReflect() protoreflect.Message
- func (x *IndexedValueComparator) Reset()
- func (x *IndexedValueComparator) String() string
- type InnerInstruction
- func (*InnerInstruction) Descriptor() ([]byte, []int)deprecated
- func (x *InnerInstruction) GetIndex() uint32
- func (x *InnerInstruction) GetInstructions() []*CompiledInstruction
- func (*InnerInstruction) ProtoMessage()
- func (x *InnerInstruction) ProtoReflect() protoreflect.Message
- func (x *InnerInstruction) Reset()
- func (x *InnerInstruction) String() string
- type LPFilterQuery
- func (*LPFilterQuery) Descriptor() ([]byte, []int)deprecated
- func (x *LPFilterQuery) GetAddress() []byte
- func (x *LPFilterQuery) GetContractIdlJson() []byte
- func (x *LPFilterQuery) GetEventIdlJson() []bytedeprecated
- func (x *LPFilterQuery) GetEventName() string
- func (x *LPFilterQuery) GetEventSig() []byte
- func (x *LPFilterQuery) GetIncludeReverted() bool
- func (x *LPFilterQuery) GetMaxLogsKept() int64
- func (x *LPFilterQuery) GetName() string
- func (x *LPFilterQuery) GetRetention() int64
- func (x *LPFilterQuery) GetStartingBlock() int64
- func (x *LPFilterQuery) GetSubkeyPaths() []*Subkeys
- func (*LPFilterQuery) ProtoMessage()
- func (x *LPFilterQuery) ProtoReflect() protoreflect.Message
- func (x *LPFilterQuery) Reset()
- func (x *LPFilterQuery) String() string
- type LoadedAddresses
- func (*LoadedAddresses) Descriptor() ([]byte, []int)deprecated
- func (x *LoadedAddresses) GetReadonly() [][]byte
- func (x *LoadedAddresses) GetWritable() [][]byte
- func (*LoadedAddresses) ProtoMessage()
- func (x *LoadedAddresses) ProtoReflect() protoreflect.Message
- func (x *LoadedAddresses) Reset()
- func (x *LoadedAddresses) String() string
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetAddress() []byte
- func (x *Log) GetBlockHash() []byte
- func (x *Log) GetBlockNumber() int64
- func (x *Log) GetBlockTimestamp() uint64
- func (x *Log) GetChainId() string
- func (x *Log) GetData() []byte
- func (x *Log) GetError() string
- func (x *Log) GetEventSig() []byte
- func (x *Log) GetLogIndex() int64
- func (x *Log) GetSequenceNum() int64
- func (x *Log) GetTxHash() []byte
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type MessageHeader
- func (*MessageHeader) Descriptor() ([]byte, []int)deprecated
- func (x *MessageHeader) GetNumReadonlySignedAccounts() uint32
- func (x *MessageHeader) GetNumReadonlyUnsignedAccounts() uint32
- func (x *MessageHeader) GetNumRequiredSignatures() uint32
- func (*MessageHeader) ProtoMessage()
- func (x *MessageHeader) ProtoReflect() protoreflect.Message
- func (x *MessageHeader) Reset()
- func (x *MessageHeader) String() string
- type OptionalAccountWrapper
- func (*OptionalAccountWrapper) Descriptor() ([]byte, []int)deprecated
- func (x *OptionalAccountWrapper) GetAccount() *Account
- func (*OptionalAccountWrapper) ProtoMessage()
- func (x *OptionalAccountWrapper) ProtoReflect() protoreflect.Message
- func (x *OptionalAccountWrapper) Reset()
- func (x *OptionalAccountWrapper) String() string
- type ParsedMessage
- func (*ParsedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ParsedMessage) GetAccountKeys() [][]byte
- func (x *ParsedMessage) GetHeader() *MessageHeader
- func (x *ParsedMessage) GetInstructions() []*CompiledInstruction
- func (x *ParsedMessage) GetRecentBlockhash() []byte
- func (*ParsedMessage) ProtoMessage()
- func (x *ParsedMessage) ProtoReflect() protoreflect.Message
- func (x *ParsedMessage) Reset()
- func (x *ParsedMessage) String() string
- type ParsedTransaction
- func (*ParsedTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *ParsedTransaction) GetMessage() *ParsedMessage
- func (x *ParsedTransaction) GetSignatures() [][]byte
- func (*ParsedTransaction) ProtoMessage()
- func (x *ParsedTransaction) ProtoReflect() protoreflect.Message
- func (x *ParsedTransaction) Reset()
- func (x *ParsedTransaction) String() string
- type Primitive
- func (*Primitive) Descriptor() ([]byte, []int)deprecated
- func (x *Primitive) GetAddress() []byte
- func (x *Primitive) GetEventBySubkey() *EventBySubkey
- func (x *Primitive) GetEventSig() []byte
- func (x *Primitive) GetGeneralPrimitive() *chain_common.Primitive
- func (x *Primitive) GetPrimitive() isPrimitive_Primitive
- func (*Primitive) ProtoMessage()
- func (x *Primitive) ProtoReflect() protoreflect.Message
- func (x *Primitive) Reset()
- func (x *Primitive) String() string
- type Primitive_Address
- type Primitive_EventBySubkey
- type Primitive_EventSig
- type Primitive_GeneralPrimitive
- type QueryTrackedLogsReply
- func (*QueryTrackedLogsReply) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTrackedLogsReply) GetLogs() []*Log
- func (*QueryTrackedLogsReply) ProtoMessage()
- func (x *QueryTrackedLogsReply) ProtoReflect() protoreflect.Message
- func (x *QueryTrackedLogsReply) Reset()
- func (x *QueryTrackedLogsReply) String() string
- type QueryTrackedLogsRequest
- func (*QueryTrackedLogsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTrackedLogsRequest) GetFilterQuery() []*Expression
- func (x *QueryTrackedLogsRequest) GetLimitAndSort() *chain_common.LimitAndSort
- func (*QueryTrackedLogsRequest) ProtoMessage()
- func (x *QueryTrackedLogsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTrackedLogsRequest) Reset()
- func (x *QueryTrackedLogsRequest) String() string
- type RPCContext
- type RegisterLogTrackingReply
- type RegisterLogTrackingRequest
- func (*RegisterLogTrackingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterLogTrackingRequest) GetFilter() *LPFilterQuery
- func (*RegisterLogTrackingRequest) ProtoMessage()
- func (x *RegisterLogTrackingRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterLogTrackingRequest) Reset()
- func (x *RegisterLogTrackingRequest) String() string
- type ReturnData
- type SimulateTXOpts
- func (*SimulateTXOpts) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateTXOpts) GetAccounts() *SimulateTransactionAccountsOpts
- func (x *SimulateTXOpts) GetCommitment() CommitmentType
- func (x *SimulateTXOpts) GetReplaceRecentBlockhash() bool
- func (x *SimulateTXOpts) GetSigVerify() bool
- func (*SimulateTXOpts) ProtoMessage()
- func (x *SimulateTXOpts) ProtoReflect() protoreflect.Message
- func (x *SimulateTXOpts) Reset()
- func (x *SimulateTXOpts) String() string
- type SimulateTXReply
- func (*SimulateTXReply) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateTXReply) GetAccounts() []*Account
- func (x *SimulateTXReply) GetErr() string
- func (x *SimulateTXReply) GetLogs() []string
- func (x *SimulateTXReply) GetUnitsConsumed() uint64
- func (*SimulateTXReply) ProtoMessage()
- func (x *SimulateTXReply) ProtoReflect() protoreflect.Message
- func (x *SimulateTXReply) Reset()
- func (x *SimulateTXReply) String() string
- type SimulateTXRequest
- func (*SimulateTXRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateTXRequest) GetEncodedTransaction() string
- func (x *SimulateTXRequest) GetOpts() *SimulateTXOpts
- func (x *SimulateTXRequest) GetReceiver() []byte
- func (*SimulateTXRequest) ProtoMessage()
- func (x *SimulateTXRequest) ProtoReflect() protoreflect.Message
- func (x *SimulateTXRequest) Reset()
- func (x *SimulateTXRequest) String() string
- type SimulateTransactionAccountsOpts
- func (*SimulateTransactionAccountsOpts) Descriptor() ([]byte, []int)deprecated
- func (x *SimulateTransactionAccountsOpts) GetAddresses() [][]byte
- func (x *SimulateTransactionAccountsOpts) GetEncoding() EncodingType
- func (*SimulateTransactionAccountsOpts) ProtoMessage()
- func (x *SimulateTransactionAccountsOpts) ProtoReflect() protoreflect.Message
- func (x *SimulateTransactionAccountsOpts) Reset()
- func (x *SimulateTransactionAccountsOpts) String() string
- type SolanaClient
- type SolanaServer
- type Subkeys
- type SubmitTransactionReply
- func (*SubmitTransactionReply) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTransactionReply) GetIdempotencyKey() string
- func (x *SubmitTransactionReply) GetSignature() []byte
- func (x *SubmitTransactionReply) GetStatus() TxStatus
- func (*SubmitTransactionReply) ProtoMessage()
- func (x *SubmitTransactionReply) ProtoReflect() protoreflect.Message
- func (x *SubmitTransactionReply) Reset()
- func (x *SubmitTransactionReply) String() string
- type SubmitTransactionRequest
- func (*SubmitTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTransactionRequest) GetCfg() *ComputeConfig
- func (x *SubmitTransactionRequest) GetEncodedTransaction() string
- func (x *SubmitTransactionRequest) GetReceiver() []byte
- func (*SubmitTransactionRequest) ProtoMessage()
- func (x *SubmitTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitTransactionRequest) Reset()
- func (x *SubmitTransactionRequest) String() string
- type TokenBalance
- func (*TokenBalance) Descriptor() ([]byte, []int)deprecated
- func (x *TokenBalance) GetAccountIndex() uint32
- func (x *TokenBalance) GetMint() []byte
- func (x *TokenBalance) GetOwner() []byte
- func (x *TokenBalance) GetProgramId() []byte
- func (x *TokenBalance) GetUi() *UiTokenAmount
- func (*TokenBalance) ProtoMessage()
- func (x *TokenBalance) ProtoReflect() protoreflect.Message
- func (x *TokenBalance) Reset()
- func (x *TokenBalance) String() string
- type TransactionEnvelope
- func (*TransactionEnvelope) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionEnvelope) GetParsed() *ParsedTransaction
- func (x *TransactionEnvelope) GetRaw() []byte
- func (x *TransactionEnvelope) GetTransaction() isTransactionEnvelope_Transaction
- func (*TransactionEnvelope) ProtoMessage()
- func (x *TransactionEnvelope) ProtoReflect() protoreflect.Message
- func (x *TransactionEnvelope) Reset()
- func (x *TransactionEnvelope) String() string
- type TransactionEnvelope_Parsed
- type TransactionEnvelope_Raw
- type TransactionMeta
- func (*TransactionMeta) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionMeta) GetComputeUnitsConsumed() uint64
- func (x *TransactionMeta) GetErrJson() string
- func (x *TransactionMeta) GetFee() uint64
- func (x *TransactionMeta) GetInnerInstructions() []*InnerInstruction
- func (x *TransactionMeta) GetLoadedAddresses() *LoadedAddresses
- func (x *TransactionMeta) GetLogMessages() []string
- func (x *TransactionMeta) GetPostBalances() []uint64
- func (x *TransactionMeta) GetPostTokenBalances() []*TokenBalance
- func (x *TransactionMeta) GetPreBalances() []uint64
- func (x *TransactionMeta) GetPreTokenBalances() []*TokenBalance
- func (x *TransactionMeta) GetReturnData() *ReturnData
- func (*TransactionMeta) ProtoMessage()
- func (x *TransactionMeta) ProtoReflect() protoreflect.Message
- func (x *TransactionMeta) Reset()
- func (x *TransactionMeta) String() string
- type TxStatus
- type UiTokenAmount
- func (*UiTokenAmount) Descriptor() ([]byte, []int)deprecated
- func (x *UiTokenAmount) GetAmount() string
- func (x *UiTokenAmount) GetDecimals() uint32
- func (x *UiTokenAmount) GetUiAmountString() string
- func (*UiTokenAmount) ProtoMessage()
- func (x *UiTokenAmount) ProtoReflect() protoreflect.Message
- func (x *UiTokenAmount) Reset()
- func (x *UiTokenAmount) String() string
- type UnimplementedSolanaServer
- func (UnimplementedSolanaServer) GetAccountInfoWithOpts(context.Context, *GetAccountInfoWithOptsRequest) (*GetAccountInfoWithOptsReply, error)
- func (UnimplementedSolanaServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceReply, error)
- func (UnimplementedSolanaServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockReply, error)
- func (UnimplementedSolanaServer) GetFeeForMessage(context.Context, *GetFeeForMessageRequest) (*GetFeeForMessageReply, error)
- func (UnimplementedSolanaServer) GetLatestLPBlock(context.Context, *emptypb.Empty) (*GetLatestLPBlockReply, error)
- func (UnimplementedSolanaServer) GetMultipleAccountsWithOpts(context.Context, *GetMultipleAccountsWithOptsRequest) (*GetMultipleAccountsWithOptsReply, error)
- func (UnimplementedSolanaServer) GetSignatureStatuses(context.Context, *GetSignatureStatusesRequest) (*GetSignatureStatusesReply, error)
- func (UnimplementedSolanaServer) GetSlotHeight(context.Context, *GetSlotHeightRequest) (*GetSlotHeightReply, error)
- func (UnimplementedSolanaServer) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionReply, error)
- func (UnimplementedSolanaServer) QueryTrackedLogs(context.Context, *QueryTrackedLogsRequest) (*QueryTrackedLogsReply, error)
- func (UnimplementedSolanaServer) RegisterLogTracking(context.Context, *RegisterLogTrackingRequest) (*RegisterLogTrackingReply, error)
- func (UnimplementedSolanaServer) SimulateTX(context.Context, *SimulateTXRequest) (*SimulateTXReply, error)
- func (UnimplementedSolanaServer) SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionReply, error)
- func (UnimplementedSolanaServer) UnregisterLogTracking(context.Context, *UnregisterLogTrackingRequest) (*UnregisterLogTrackingReply, error)
- type UnregisterLogTrackingReply
- type UnregisterLogTrackingRequest
- func (*UnregisterLogTrackingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterLogTrackingRequest) GetFilterName() string
- func (*UnregisterLogTrackingRequest) ProtoMessage()
- func (x *UnregisterLogTrackingRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterLogTrackingRequest) Reset()
- func (x *UnregisterLogTrackingRequest) String() string
- type UnsafeSolanaServer
Constants ¶
const ( Solana_GetAccountInfoWithOpts_FullMethodName = "/loop.solana.Solana/GetAccountInfoWithOpts" Solana_GetBalance_FullMethodName = "/loop.solana.Solana/GetBalance" Solana_GetBlock_FullMethodName = "/loop.solana.Solana/GetBlock" Solana_GetFeeForMessage_FullMethodName = "/loop.solana.Solana/GetFeeForMessage" Solana_GetMultipleAccountsWithOpts_FullMethodName = "/loop.solana.Solana/GetMultipleAccountsWithOpts" Solana_GetSignatureStatuses_FullMethodName = "/loop.solana.Solana/GetSignatureStatuses" Solana_GetSlotHeight_FullMethodName = "/loop.solana.Solana/GetSlotHeight" Solana_GetTransaction_FullMethodName = "/loop.solana.Solana/GetTransaction" Solana_QueryTrackedLogs_FullMethodName = "/loop.solana.Solana/QueryTrackedLogs" Solana_RegisterLogTracking_FullMethodName = "/loop.solana.Solana/RegisterLogTracking" Solana_SimulateTX_FullMethodName = "/loop.solana.Solana/SimulateTX" Solana_SubmitTransaction_FullMethodName = "/loop.solana.Solana/SubmitTransaction" Solana_UnregisterLogTracking_FullMethodName = "/loop.solana.Solana/UnregisterLogTracking" Solana_GetLatestLPBlock_FullMethodName = "/loop.solana.Solana/GetLatestLPBlock" )
Variables ¶
var ( EncodingType_name = map[int32]string{ 0: "ENCODING_TYPE_NONE", 1: "ENCODING_TYPE_BASE58", 2: "ENCODING_TYPE_BASE64", 3: "ENCODING_TYPE_BASE64_ZSTD", 4: "ENCODING_TYPE_JSON_PARSED", 5: "ENCODING_TYPE_JSON", } EncodingType_value = map[string]int32{ "ENCODING_TYPE_NONE": 0, "ENCODING_TYPE_BASE58": 1, "ENCODING_TYPE_BASE64": 2, "ENCODING_TYPE_BASE64_ZSTD": 3, "ENCODING_TYPE_JSON_PARSED": 4, "ENCODING_TYPE_JSON": 5, } )
Enum value maps for EncodingType.
var ( CommitmentType_name = map[int32]string{ 0: "COMMITMENT_TYPE_NONE", 1: "COMMITMENT_TYPE_FINALIZED", 2: "COMMITMENT_TYPE_CONFIRMED", 3: "COMMITMENT_TYPE_PROCESSED", } CommitmentType_value = map[string]int32{ "COMMITMENT_TYPE_NONE": 0, "COMMITMENT_TYPE_FINALIZED": 1, "COMMITMENT_TYPE_CONFIRMED": 2, "COMMITMENT_TYPE_PROCESSED": 3, } )
Enum value maps for CommitmentType.
var ( ConfirmationStatusType_name = map[int32]string{ 0: "CONFIRMATION_STATUS_TYPE_NONE", 1: "CONFIRMATION_STATUS_TYPE_PROCESSED", 2: "CONFIRMATION_STATUS_TYPE_CONFIRMED", 3: "CONFIRMATION_STATUS_TYPE_FINALIZED", } ConfirmationStatusType_value = map[string]int32{ "CONFIRMATION_STATUS_TYPE_NONE": 0, "CONFIRMATION_STATUS_TYPE_PROCESSED": 1, "CONFIRMATION_STATUS_TYPE_CONFIRMED": 2, "CONFIRMATION_STATUS_TYPE_FINALIZED": 3, } )
Enum value maps for ConfirmationStatusType.
var ( TxStatus_name = map[int32]string{ 0: "TX_STATUS_FATAL", 1: "TX_STATUS_ABORTED", 2: "TX_STATUS_SUCCESS", } TxStatus_value = map[string]int32{ "TX_STATUS_FATAL": 0, "TX_STATUS_ABORTED": 1, "TX_STATUS_SUCCESS": 2, } )
Enum value maps for TxStatus.
var File_solana_proto protoreflect.FileDescriptor
var Solana_ServiceDesc = grpc.ServiceDesc{ ServiceName: "loop.solana.Solana", HandlerType: (*SolanaServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAccountInfoWithOpts", Handler: _Solana_GetAccountInfoWithOpts_Handler, }, { MethodName: "GetBalance", Handler: _Solana_GetBalance_Handler, }, { MethodName: "GetBlock", Handler: _Solana_GetBlock_Handler, }, { MethodName: "GetFeeForMessage", Handler: _Solana_GetFeeForMessage_Handler, }, { MethodName: "GetMultipleAccountsWithOpts", Handler: _Solana_GetMultipleAccountsWithOpts_Handler, }, { MethodName: "GetSignatureStatuses", Handler: _Solana_GetSignatureStatuses_Handler, }, { MethodName: "GetSlotHeight", Handler: _Solana_GetSlotHeight_Handler, }, { MethodName: "GetTransaction", Handler: _Solana_GetTransaction_Handler, }, { MethodName: "QueryTrackedLogs", Handler: _Solana_QueryTrackedLogs_Handler, }, { MethodName: "RegisterLogTracking", Handler: _Solana_RegisterLogTracking_Handler, }, { MethodName: "SimulateTX", Handler: _Solana_SimulateTX_Handler, }, { MethodName: "SubmitTransaction", Handler: _Solana_SubmitTransaction_Handler, }, { MethodName: "UnregisterLogTracking", Handler: _Solana_UnregisterLogTracking_Handler, }, { MethodName: "GetLatestLPBlock", Handler: _Solana_GetLatestLPBlock_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "solana.proto", }
Solana_ServiceDesc is the grpc.ServiceDesc for Solana service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ConvertAccountFromProto ¶
func ConvertAccountFromProto(p *Account) (*typesolana.Account, error)
func ConvertCommitmentFromProto ¶
func ConvertCommitmentFromProto(c CommitmentType) typesolana.CommitmentType
func ConvertCompiledInstructionFromProto ¶
func ConvertCompiledInstructionFromProto(p *CompiledInstruction) typesolana.CompiledInstruction
func ConvertComputeConfigFromProto ¶
func ConvertComputeConfigFromProto(p *ComputeConfig) *typesolana.ComputeConfig
func ConvertConfirmationStatusFromProto ¶
func ConvertConfirmationStatusFromProto(c ConfirmationStatusType) typesolana.ConfirmationStatusType
func ConvertDataBytesOrJSONFromProto ¶
func ConvertDataBytesOrJSONFromProto(p *DataBytesOrJSON) *typesolana.DataBytesOrJSON
func ConvertDataSliceFromProto ¶
func ConvertDataSliceFromProto(p *DataSlice) *typesolana.DataSlice
func ConvertEncodingTypeFromProto ¶
func ConvertEncodingTypeFromProto(e EncodingType) typesolana.EncodingType
func ConvertEventSigFromProto ¶
func ConvertEventSigFromProto(b []byte) (typesolana.EventSignature, error)
func ConvertExpressionsFromProto ¶
func ConvertExpressionsFromProto(protoExpressions []*Expression) ([]query.Expression, error)
func ConvertGetAccountInfoOptsFromProto ¶
func ConvertGetAccountInfoOptsFromProto(p *GetAccountInfoOpts) *typesolana.GetAccountInfoOpts
func ConvertGetBalanceReplyFromProto ¶
func ConvertGetBalanceReplyFromProto(p *GetBalanceReply) *typesolana.GetBalanceReply
func ConvertGetBalanceRequestFromProto ¶
func ConvertGetBalanceRequestFromProto(p *GetBalanceRequest) (typesolana.GetBalanceRequest, error)
func ConvertGetBlockOptsFromProto ¶
func ConvertGetBlockOptsFromProto(p *GetBlockOpts) *typesolana.GetBlockOpts
func ConvertGetBlockOptsReplyFromProto ¶
func ConvertGetBlockOptsReplyFromProto(p *GetBlockReply) (*typesolana.GetBlockReply, error)
func ConvertGetBlockRequestFromProto ¶
func ConvertGetBlockRequestFromProto(p *GetBlockRequest) *typesolana.GetBlockRequest
func ConvertGetFeeForMessageReplyFromProto ¶
func ConvertGetFeeForMessageReplyFromProto(p *GetFeeForMessageReply) *typesolana.GetFeeForMessageReply
func ConvertGetFeeForMessageRequestFromProto ¶
func ConvertGetFeeForMessageRequestFromProto(p *GetFeeForMessageRequest) *typesolana.GetFeeForMessageRequest
func ConvertGetMultipleAccountsOptsFromProto ¶
func ConvertGetMultipleAccountsOptsFromProto(p *GetMultipleAccountsOpts) *typesolana.GetMultipleAccountsOpts
func ConvertGetMultipleAccountsReplyFromProto ¶
func ConvertGetMultipleAccountsReplyFromProto(p *GetMultipleAccountsWithOptsReply) (*typesolana.GetMultipleAccountsReply, error)
func ConvertGetMultipleAccountsRequestFromProto ¶
func ConvertGetMultipleAccountsRequestFromProto(p *GetMultipleAccountsWithOptsRequest) *typesolana.GetMultipleAccountsRequest
func ConvertGetSignatureStatusesReplyFromProto ¶
func ConvertGetSignatureStatusesReplyFromProto(p *GetSignatureStatusesReply) *typesolana.GetSignatureStatusesReply
func ConvertGetSignatureStatusesRequestFromProto ¶
func ConvertGetSignatureStatusesRequestFromProto(p *GetSignatureStatusesRequest) (*typesolana.GetSignatureStatusesRequest, error)
func ConvertGetSlotHeightReplyFromProto ¶
func ConvertGetSlotHeightReplyFromProto(p *GetSlotHeightReply) *typesolana.GetSlotHeightReply
func ConvertGetSlotHeightRequestFromProto ¶
func ConvertGetSlotHeightRequestFromProto(p *GetSlotHeightRequest) typesolana.GetSlotHeightRequest
func ConvertGetTransactionReplyFromProto ¶
func ConvertGetTransactionReplyFromProto(p *GetTransactionReply) (*typesolana.GetTransactionReply, error)
func ConvertGetTransactionRequestFromProto ¶
func ConvertGetTransactionRequestFromProto(p *GetTransactionRequest) (typesolana.GetTransactionRequest, error)
func ConvertHashFromProto ¶
func ConvertHashFromProto(b []byte) (typesolana.Hash, error)
func ConvertInnerInstructionFromProto ¶
func ConvertInnerInstructionFromProto(p *InnerInstruction) typesolana.InnerInstruction
func ConvertLPFilterQueryFromProto ¶
func ConvertLPFilterQueryFromProto(p *LPFilterQuery) (*typesolana.LPFilterQuery, error)
func ConvertLoadedAddressesFromProto ¶
func ConvertLoadedAddressesFromProto(p *LoadedAddresses) typesolana.LoadedAddresses
func ConvertLogFromProto ¶
func ConvertLogFromProto(p *Log) (*typesolana.Log, error)
func ConvertMessageHeaderFromProto ¶
func ConvertMessageHeaderFromProto(p *MessageHeader) typesolana.MessageHeader
func ConvertParsedMessageFromProto ¶
func ConvertParsedMessageFromProto(p *ParsedMessage) (typesolana.Message, error)
func ConvertParsedTransactionFromProto ¶
func ConvertParsedTransactionFromProto(p *ParsedTransaction) (typesolana.Transaction, error)
func ConvertPublicKeyFromProto ¶
func ConvertPublicKeyFromProto(b []byte) (typesolana.PublicKey, error)
func ConvertPublicKeysFromProto ¶
func ConvertPublicKeysFromProto(pubKeys [][]byte) ([]typesolana.PublicKey, error)
func ConvertPublicKeysToProto ¶
func ConvertPublicKeysToProto(keys []typesolana.PublicKey) [][]byte
func ConvertRPCContextFromProto ¶
func ConvertRPCContextFromProto(p *RPCContext) typesolana.RPCContext
func ConvertReturnDataFromProto ¶
func ConvertReturnDataFromProto(p *ReturnData) (*typesolana.ReturnData, error)
func ConvertSignatureFromProto ¶
func ConvertSignatureFromProto(b []byte) (typesolana.Signature, error)
func ConvertSignaturesFromProto ¶
func ConvertSignaturesFromProto(arr [][]byte) ([]typesolana.Signature, error)
func ConvertSignaturesToProto ¶
func ConvertSignaturesToProto(sigs []typesolana.Signature) [][]byte
func ConvertSimulateTXOptsFromProto ¶
func ConvertSimulateTXOptsFromProto(p *SimulateTXOpts) *typesolana.SimulateTXOpts
func ConvertSimulateTXReplyFromProto ¶
func ConvertSimulateTXReplyFromProto(p *SimulateTXReply) (*typesolana.SimulateTXReply, error)
func ConvertSimulateTXRequestFromProto ¶
func ConvertSimulateTXRequestFromProto(p *SimulateTXRequest) (typesolana.SimulateTXRequest, error)
func ConvertSimulateTransactionAccountsOptsFromProto ¶
func ConvertSimulateTransactionAccountsOptsFromProto(p *SimulateTransactionAccountsOpts) *typesolana.SimulateTransactionAccountsOpts
func ConvertSubmitTransactionReplyFromProto ¶
func ConvertSubmitTransactionReplyFromProto(p *SubmitTransactionReply) (*typesolana.SubmitTransactionReply, error)
func ConvertSubmitTransactionRequestFromProto ¶
func ConvertSubmitTransactionRequestFromProto(p *SubmitTransactionRequest) (typesolana.SubmitTransactionRequest, error)
func ConvertTokenBalanceFromProto ¶
func ConvertTokenBalanceFromProto(p *TokenBalance) (*typesolana.TokenBalance, error)
func ConvertTransactionEnvelopeFromProto ¶
func ConvertTransactionEnvelopeFromProto(p *TransactionEnvelope) (typesolana.TransactionResultEnvelope, error)
func ConvertTransactionMetaFromProto ¶
func ConvertTransactionMetaFromProto(p *TransactionMeta) (*typesolana.TransactionMeta, error)
func ConvertUiTokenAmountFromProto ¶
func ConvertUiTokenAmountFromProto(p *UiTokenAmount) *typesolana.UiTokenAmount
func ConvertValueCompraratorsFromProto ¶
func ConvertValueCompraratorsFromProto(comparators []*IndexedValueComparator) []solprimitives.IndexedValueComparator
func RegisterSolanaServer ¶
func RegisterSolanaServer(s grpc.ServiceRegistrar, srv SolanaServer)
func ValidatePublicKeyBytes ¶
func ValidateSignatureBytes ¶
Types ¶
type Account ¶
type Account struct {
Lamports uint64 `protobuf:"varint,1,opt,name=lamports,proto3" json:"lamports,omitempty"` // balance in lamports (1e-9 SOL)
Owner []byte `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // 32-byte program id (Pubkey)
Data *DataBytesOrJSON `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // account data (encoded or JSON)
Executable bool `protobuf:"varint,4,opt,name=executable,proto3" json:"executable,omitempty"` // true if this is a program account
RentEpoch *pb.BigInt `protobuf:"bytes,5,opt,name=rent_epoch,json=rentEpoch,proto3" json:"rent_epoch,omitempty"` // next rent epoch
Space uint64 `protobuf:"varint,6,opt,name=space,proto3" json:"space,omitempty"` // data length in bytes
// contains filtered or unexported fields
}
On-chain account state.
func ConvertAccountToProto ¶
func ConvertAccountToProto(a *typesolana.Account) *Account
func (*Account) Descriptor
deprecated
func (*Account) GetData ¶
func (x *Account) GetData() *DataBytesOrJSON
func (*Account) GetExecutable ¶
func (*Account) GetLamports ¶
func (*Account) GetRentEpoch ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type BooleanExpression ¶
type BooleanExpression struct {
BooleanOperator chain_common.BooleanOperator `` // AND/OR
/* 146-byte string literal not displayed */
Expression []*Expression `protobuf:"bytes,2,rep,name=expression,proto3" json:"expression,omitempty"`
// contains filtered or unexported fields
}
Boolean composition over expressions.
func (*BooleanExpression) Descriptor
deprecated
func (*BooleanExpression) Descriptor() ([]byte, []int)
Deprecated: Use BooleanExpression.ProtoReflect.Descriptor instead.
func (*BooleanExpression) GetBooleanOperator ¶
func (x *BooleanExpression) GetBooleanOperator() chain_common.BooleanOperator
func (*BooleanExpression) GetExpression ¶
func (x *BooleanExpression) GetExpression() []*Expression
func (*BooleanExpression) ProtoMessage ¶
func (*BooleanExpression) ProtoMessage()
func (*BooleanExpression) ProtoReflect ¶
func (x *BooleanExpression) ProtoReflect() protoreflect.Message
func (*BooleanExpression) Reset ¶
func (x *BooleanExpression) Reset()
func (*BooleanExpression) String ¶
func (x *BooleanExpression) String() string
type CommitmentType ¶
type CommitmentType int32
Read consistency of queried state.
const ( CommitmentType_COMMITMENT_TYPE_NONE CommitmentType = 0 CommitmentType_COMMITMENT_TYPE_FINALIZED CommitmentType = 1 // cluster-finalized CommitmentType_COMMITMENT_TYPE_CONFIRMED CommitmentType = 2 // voted by supermajority CommitmentType_COMMITMENT_TYPE_PROCESSED CommitmentType = 3 // node’s latest )
func ConvertCommitmentToProto ¶
func ConvertCommitmentToProto(c typesolana.CommitmentType) CommitmentType
func (CommitmentType) Descriptor ¶
func (CommitmentType) Descriptor() protoreflect.EnumDescriptor
func (CommitmentType) Enum ¶
func (x CommitmentType) Enum() *CommitmentType
func (CommitmentType) EnumDescriptor
deprecated
func (CommitmentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CommitmentType.Descriptor instead.
func (CommitmentType) Number ¶
func (x CommitmentType) Number() protoreflect.EnumNumber
func (CommitmentType) String ¶
func (x CommitmentType) String() string
func (CommitmentType) Type ¶
func (CommitmentType) Type() protoreflect.EnumType
type CompiledInstruction ¶
type CompiledInstruction struct {
ProgramIdIndex uint32 `protobuf:"varint,1,opt,name=program_id_index,json=programIdIndex,proto3" json:"program_id_index,omitempty"` // index into account_keys
Accounts []uint32 `protobuf:"varint,2,rep,packed,name=accounts,proto3" json:"accounts,omitempty"` // indices into account_keys
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // program input bytes
StackHeight uint32 `protobuf:"varint,4,opt,name=stack_height,json=stackHeight,proto3" json:"stack_height,omitempty"` // if recorded by node
// contains filtered or unexported fields
}
Compiled (program) instruction.
func ConvertCompiledInstructionToProto ¶
func ConvertCompiledInstructionToProto(ci typesolana.CompiledInstruction) *CompiledInstruction
func (*CompiledInstruction) Descriptor
deprecated
func (*CompiledInstruction) Descriptor() ([]byte, []int)
Deprecated: Use CompiledInstruction.ProtoReflect.Descriptor instead.
func (*CompiledInstruction) GetAccounts ¶
func (x *CompiledInstruction) GetAccounts() []uint32
func (*CompiledInstruction) GetData ¶
func (x *CompiledInstruction) GetData() []byte
func (*CompiledInstruction) GetProgramIdIndex ¶
func (x *CompiledInstruction) GetProgramIdIndex() uint32
func (*CompiledInstruction) GetStackHeight ¶
func (x *CompiledInstruction) GetStackHeight() uint32
func (*CompiledInstruction) ProtoMessage ¶
func (*CompiledInstruction) ProtoMessage()
func (*CompiledInstruction) ProtoReflect ¶
func (x *CompiledInstruction) ProtoReflect() protoreflect.Message
func (*CompiledInstruction) Reset ¶
func (x *CompiledInstruction) Reset()
func (*CompiledInstruction) String ¶
func (x *CompiledInstruction) String() string
type ComputeConfig ¶
type ComputeConfig struct {
ComputeLimit uint32 `protobuf:"varint,1,opt,name=compute_limit,json=computeLimit,proto3" json:"compute_limit,omitempty"` // max CUs (approx per-tx limit)
ComputeMaxPrice uint64 `protobuf:"varint,2,opt,name=compute_max_price,json=computeMaxPrice,proto3" json:"compute_max_price,omitempty"` // max lamports per CU
// contains filtered or unexported fields
}
Compute budget configuration when submitting txs.
func ConvertComputeConfigToProto ¶
func ConvertComputeConfigToProto(c *typesolana.ComputeConfig) *ComputeConfig
func (*ComputeConfig) Descriptor
deprecated
func (*ComputeConfig) Descriptor() ([]byte, []int)
Deprecated: Use ComputeConfig.ProtoReflect.Descriptor instead.
func (*ComputeConfig) GetComputeLimit ¶
func (x *ComputeConfig) GetComputeLimit() uint32
func (*ComputeConfig) GetComputeMaxPrice ¶
func (x *ComputeConfig) GetComputeMaxPrice() uint64
func (*ComputeConfig) ProtoMessage ¶
func (*ComputeConfig) ProtoMessage()
func (*ComputeConfig) ProtoReflect ¶
func (x *ComputeConfig) ProtoReflect() protoreflect.Message
func (*ComputeConfig) Reset ¶
func (x *ComputeConfig) Reset()
func (*ComputeConfig) String ¶
func (x *ComputeConfig) String() string
type ConfirmationStatusType ¶
type ConfirmationStatusType int32
Cluster confirmation status of a tx/signature.
const ( ConfirmationStatusType_CONFIRMATION_STATUS_TYPE_NONE ConfirmationStatusType = 0 ConfirmationStatusType_CONFIRMATION_STATUS_TYPE_PROCESSED ConfirmationStatusType = 1 ConfirmationStatusType_CONFIRMATION_STATUS_TYPE_CONFIRMED ConfirmationStatusType = 2 ConfirmationStatusType_CONFIRMATION_STATUS_TYPE_FINALIZED ConfirmationStatusType = 3 )
func ConvertConfirmationStatusToProto ¶
func ConvertConfirmationStatusToProto(c typesolana.ConfirmationStatusType) ConfirmationStatusType
func (ConfirmationStatusType) Descriptor ¶
func (ConfirmationStatusType) Descriptor() protoreflect.EnumDescriptor
func (ConfirmationStatusType) Enum ¶
func (x ConfirmationStatusType) Enum() *ConfirmationStatusType
func (ConfirmationStatusType) EnumDescriptor
deprecated
func (ConfirmationStatusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfirmationStatusType.Descriptor instead.
func (ConfirmationStatusType) Number ¶
func (x ConfirmationStatusType) Number() protoreflect.EnumNumber
func (ConfirmationStatusType) String ¶
func (x ConfirmationStatusType) String() string
func (ConfirmationStatusType) Type ¶
func (ConfirmationStatusType) Type() protoreflect.EnumType
type Data ¶
type Data struct {
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // raw bytes
Encoding EncodingType `protobuf:"varint,2,opt,name=encoding,proto3,enum=loop.solana.EncodingType" json:"encoding,omitempty"` // how it was encoded originally
// contains filtered or unexported fields
}
Raw bytes with encoding tag.
func (*Data) Descriptor
deprecated
func (*Data) GetContent ¶
func (*Data) GetEncoding ¶
func (x *Data) GetEncoding() EncodingType
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type DataBytesOrJSON ¶
type DataBytesOrJSON struct {
Encoding EncodingType `protobuf:"varint,1,opt,name=encoding,proto3,enum=loop.solana.EncodingType" json:"encoding,omitempty"`
// Types that are valid to be assigned to Body:
//
// *DataBytesOrJSON_Raw
// *DataBytesOrJSON_Json
Body isDataBytesOrJSON_Body `protobuf_oneof:"body"`
// contains filtered or unexported fields
}
Raw bytes vs parsed JSON (as returned by RPC).
func ConvertDataBytesOrJSONToProto ¶
func ConvertDataBytesOrJSONToProto(d *typesolana.DataBytesOrJSON) *DataBytesOrJSON
func (*DataBytesOrJSON) Descriptor
deprecated
func (*DataBytesOrJSON) Descriptor() ([]byte, []int)
Deprecated: Use DataBytesOrJSON.ProtoReflect.Descriptor instead.
func (*DataBytesOrJSON) GetBody ¶
func (x *DataBytesOrJSON) GetBody() isDataBytesOrJSON_Body
func (*DataBytesOrJSON) GetEncoding ¶
func (x *DataBytesOrJSON) GetEncoding() EncodingType
func (*DataBytesOrJSON) GetJson ¶
func (x *DataBytesOrJSON) GetJson() []byte
func (*DataBytesOrJSON) GetRaw ¶
func (x *DataBytesOrJSON) GetRaw() []byte
func (*DataBytesOrJSON) ProtoMessage ¶
func (*DataBytesOrJSON) ProtoMessage()
func (*DataBytesOrJSON) ProtoReflect ¶
func (x *DataBytesOrJSON) ProtoReflect() protoreflect.Message
func (*DataBytesOrJSON) Reset ¶
func (x *DataBytesOrJSON) Reset()
func (*DataBytesOrJSON) String ¶
func (x *DataBytesOrJSON) String() string
type DataBytesOrJSON_Json ¶
type DataBytesOrJSON_Json struct {
Json []byte `protobuf:"bytes,3,opt,name=json,proto3,oneof"` // json: UTF-8 bytes of the jsonParsed payload.
}
type DataBytesOrJSON_Raw ¶
type DataBytesOrJSON_Raw struct {
Raw []byte `protobuf:"bytes,2,opt,name=raw,proto3,oneof"` // program data (node’s base64/base58 decoded)
}
type DataSlice ¶
type DataSlice struct {
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // start byte
Length uint64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` // number of bytes
// contains filtered or unexported fields
}
Return a slice of account data.
func ConvertDataSliceToProto ¶
func ConvertDataSliceToProto(d *typesolana.DataSlice) *DataSlice
func (*DataSlice) Descriptor
deprecated
func (*DataSlice) ProtoMessage ¶
func (*DataSlice) ProtoMessage()
func (*DataSlice) ProtoReflect ¶
func (x *DataSlice) ProtoReflect() protoreflect.Message
type EncodingType ¶
type EncodingType int32
Account/tx data encodings.
const ( EncodingType_ENCODING_TYPE_NONE EncodingType = 0 EncodingType_ENCODING_TYPE_BASE58 EncodingType = 1 // for data <129 bytes EncodingType_ENCODING_TYPE_BASE64 EncodingType = 2 // any size EncodingType_ENCODING_TYPE_BASE64_ZSTD EncodingType = 3 // zstd-compressed, base64-wrapped EncodingType_ENCODING_TYPE_JSON_PARSED EncodingType = 4 // program parsers; fallback to base64 if unknown EncodingType_ENCODING_TYPE_JSON EncodingType = 5 // raw JSON (rare; prefer JSON_PARSED) )
func ConvertEncodingTypeToProto ¶
func ConvertEncodingTypeToProto(e typesolana.EncodingType) EncodingType
func (EncodingType) Descriptor ¶
func (EncodingType) Descriptor() protoreflect.EnumDescriptor
func (EncodingType) Enum ¶
func (x EncodingType) Enum() *EncodingType
func (EncodingType) EnumDescriptor
deprecated
func (EncodingType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EncodingType.Descriptor instead.
func (EncodingType) Number ¶
func (x EncodingType) Number() protoreflect.EnumNumber
func (EncodingType) String ¶
func (x EncodingType) String() string
func (EncodingType) Type ¶
func (EncodingType) Type() protoreflect.EnumType
type EventBySubkey ¶
type EventBySubkey struct {
SubkeyIndex uint64 `protobuf:"varint,1,opt,name=subkey_index,json=subkeyIndex,proto3" json:"subkey_index,omitempty"` // path element index
ValueComparers []*IndexedValueComparator `protobuf:"bytes,2,rep,name=value_comparers,json=valueComparers,proto3" json:"value_comparers,omitempty"`
// contains filtered or unexported fields
}
Filter events by a subkey path.
func (*EventBySubkey) Descriptor
deprecated
func (*EventBySubkey) Descriptor() ([]byte, []int)
Deprecated: Use EventBySubkey.ProtoReflect.Descriptor instead.
func (*EventBySubkey) GetSubkeyIndex ¶
func (x *EventBySubkey) GetSubkeyIndex() uint64
func (*EventBySubkey) GetValueComparers ¶
func (x *EventBySubkey) GetValueComparers() []*IndexedValueComparator
func (*EventBySubkey) ProtoMessage ¶
func (*EventBySubkey) ProtoMessage()
func (*EventBySubkey) ProtoReflect ¶
func (x *EventBySubkey) ProtoReflect() protoreflect.Message
func (*EventBySubkey) Reset ¶
func (x *EventBySubkey) Reset()
func (*EventBySubkey) String ¶
func (x *EventBySubkey) String() string
type EventSig ¶
type EventSig struct {
Topic uint64 `protobuf:"varint,1,opt,name=topic,proto3" json:"topic,omitempty"` // topic index
HashedValueComparers []*HashedValueComparator `protobuf:"bytes,2,rep,name=hashed_value_comparers,json=hashedValueComparers,proto3" json:"hashed_value_comparers,omitempty"` // comparisons
// contains filtered or unexported fields
}
Event/topic filter by hashed value(s).
func (*EventSig) Descriptor
deprecated
func (*EventSig) GetHashedValueComparers ¶
func (x *EventSig) GetHashedValueComparers() []*HashedValueComparator
func (*EventSig) ProtoMessage ¶
func (*EventSig) ProtoMessage()
func (*EventSig) ProtoReflect ¶
func (x *EventSig) ProtoReflect() protoreflect.Message
type Expression ¶
type Expression struct {
// Types that are valid to be assigned to Evaluator:
//
// *Expression_Primitive
// *Expression_BooleanExpression
Evaluator isExpression_Evaluator `protobuf_oneof:"evaluator"`
// contains filtered or unexported fields
}
Expression tree wrapper.
func ConvertExpressionsToProto ¶
func ConvertExpressionsToProto(expressions []query.Expression) ([]*Expression, error)
func (*Expression) Descriptor
deprecated
func (*Expression) Descriptor() ([]byte, []int)
Deprecated: Use Expression.ProtoReflect.Descriptor instead.
func (*Expression) GetBooleanExpression ¶
func (x *Expression) GetBooleanExpression() *BooleanExpression
func (*Expression) GetEvaluator ¶
func (x *Expression) GetEvaluator() isExpression_Evaluator
func (*Expression) GetPrimitive ¶
func (x *Expression) GetPrimitive() *Primitive
func (*Expression) ProtoMessage ¶
func (*Expression) ProtoMessage()
func (*Expression) ProtoReflect ¶
func (x *Expression) ProtoReflect() protoreflect.Message
func (*Expression) Reset ¶
func (x *Expression) Reset()
func (*Expression) String ¶
func (x *Expression) String() string
type Expression_BooleanExpression ¶
type Expression_BooleanExpression struct {
BooleanExpression *BooleanExpression `protobuf:"bytes,2,opt,name=boolean_expression,json=booleanExpression,proto3,oneof"` // AND/OR of expressions
}
type Expression_Primitive ¶
type Expression_Primitive struct {
Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` // leaf filter
}
type GetAccountInfoOpts ¶
type GetAccountInfoOpts struct {
Encoding EncodingType `protobuf:"varint,1,opt,name=encoding,proto3,enum=loop.solana.EncodingType" json:"encoding,omitempty"` // data encoding
Commitment CommitmentType `protobuf:"varint,2,opt,name=commitment,proto3,enum=loop.solana.CommitmentType" json:"commitment,omitempty"` // read consistency
DataSlice *DataSlice `protobuf:"bytes,3,opt,name=data_slice,json=dataSlice,proto3" json:"data_slice,omitempty"` // optional slice window
MinContextSlot uint64 `protobuf:"varint,4,opt,name=min_context_slot,json=minContextSlot,proto3" json:"min_context_slot,omitempty"` // lower bound slot
// contains filtered or unexported fields
}
Options for GetAccountInfo.
func ConvertGetAccountInfoOptsToProto ¶
func ConvertGetAccountInfoOptsToProto(o *typesolana.GetAccountInfoOpts) *GetAccountInfoOpts
func (*GetAccountInfoOpts) Descriptor
deprecated
func (*GetAccountInfoOpts) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountInfoOpts.ProtoReflect.Descriptor instead.
func (*GetAccountInfoOpts) GetCommitment ¶
func (x *GetAccountInfoOpts) GetCommitment() CommitmentType
func (*GetAccountInfoOpts) GetDataSlice ¶
func (x *GetAccountInfoOpts) GetDataSlice() *DataSlice
func (*GetAccountInfoOpts) GetEncoding ¶
func (x *GetAccountInfoOpts) GetEncoding() EncodingType
func (*GetAccountInfoOpts) GetMinContextSlot ¶
func (x *GetAccountInfoOpts) GetMinContextSlot() uint64
func (*GetAccountInfoOpts) ProtoMessage ¶
func (*GetAccountInfoOpts) ProtoMessage()
func (*GetAccountInfoOpts) ProtoReflect ¶
func (x *GetAccountInfoOpts) ProtoReflect() protoreflect.Message
func (*GetAccountInfoOpts) Reset ¶
func (x *GetAccountInfoOpts) Reset()
func (*GetAccountInfoOpts) String ¶
func (x *GetAccountInfoOpts) String() string
type GetAccountInfoWithOptsReply ¶
type GetAccountInfoWithOptsReply struct {
RpcContext *RPCContext `protobuf:"bytes,1,opt,name=rpc_context,json=rpcContext,proto3" json:"rpc_context,omitempty"` // read slot
Value *Account `protobuf:"bytes,2,opt,name=value,proto3,oneof" json:"value,omitempty"` // account (may be empty)
// contains filtered or unexported fields
}
Reply for GetAccountInfoWithOpts.
func (*GetAccountInfoWithOptsReply) Descriptor
deprecated
func (*GetAccountInfoWithOptsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountInfoWithOptsReply.ProtoReflect.Descriptor instead.
func (*GetAccountInfoWithOptsReply) GetRpcContext ¶
func (x *GetAccountInfoWithOptsReply) GetRpcContext() *RPCContext
func (*GetAccountInfoWithOptsReply) GetValue ¶
func (x *GetAccountInfoWithOptsReply) GetValue() *Account
func (*GetAccountInfoWithOptsReply) ProtoMessage ¶
func (*GetAccountInfoWithOptsReply) ProtoMessage()
func (*GetAccountInfoWithOptsReply) ProtoReflect ¶
func (x *GetAccountInfoWithOptsReply) ProtoReflect() protoreflect.Message
func (*GetAccountInfoWithOptsReply) Reset ¶
func (x *GetAccountInfoWithOptsReply) Reset()
func (*GetAccountInfoWithOptsReply) String ¶
func (x *GetAccountInfoWithOptsReply) String() string
type GetAccountInfoWithOptsRequest ¶
type GetAccountInfoWithOptsRequest struct {
Account []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // 32-byte Pubkey
Opts *GetAccountInfoOpts `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"`
// contains filtered or unexported fields
}
Request for GetAccountInfoWithOpts.
func (*GetAccountInfoWithOptsRequest) Descriptor
deprecated
func (*GetAccountInfoWithOptsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountInfoWithOptsRequest.ProtoReflect.Descriptor instead.
func (*GetAccountInfoWithOptsRequest) GetAccount ¶
func (x *GetAccountInfoWithOptsRequest) GetAccount() []byte
func (*GetAccountInfoWithOptsRequest) GetOpts ¶
func (x *GetAccountInfoWithOptsRequest) GetOpts() *GetAccountInfoOpts
func (*GetAccountInfoWithOptsRequest) ProtoMessage ¶
func (*GetAccountInfoWithOptsRequest) ProtoMessage()
func (*GetAccountInfoWithOptsRequest) ProtoReflect ¶
func (x *GetAccountInfoWithOptsRequest) ProtoReflect() protoreflect.Message
func (*GetAccountInfoWithOptsRequest) Reset ¶
func (x *GetAccountInfoWithOptsRequest) Reset()
func (*GetAccountInfoWithOptsRequest) String ¶
func (x *GetAccountInfoWithOptsRequest) String() string
type GetBalanceReply ¶
type GetBalanceReply struct {
Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // lamports
// contains filtered or unexported fields
}
Reply for GetBalance.
func ConvertGetBalanceReplyToProto ¶
func ConvertGetBalanceReplyToProto(r *typesolana.GetBalanceReply) *GetBalanceReply
func (*GetBalanceReply) Descriptor
deprecated
func (*GetBalanceReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceReply.ProtoReflect.Descriptor instead.
func (*GetBalanceReply) GetValue ¶
func (x *GetBalanceReply) GetValue() uint64
func (*GetBalanceReply) ProtoMessage ¶
func (*GetBalanceReply) ProtoMessage()
func (*GetBalanceReply) ProtoReflect ¶
func (x *GetBalanceReply) ProtoReflect() protoreflect.Message
func (*GetBalanceReply) Reset ¶
func (x *GetBalanceReply) Reset()
func (*GetBalanceReply) String ¶
func (x *GetBalanceReply) String() string
type GetBalanceRequest ¶
type GetBalanceRequest struct {
Addr []byte `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // 32-byte Pubkey
Commitment CommitmentType `protobuf:"varint,2,opt,name=commitment,proto3,enum=loop.solana.CommitmentType" json:"commitment,omitempty"` // read consistency
// contains filtered or unexported fields
}
Request for GetBalance.
func ConvertGetBalanceRequestToProto ¶
func ConvertGetBalanceRequestToProto(r typesolana.GetBalanceRequest) *GetBalanceRequest
func (*GetBalanceRequest) Descriptor
deprecated
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetBalanceRequest) GetAddr ¶
func (x *GetBalanceRequest) GetAddr() []byte
func (*GetBalanceRequest) GetCommitment ¶
func (x *GetBalanceRequest) GetCommitment() CommitmentType
func (*GetBalanceRequest) ProtoMessage ¶
func (*GetBalanceRequest) ProtoMessage()
func (*GetBalanceRequest) ProtoReflect ¶
func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message
func (*GetBalanceRequest) Reset ¶
func (x *GetBalanceRequest) Reset()
func (*GetBalanceRequest) String ¶
func (x *GetBalanceRequest) String() string
type GetBlockOpts ¶
type GetBlockOpts struct {
Commitment CommitmentType `protobuf:"varint,4,opt,name=commitment,proto3,enum=loop.solana.CommitmentType" json:"commitment,omitempty"` // read consistency
// contains filtered or unexported fields
}
Options for GetBlock.
func ConvertGetBlockOptsToProto ¶
func ConvertGetBlockOptsToProto(o *typesolana.GetBlockOpts) *GetBlockOpts
func (*GetBlockOpts) Descriptor
deprecated
func (*GetBlockOpts) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockOpts.ProtoReflect.Descriptor instead.
func (*GetBlockOpts) GetCommitment ¶
func (x *GetBlockOpts) GetCommitment() CommitmentType
func (*GetBlockOpts) ProtoMessage ¶
func (*GetBlockOpts) ProtoMessage()
func (*GetBlockOpts) ProtoReflect ¶
func (x *GetBlockOpts) ProtoReflect() protoreflect.Message
func (*GetBlockOpts) Reset ¶
func (x *GetBlockOpts) Reset()
func (*GetBlockOpts) String ¶
func (x *GetBlockOpts) String() string
type GetBlockReply ¶
type GetBlockReply struct {
Blockhash []byte `protobuf:"bytes,1,opt,name=blockhash,proto3" json:"blockhash,omitempty"` // 32-byte block hash
PreviousBlockhash []byte `protobuf:"bytes,2,opt,name=previous_blockhash,json=previousBlockhash,proto3" json:"previous_blockhash,omitempty"` // 32-byte parent hash
ParentSlot uint64 `protobuf:"varint,3,opt,name=parent_slot,json=parentSlot,proto3" json:"parent_slot,omitempty"`
BlockTime *int64 `protobuf:"varint,4,opt,name=block_time,json=blockTime,proto3,oneof" json:"block_time,omitempty"` // unix seconds, node may not report it
BlockHeight uint64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // chain height
// contains filtered or unexported fields
}
Block response.
func ConvertGetBlockReplyToProto ¶
func ConvertGetBlockReplyToProto(r *typesolana.GetBlockReply) *GetBlockReply
func (*GetBlockReply) Descriptor
deprecated
func (*GetBlockReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockReply.ProtoReflect.Descriptor instead.
func (*GetBlockReply) GetBlockHeight ¶
func (x *GetBlockReply) GetBlockHeight() uint64
func (*GetBlockReply) GetBlockTime ¶
func (x *GetBlockReply) GetBlockTime() int64
func (*GetBlockReply) GetBlockhash ¶
func (x *GetBlockReply) GetBlockhash() []byte
func (*GetBlockReply) GetParentSlot ¶
func (x *GetBlockReply) GetParentSlot() uint64
func (*GetBlockReply) GetPreviousBlockhash ¶
func (x *GetBlockReply) GetPreviousBlockhash() []byte
func (*GetBlockReply) ProtoMessage ¶
func (*GetBlockReply) ProtoMessage()
func (*GetBlockReply) ProtoReflect ¶
func (x *GetBlockReply) ProtoReflect() protoreflect.Message
func (*GetBlockReply) Reset ¶
func (x *GetBlockReply) Reset()
func (*GetBlockReply) String ¶
func (x *GetBlockReply) String() string
type GetBlockRequest ¶
type GetBlockRequest struct {
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` // target slot
Opts *GetBlockOpts `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"`
// contains filtered or unexported fields
}
Request for GetBlock.
func ConvertGetBlockRequestToProto ¶
func ConvertGetBlockRequestToProto(r *typesolana.GetBlockRequest) *GetBlockRequest
func (*GetBlockRequest) Descriptor
deprecated
func (*GetBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.
func (*GetBlockRequest) GetOpts ¶
func (x *GetBlockRequest) GetOpts() *GetBlockOpts
func (*GetBlockRequest) GetSlot ¶
func (x *GetBlockRequest) GetSlot() uint64
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) ProtoReflect ¶
func (x *GetBlockRequest) ProtoReflect() protoreflect.Message
func (*GetBlockRequest) Reset ¶
func (x *GetBlockRequest) Reset()
func (*GetBlockRequest) String ¶
func (x *GetBlockRequest) String() string
type GetFeeForMessageReply ¶
type GetFeeForMessageReply struct {
Fee uint64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"` // lamports
// contains filtered or unexported fields
}
Fee quote for a base58-encoded Message.
func ConvertGetFeeForMessageReplyToProto ¶
func ConvertGetFeeForMessageReplyToProto(r *typesolana.GetFeeForMessageReply) *GetFeeForMessageReply
func (*GetFeeForMessageReply) Descriptor
deprecated
func (*GetFeeForMessageReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFeeForMessageReply.ProtoReflect.Descriptor instead.
func (*GetFeeForMessageReply) GetFee ¶
func (x *GetFeeForMessageReply) GetFee() uint64
func (*GetFeeForMessageReply) ProtoMessage ¶
func (*GetFeeForMessageReply) ProtoMessage()
func (*GetFeeForMessageReply) ProtoReflect ¶
func (x *GetFeeForMessageReply) ProtoReflect() protoreflect.Message
func (*GetFeeForMessageReply) Reset ¶
func (x *GetFeeForMessageReply) Reset()
func (*GetFeeForMessageReply) String ¶
func (x *GetFeeForMessageReply) String() string
type GetFeeForMessageRequest ¶
type GetFeeForMessageRequest struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // must be base58-encoded Message
Commitment CommitmentType `protobuf:"varint,2,opt,name=commitment,proto3,enum=loop.solana.CommitmentType" json:"commitment,omitempty"` // read consistency
// contains filtered or unexported fields
}
func ConvertGetFeeForMessageRequestToProto ¶
func ConvertGetFeeForMessageRequestToProto(r *typesolana.GetFeeForMessageRequest) *GetFeeForMessageRequest
func (*GetFeeForMessageRequest) Descriptor
deprecated
func (*GetFeeForMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFeeForMessageRequest.ProtoReflect.Descriptor instead.
func (*GetFeeForMessageRequest) GetCommitment ¶
func (x *GetFeeForMessageRequest) GetCommitment() CommitmentType
func (*GetFeeForMessageRequest) GetMessage ¶
func (x *GetFeeForMessageRequest) GetMessage() string
func (*GetFeeForMessageRequest) ProtoMessage ¶
func (*GetFeeForMessageRequest) ProtoMessage()
func (*GetFeeForMessageRequest) ProtoReflect ¶
func (x *GetFeeForMessageRequest) ProtoReflect() protoreflect.Message
func (*GetFeeForMessageRequest) Reset ¶
func (x *GetFeeForMessageRequest) Reset()
func (*GetFeeForMessageRequest) String ¶
func (x *GetFeeForMessageRequest) String() string
type GetLatestLPBlockReply ¶
type GetLatestLPBlockReply struct {
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` // block slot
// contains filtered or unexported fields
}
latest block processed by lp
func (*GetLatestLPBlockReply) Descriptor
deprecated
func (*GetLatestLPBlockReply) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestLPBlockReply.ProtoReflect.Descriptor instead.
func (*GetLatestLPBlockReply) GetSlot ¶
func (x *GetLatestLPBlockReply) GetSlot() uint64
func (*GetLatestLPBlockReply) ProtoMessage ¶
func (*GetLatestLPBlockReply) ProtoMessage()
func (*GetLatestLPBlockReply) ProtoReflect ¶
func (x *GetLatestLPBlockReply) ProtoReflect() protoreflect.Message
func (*GetLatestLPBlockReply) Reset ¶
func (x *GetLatestLPBlockReply) Reset()
func (*GetLatestLPBlockReply) String ¶
func (x *GetLatestLPBlockReply) String() string
type GetMultipleAccountsOpts ¶
type GetMultipleAccountsOpts struct {
Encoding EncodingType `protobuf:"varint,1,opt,name=encoding,proto3,enum=loop.solana.EncodingType" json:"encoding,omitempty"`
Commitment CommitmentType `protobuf:"varint,2,opt,name=commitment,proto3,enum=loop.solana.CommitmentType" json:"commitment,omitempty"`
DataSlice *DataSlice `protobuf:"bytes,3,opt,name=data_slice,json=dataSlice,proto3" json:"data_slice,omitempty"`
MinContextSlot uint64 `protobuf:"varint,4,opt,name=min_context_slot,json=minContextSlot,proto3" json:"min_context_slot,omitempty"`
// contains filtered or unexported fields
}
Options for GetMultipleAccounts.
func ConvertGetMultipleAccountsOptsToProto ¶
func ConvertGetMultipleAccountsOptsToProto(o *typesolana.GetMultipleAccountsOpts) *GetMultipleAccountsOpts
func (*GetMultipleAccountsOpts) Descriptor
deprecated
func (*GetMultipleAccountsOpts) Descriptor() ([]byte, []int)
Deprecated: Use GetMultipleAccountsOpts.ProtoReflect.Descriptor instead.
func (*GetMultipleAccountsOpts) GetCommitment ¶
func (x *GetMultipleAccountsOpts) GetCommitment() CommitmentType
func (*GetMultipleAccountsOpts) GetDataSlice ¶
func (x *GetMultipleAccountsOpts) GetDataSlice() *DataSlice
func (*GetMultipleAccountsOpts) GetEncoding ¶
func (x *GetMultipleAccountsOpts) GetEncoding() EncodingType
func (*GetMultipleAccountsOpts) GetMinContextSlot ¶
func (x *GetMultipleAccountsOpts) GetMinContextSlot() uint64
func (*GetMultipleAccountsOpts) ProtoMessage ¶
func (*GetMultipleAccountsOpts) ProtoMessage()
func (*GetMultipleAccountsOpts) ProtoReflect ¶
func (x *GetMultipleAccountsOpts) ProtoReflect() protoreflect.Message
func (*GetMultipleAccountsOpts) Reset ¶
func (x *GetMultipleAccountsOpts) Reset()
func (*GetMultipleAccountsOpts) String ¶
func (x *GetMultipleAccountsOpts) String() string
type GetMultipleAccountsWithOptsReply ¶
type GetMultipleAccountsWithOptsReply struct {
RpcContext *RPCContext `protobuf:"bytes,1,opt,name=rpc_context,json=rpcContext,proto3" json:"rpc_context,omitempty"` // read slot
Value []*OptionalAccountWrapper `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"` // accounts (nil entries allowed)
// contains filtered or unexported fields
}
Reply for GetMultipleAccountsWithOpts.
func ConvertGetMultipleAccountsReplyToProto ¶
func ConvertGetMultipleAccountsReplyToProto(r *typesolana.GetMultipleAccountsReply) *GetMultipleAccountsWithOptsReply
func (*GetMultipleAccountsWithOptsReply) Descriptor
deprecated
func (*GetMultipleAccountsWithOptsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetMultipleAccountsWithOptsReply.ProtoReflect.Descriptor instead.
func (*GetMultipleAccountsWithOptsReply) GetRpcContext ¶
func (x *GetMultipleAccountsWithOptsReply) GetRpcContext() *RPCContext
func (*GetMultipleAccountsWithOptsReply) GetValue ¶
func (x *GetMultipleAccountsWithOptsReply) GetValue() []*OptionalAccountWrapper
func (*GetMultipleAccountsWithOptsReply) ProtoMessage ¶
func (*GetMultipleAccountsWithOptsReply) ProtoMessage()
func (*GetMultipleAccountsWithOptsReply) ProtoReflect ¶
func (x *GetMultipleAccountsWithOptsReply) ProtoReflect() protoreflect.Message
func (*GetMultipleAccountsWithOptsReply) Reset ¶
func (x *GetMultipleAccountsWithOptsReply) Reset()
func (*GetMultipleAccountsWithOptsReply) String ¶
func (x *GetMultipleAccountsWithOptsReply) String() string
type GetMultipleAccountsWithOptsRequest ¶
type GetMultipleAccountsWithOptsRequest struct {
Accounts [][]byte `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // list of 32-byte Pubkeys
Opts *GetMultipleAccountsOpts `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"`
// contains filtered or unexported fields
}
Request for GetMultipleAccountsWithOpts.
func ConvertGetMultipleAccountsRequestToProto ¶
func ConvertGetMultipleAccountsRequestToProto(r *typesolana.GetMultipleAccountsRequest) *GetMultipleAccountsWithOptsRequest
func (*GetMultipleAccountsWithOptsRequest) Descriptor
deprecated
func (*GetMultipleAccountsWithOptsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMultipleAccountsWithOptsRequest.ProtoReflect.Descriptor instead.
func (*GetMultipleAccountsWithOptsRequest) GetAccounts ¶
func (x *GetMultipleAccountsWithOptsRequest) GetAccounts() [][]byte
func (*GetMultipleAccountsWithOptsRequest) GetOpts ¶
func (x *GetMultipleAccountsWithOptsRequest) GetOpts() *GetMultipleAccountsOpts
func (*GetMultipleAccountsWithOptsRequest) ProtoMessage ¶
func (*GetMultipleAccountsWithOptsRequest) ProtoMessage()
func (*GetMultipleAccountsWithOptsRequest) ProtoReflect ¶
func (x *GetMultipleAccountsWithOptsRequest) ProtoReflect() protoreflect.Message
func (*GetMultipleAccountsWithOptsRequest) Reset ¶
func (x *GetMultipleAccountsWithOptsRequest) Reset()
func (*GetMultipleAccountsWithOptsRequest) String ¶
func (x *GetMultipleAccountsWithOptsRequest) String() string
type GetSignatureStatusesReply ¶
type GetSignatureStatusesReply struct {
Results []*GetSignatureStatusesResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // 1:1 with input
// contains filtered or unexported fields
}
Reply for GetSignatureStatuses.
func ConvertGetSignatureStatusesReplyToProto ¶
func ConvertGetSignatureStatusesReplyToProto(r *typesolana.GetSignatureStatusesReply) *GetSignatureStatusesReply
func (*GetSignatureStatusesReply) Descriptor
deprecated
func (*GetSignatureStatusesReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSignatureStatusesReply.ProtoReflect.Descriptor instead.
func (*GetSignatureStatusesReply) GetResults ¶
func (x *GetSignatureStatusesReply) GetResults() []*GetSignatureStatusesResult
func (*GetSignatureStatusesReply) ProtoMessage ¶
func (*GetSignatureStatusesReply) ProtoMessage()
func (*GetSignatureStatusesReply) ProtoReflect ¶
func (x *GetSignatureStatusesReply) ProtoReflect() protoreflect.Message
func (*GetSignatureStatusesReply) Reset ¶
func (x *GetSignatureStatusesReply) Reset()
func (*GetSignatureStatusesReply) String ¶
func (x *GetSignatureStatusesReply) String() string
type GetSignatureStatusesRequest ¶
type GetSignatureStatusesRequest struct {
Sigs [][]byte `protobuf:"bytes,1,rep,name=sigs,proto3" json:"sigs,omitempty"` // 64-byte signatures
// contains filtered or unexported fields
}
Request for GetSignatureStatuses.
func ConvertGetSignatureStatusesRequestToProto ¶
func ConvertGetSignatureStatusesRequestToProto(r *typesolana.GetSignatureStatusesRequest) *GetSignatureStatusesRequest
func (*GetSignatureStatusesRequest) Descriptor
deprecated
func (*GetSignatureStatusesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSignatureStatusesRequest.ProtoReflect.Descriptor instead.
func (*GetSignatureStatusesRequest) GetSigs ¶
func (x *GetSignatureStatusesRequest) GetSigs() [][]byte
func (*GetSignatureStatusesRequest) ProtoMessage ¶
func (*GetSignatureStatusesRequest) ProtoMessage()
func (*GetSignatureStatusesRequest) ProtoReflect ¶
func (x *GetSignatureStatusesRequest) ProtoReflect() protoreflect.Message
func (*GetSignatureStatusesRequest) Reset ¶
func (x *GetSignatureStatusesRequest) Reset()
func (*GetSignatureStatusesRequest) String ¶
func (x *GetSignatureStatusesRequest) String() string
type GetSignatureStatusesResult ¶
type GetSignatureStatusesResult struct {
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` // processed slot
Confirmations *uint64 `protobuf:"varint,2,opt,name=confirmations,proto3,oneof" json:"confirmations,omitempty"` // null->0 here
Err string `protobuf:"bytes,3,opt,name=err,proto3" json:"err,omitempty"` // error JSON string (empty on success)
ConfirmationStatus ConfirmationStatusType `` /* 156-byte string literal not displayed */
// contains filtered or unexported fields
}
Per-signature status.
func (*GetSignatureStatusesResult) Descriptor
deprecated
func (*GetSignatureStatusesResult) Descriptor() ([]byte, []int)
Deprecated: Use GetSignatureStatusesResult.ProtoReflect.Descriptor instead.
func (*GetSignatureStatusesResult) GetConfirmationStatus ¶
func (x *GetSignatureStatusesResult) GetConfirmationStatus() ConfirmationStatusType
func (*GetSignatureStatusesResult) GetConfirmations ¶
func (x *GetSignatureStatusesResult) GetConfirmations() uint64
func (*GetSignatureStatusesResult) GetErr ¶
func (x *GetSignatureStatusesResult) GetErr() string
func (*GetSignatureStatusesResult) GetSlot ¶
func (x *GetSignatureStatusesResult) GetSlot() uint64
func (*GetSignatureStatusesResult) ProtoMessage ¶
func (*GetSignatureStatusesResult) ProtoMessage()
func (*GetSignatureStatusesResult) ProtoReflect ¶
func (x *GetSignatureStatusesResult) ProtoReflect() protoreflect.Message
func (*GetSignatureStatusesResult) Reset ¶
func (x *GetSignatureStatusesResult) Reset()
func (*GetSignatureStatusesResult) String ¶
func (x *GetSignatureStatusesResult) String() string
type GetSlotHeightReply ¶
type GetSlotHeightReply struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
Current “height” (blocks below latest).
func ConvertGetSlotHeightReplyToProto ¶
func ConvertGetSlotHeightReplyToProto(r *typesolana.GetSlotHeightReply) *GetSlotHeightReply
func (*GetSlotHeightReply) Descriptor
deprecated
func (*GetSlotHeightReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSlotHeightReply.ProtoReflect.Descriptor instead.
func (*GetSlotHeightReply) GetHeight ¶
func (x *GetSlotHeightReply) GetHeight() uint64
func (*GetSlotHeightReply) ProtoMessage ¶
func (*GetSlotHeightReply) ProtoMessage()
func (*GetSlotHeightReply) ProtoReflect ¶
func (x *GetSlotHeightReply) ProtoReflect() protoreflect.Message
func (*GetSlotHeightReply) Reset ¶
func (x *GetSlotHeightReply) Reset()
func (*GetSlotHeightReply) String ¶
func (x *GetSlotHeightReply) String() string
type GetSlotHeightRequest ¶
type GetSlotHeightRequest struct {
Commitment CommitmentType `protobuf:"varint,1,opt,name=commitment,proto3,enum=loop.solana.CommitmentType" json:"commitment,omitempty"` // read consistency
// contains filtered or unexported fields
}
func ConvertGetSlotHeightRequestToProto ¶
func ConvertGetSlotHeightRequestToProto(r typesolana.GetSlotHeightRequest) *GetSlotHeightRequest
func (*GetSlotHeightRequest) Descriptor
deprecated
func (*GetSlotHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSlotHeightRequest.ProtoReflect.Descriptor instead.
func (*GetSlotHeightRequest) GetCommitment ¶
func (x *GetSlotHeightRequest) GetCommitment() CommitmentType
func (*GetSlotHeightRequest) ProtoMessage ¶
func (*GetSlotHeightRequest) ProtoMessage()
func (*GetSlotHeightRequest) ProtoReflect ¶
func (x *GetSlotHeightRequest) ProtoReflect() protoreflect.Message
func (*GetSlotHeightRequest) Reset ¶
func (x *GetSlotHeightRequest) Reset()
func (*GetSlotHeightRequest) String ¶
func (x *GetSlotHeightRequest) String() string
type GetTransactionReply ¶
type GetTransactionReply struct {
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` // processed slot
BlockTime *int64 `protobuf:"varint,2,opt,name=block_time,json=blockTime,proto3,oneof" json:"block_time,omitempty"` // unix seconds
Transaction *TransactionEnvelope `protobuf:"bytes,3,opt,name=transaction,proto3,oneof" json:"transaction,omitempty"` // tx bytes or parsed
Meta *TransactionMeta `protobuf:"bytes,4,opt,name=meta,proto3,oneof" json:"meta,omitempty"` // may be omitted by node
// contains filtered or unexported fields
}
GetTransaction reply.
func ConvertGetTransactionReplyToProto ¶
func ConvertGetTransactionReplyToProto(r *typesolana.GetTransactionReply) *GetTransactionReply
func (*GetTransactionReply) Descriptor
deprecated
func (*GetTransactionReply) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionReply.ProtoReflect.Descriptor instead.
func (*GetTransactionReply) GetBlockTime ¶
func (x *GetTransactionReply) GetBlockTime() int64
func (*GetTransactionReply) GetMeta ¶
func (x *GetTransactionReply) GetMeta() *TransactionMeta
func (*GetTransactionReply) GetSlot ¶
func (x *GetTransactionReply) GetSlot() uint64
func (*GetTransactionReply) GetTransaction ¶
func (x *GetTransactionReply) GetTransaction() *TransactionEnvelope
func (*GetTransactionReply) ProtoMessage ¶
func (*GetTransactionReply) ProtoMessage()
func (*GetTransactionReply) ProtoReflect ¶
func (x *GetTransactionReply) ProtoReflect() protoreflect.Message
func (*GetTransactionReply) Reset ¶
func (x *GetTransactionReply) Reset()
func (*GetTransactionReply) String ¶
func (x *GetTransactionReply) String() string
type GetTransactionRequest ¶
type GetTransactionRequest struct {
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // 64-byte signature
// contains filtered or unexported fields
}
GetTransaction request.
func ConvertGetTransactionRequestToProto ¶
func ConvertGetTransactionRequestToProto(r typesolana.GetTransactionRequest) *GetTransactionRequest
func (*GetTransactionRequest) Descriptor
deprecated
func (*GetTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetTransactionRequest) GetSignature ¶
func (x *GetTransactionRequest) GetSignature() []byte
func (*GetTransactionRequest) ProtoMessage ¶
func (*GetTransactionRequest) ProtoMessage()
func (*GetTransactionRequest) ProtoReflect ¶
func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetTransactionRequest) Reset ¶
func (x *GetTransactionRequest) Reset()
func (*GetTransactionRequest) String ¶
func (x *GetTransactionRequest) String() string
type HashedValueComparator ¶
type HashedValueComparator struct {
Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // hashed bytes
Operator int64 `protobuf:"varint,2,opt,name=operator,proto3" json:"operator,omitempty"` // comparison op
// contains filtered or unexported fields
}
Comparator against hashed values.
func (*HashedValueComparator) Descriptor
deprecated
func (*HashedValueComparator) Descriptor() ([]byte, []int)
Deprecated: Use HashedValueComparator.ProtoReflect.Descriptor instead.
func (*HashedValueComparator) GetOperator ¶
func (x *HashedValueComparator) GetOperator() int64
func (*HashedValueComparator) GetValues ¶
func (x *HashedValueComparator) GetValues() [][]byte
func (*HashedValueComparator) ProtoMessage ¶
func (*HashedValueComparator) ProtoMessage()
func (*HashedValueComparator) ProtoReflect ¶
func (x *HashedValueComparator) ProtoReflect() protoreflect.Message
func (*HashedValueComparator) Reset ¶
func (x *HashedValueComparator) Reset()
func (*HashedValueComparator) String ¶
func (x *HashedValueComparator) String() string
type IndexedValueComparator ¶
type IndexedValueComparator struct {
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // raw bytes
Operator chain_common.ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.chain.common.ComparisonOperator" json:"operator,omitempty"` // eq/lt/gt etc.
// contains filtered or unexported fields
}
Comparator for a single indexed value.
func ConvertValueComparatorsToProto ¶
func ConvertValueComparatorsToProto(comparators []solprimitives.IndexedValueComparator) []*IndexedValueComparator
func (*IndexedValueComparator) Descriptor
deprecated
func (*IndexedValueComparator) Descriptor() ([]byte, []int)
Deprecated: Use IndexedValueComparator.ProtoReflect.Descriptor instead.
func (*IndexedValueComparator) GetOperator ¶
func (x *IndexedValueComparator) GetOperator() chain_common.ComparisonOperator
func (*IndexedValueComparator) GetValue ¶
func (x *IndexedValueComparator) GetValue() []byte
func (*IndexedValueComparator) ProtoMessage ¶
func (*IndexedValueComparator) ProtoMessage()
func (*IndexedValueComparator) ProtoReflect ¶
func (x *IndexedValueComparator) ProtoReflect() protoreflect.Message
func (*IndexedValueComparator) Reset ¶
func (x *IndexedValueComparator) Reset()
func (*IndexedValueComparator) String ¶
func (x *IndexedValueComparator) String() string
type InnerInstruction ¶
type InnerInstruction struct {
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // outer ix index
Instructions []*CompiledInstruction `protobuf:"bytes,2,rep,name=instructions,proto3" json:"instructions,omitempty"` // invoked ixs
// contains filtered or unexported fields
}
Inner instruction list at a given outer instruction index.
func ConvertInnerInstructionToProto ¶
func ConvertInnerInstructionToProto(ii typesolana.InnerInstruction) *InnerInstruction
func (*InnerInstruction) Descriptor
deprecated
func (*InnerInstruction) Descriptor() ([]byte, []int)
Deprecated: Use InnerInstruction.ProtoReflect.Descriptor instead.
func (*InnerInstruction) GetIndex ¶
func (x *InnerInstruction) GetIndex() uint32
func (*InnerInstruction) GetInstructions ¶
func (x *InnerInstruction) GetInstructions() []*CompiledInstruction
func (*InnerInstruction) ProtoMessage ¶
func (*InnerInstruction) ProtoMessage()
func (*InnerInstruction) ProtoReflect ¶
func (x *InnerInstruction) ProtoReflect() protoreflect.Message
func (*InnerInstruction) Reset ¶
func (x *InnerInstruction) Reset()
func (*InnerInstruction) String ¶
func (x *InnerInstruction) String() string
type LPFilterQuery ¶
type LPFilterQuery struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // filter name/id
Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // 32-byte program id
EventName string `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` // optional label
EventSig []byte `protobuf:"bytes,4,opt,name=event_sig,json=eventSig,proto3" json:"event_sig,omitempty"` // 8-byte event discriminator
StartingBlock int64 `protobuf:"varint,5,opt,name=starting_block,json=startingBlock,proto3" json:"starting_block,omitempty"` // start slot
// Deprecated: Marked as deprecated in solana.proto.
EventIdlJson []byte `protobuf:"bytes,6,opt,name=event_idl_json,json=eventIdlJson,proto3" json:"event_idl_json,omitempty"` // event IDL JSON bytes
SubkeyPaths []*Subkeys `protobuf:"bytes,7,rep,name=subkey_paths,json=subkeyPaths,proto3" json:"subkey_paths,omitempty"` // subkey selectors
Retention int64 `protobuf:"varint,8,opt,name=retention,proto3" json:"retention,omitempty"` // seconds to keep logs
MaxLogsKept int64 `protobuf:"varint,9,opt,name=max_logs_kept,json=maxLogsKept,proto3" json:"max_logs_kept,omitempty"` // 0 = unlimited
IncludeReverted bool `protobuf:"varint,10,opt,name=include_reverted,json=includeReverted,proto3" json:"include_reverted,omitempty"` // include rolled-back
ContractIdlJson []byte `protobuf:"bytes,11,opt,name=contract_idl_json,json=contractIdlJson,proto3" json:"contract_idl_json,omitempty"` // contract IDL JSON bytes
// contains filtered or unexported fields
}
Log-poller filter config (Solana flavor).
func ConvertLPFilterQueryToProto ¶
func ConvertLPFilterQueryToProto(f *typesolana.LPFilterQuery) *LPFilterQuery
func (*LPFilterQuery) Descriptor
deprecated
func (*LPFilterQuery) Descriptor() ([]byte, []int)
Deprecated: Use LPFilterQuery.ProtoReflect.Descriptor instead.
func (*LPFilterQuery) GetAddress ¶
func (x *LPFilterQuery) GetAddress() []byte
func (*LPFilterQuery) GetContractIdlJson ¶
func (x *LPFilterQuery) GetContractIdlJson() []byte
func (*LPFilterQuery) GetEventIdlJson
deprecated
func (x *LPFilterQuery) GetEventIdlJson() []byte
Deprecated: Marked as deprecated in solana.proto.
func (*LPFilterQuery) GetEventName ¶
func (x *LPFilterQuery) GetEventName() string
func (*LPFilterQuery) GetEventSig ¶
func (x *LPFilterQuery) GetEventSig() []byte
func (*LPFilterQuery) GetIncludeReverted ¶
func (x *LPFilterQuery) GetIncludeReverted() bool
func (*LPFilterQuery) GetMaxLogsKept ¶
func (x *LPFilterQuery) GetMaxLogsKept() int64
func (*LPFilterQuery) GetName ¶
func (x *LPFilterQuery) GetName() string
func (*LPFilterQuery) GetRetention ¶
func (x *LPFilterQuery) GetRetention() int64
func (*LPFilterQuery) GetStartingBlock ¶
func (x *LPFilterQuery) GetStartingBlock() int64
func (*LPFilterQuery) GetSubkeyPaths ¶
func (x *LPFilterQuery) GetSubkeyPaths() []*Subkeys
func (*LPFilterQuery) ProtoMessage ¶
func (*LPFilterQuery) ProtoMessage()
func (*LPFilterQuery) ProtoReflect ¶
func (x *LPFilterQuery) ProtoReflect() protoreflect.Message
func (*LPFilterQuery) Reset ¶
func (x *LPFilterQuery) Reset()
func (*LPFilterQuery) String ¶
func (x *LPFilterQuery) String() string
type LoadedAddresses ¶
type LoadedAddresses struct {
Readonly [][]byte `protobuf:"bytes,1,rep,name=readonly,proto3" json:"readonly,omitempty"` // 32-byte Pubkeys
Writable [][]byte `protobuf:"bytes,2,rep,name=writable,proto3" json:"writable,omitempty"` // 32-byte Pubkeys
// contains filtered or unexported fields
}
Address table lookups expanded by loader.
func ConvertLoadedAddressesToProto ¶
func ConvertLoadedAddressesToProto(l typesolana.LoadedAddresses) *LoadedAddresses
func (*LoadedAddresses) Descriptor
deprecated
func (*LoadedAddresses) Descriptor() ([]byte, []int)
Deprecated: Use LoadedAddresses.ProtoReflect.Descriptor instead.
func (*LoadedAddresses) GetReadonly ¶
func (x *LoadedAddresses) GetReadonly() [][]byte
func (*LoadedAddresses) GetWritable ¶
func (x *LoadedAddresses) GetWritable() [][]byte
func (*LoadedAddresses) ProtoMessage ¶
func (*LoadedAddresses) ProtoMessage()
func (*LoadedAddresses) ProtoReflect ¶
func (x *LoadedAddresses) ProtoReflect() protoreflect.Message
func (*LoadedAddresses) Reset ¶
func (x *LoadedAddresses) Reset()
func (*LoadedAddresses) String ¶
func (x *LoadedAddresses) String() string
type Log ¶
type Log struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // e.g., "solana-mainnet"
LogIndex int64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` // per-block index
BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // 32-byte
BlockNumber int64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // slot
BlockTimestamp uint64 `protobuf:"varint,5,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"` // unix seconds
Address []byte `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` // 32-byte program id
EventSig []byte `protobuf:"bytes,7,opt,name=event_sig,json=eventSig,proto3" json:"event_sig,omitempty"` // 8-byte discriminator
TxHash []byte `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // 64-byte signature
Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` // raw event bytes
SequenceNum int64 `protobuf:"varint,10,opt,name=sequence_num,json=sequenceNum,proto3" json:"sequence_num,omitempty"` // monotonic seq
Error string `protobuf:"bytes,11,opt,name=error,proto3" json:"error,omitempty"` // decode/processing error
// contains filtered or unexported fields
}
Canonical log shape for tracked events.
func ConvertLogToProto ¶
func ConvertLogToProto(l *typesolana.Log) *Log
func (*Log) Descriptor
deprecated
func (*Log) GetAddress ¶
func (*Log) GetBlockHash ¶
func (*Log) GetBlockNumber ¶
func (*Log) GetBlockTimestamp ¶
func (*Log) GetChainId ¶
func (*Log) GetEventSig ¶
func (*Log) GetLogIndex ¶
func (*Log) GetSequenceNum ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type MessageHeader ¶
type MessageHeader struct {
NumRequiredSignatures uint32 `` // signer count
/* 127-byte string literal not displayed */
NumReadonlySignedAccounts uint32 `` // trailing signed RO
/* 141-byte string literal not displayed */
NumReadonlyUnsignedAccounts uint32 `` // trailing unsigned RO
/* 147-byte string literal not displayed */
// contains filtered or unexported fields
}
Message header counts.
func ConvertMessageHeaderToProto ¶
func ConvertMessageHeaderToProto(h typesolana.MessageHeader) *MessageHeader
func (*MessageHeader) Descriptor
deprecated
func (*MessageHeader) Descriptor() ([]byte, []int)
Deprecated: Use MessageHeader.ProtoReflect.Descriptor instead.
func (*MessageHeader) GetNumReadonlySignedAccounts ¶
func (x *MessageHeader) GetNumReadonlySignedAccounts() uint32
func (*MessageHeader) GetNumReadonlyUnsignedAccounts ¶
func (x *MessageHeader) GetNumReadonlyUnsignedAccounts() uint32
func (*MessageHeader) GetNumRequiredSignatures ¶
func (x *MessageHeader) GetNumRequiredSignatures() uint32
func (*MessageHeader) ProtoMessage ¶
func (*MessageHeader) ProtoMessage()
func (*MessageHeader) ProtoReflect ¶
func (x *MessageHeader) ProtoReflect() protoreflect.Message
func (*MessageHeader) Reset ¶
func (x *MessageHeader) Reset()
func (*MessageHeader) String ¶
func (x *MessageHeader) String() string
type OptionalAccountWrapper ¶
type OptionalAccountWrapper struct {
Account *Account `protobuf:"bytes,1,opt,name=account,proto3,oneof" json:"account,omitempty"`
// contains filtered or unexported fields
}
func (*OptionalAccountWrapper) Descriptor
deprecated
func (*OptionalAccountWrapper) Descriptor() ([]byte, []int)
Deprecated: Use OptionalAccountWrapper.ProtoReflect.Descriptor instead.
func (*OptionalAccountWrapper) GetAccount ¶
func (x *OptionalAccountWrapper) GetAccount() *Account
func (*OptionalAccountWrapper) ProtoMessage ¶
func (*OptionalAccountWrapper) ProtoMessage()
func (*OptionalAccountWrapper) ProtoReflect ¶
func (x *OptionalAccountWrapper) ProtoReflect() protoreflect.Message
func (*OptionalAccountWrapper) Reset ¶
func (x *OptionalAccountWrapper) Reset()
func (*OptionalAccountWrapper) String ¶
func (x *OptionalAccountWrapper) String() string
type ParsedMessage ¶
type ParsedMessage struct {
RecentBlockhash []byte `protobuf:"bytes,1,opt,name=recent_blockhash,json=recentBlockhash,proto3" json:"recent_blockhash,omitempty"` // 32-byte Hash
AccountKeys [][]byte `protobuf:"bytes,2,rep,name=account_keys,json=accountKeys,proto3" json:"account_keys,omitempty"` // list of 32-byte Pubkeys
Header *MessageHeader `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
Instructions []*CompiledInstruction `protobuf:"bytes,4,rep,name=instructions,proto3" json:"instructions,omitempty"`
// contains filtered or unexported fields
}
Parsed message (no address tables).
func ConvertParsedMessageToProto ¶
func ConvertParsedMessageToProto(m typesolana.Message) *ParsedMessage
func (*ParsedMessage) Descriptor
deprecated
func (*ParsedMessage) Descriptor() ([]byte, []int)
Deprecated: Use ParsedMessage.ProtoReflect.Descriptor instead.
func (*ParsedMessage) GetAccountKeys ¶
func (x *ParsedMessage) GetAccountKeys() [][]byte
func (*ParsedMessage) GetHeader ¶
func (x *ParsedMessage) GetHeader() *MessageHeader
func (*ParsedMessage) GetInstructions ¶
func (x *ParsedMessage) GetInstructions() []*CompiledInstruction
func (*ParsedMessage) GetRecentBlockhash ¶
func (x *ParsedMessage) GetRecentBlockhash() []byte
func (*ParsedMessage) ProtoMessage ¶
func (*ParsedMessage) ProtoMessage()
func (*ParsedMessage) ProtoReflect ¶
func (x *ParsedMessage) ProtoReflect() protoreflect.Message
func (*ParsedMessage) Reset ¶
func (x *ParsedMessage) Reset()
func (*ParsedMessage) String ¶
func (x *ParsedMessage) String() string
type ParsedTransaction ¶
type ParsedTransaction struct {
Signatures [][]byte `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"` // 64-byte signatures
Message *ParsedMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Parsed transaction (signatures + message).
func ConvertParsedTransactionToProto ¶
func ConvertParsedTransactionToProto(t typesolana.Transaction) *ParsedTransaction
func (*ParsedTransaction) Descriptor
deprecated
func (*ParsedTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ParsedTransaction.ProtoReflect.Descriptor instead.
func (*ParsedTransaction) GetMessage ¶
func (x *ParsedTransaction) GetMessage() *ParsedMessage
func (*ParsedTransaction) GetSignatures ¶
func (x *ParsedTransaction) GetSignatures() [][]byte
func (*ParsedTransaction) ProtoMessage ¶
func (*ParsedTransaction) ProtoMessage()
func (*ParsedTransaction) ProtoReflect ¶
func (x *ParsedTransaction) ProtoReflect() protoreflect.Message
func (*ParsedTransaction) Reset ¶
func (x *ParsedTransaction) Reset()
func (*ParsedTransaction) String ¶
func (x *ParsedTransaction) String() string
type Primitive ¶
type Primitive struct {
// Types that are valid to be assigned to Primitive:
//
// *Primitive_GeneralPrimitive
// *Primitive_Address
// *Primitive_EventSig
// *Primitive_EventBySubkey
Primitive isPrimitive_Primitive `protobuf_oneof:"primitive"`
// contains filtered or unexported fields
}
Primitive leaf for expressions/filters.
func (*Primitive) Descriptor
deprecated
func (*Primitive) GetAddress ¶
func (*Primitive) GetEventBySubkey ¶
func (x *Primitive) GetEventBySubkey() *EventBySubkey
func (*Primitive) GetEventSig ¶
func (*Primitive) GetGeneralPrimitive ¶
func (x *Primitive) GetGeneralPrimitive() *chain_common.Primitive
func (*Primitive) GetPrimitive ¶
func (x *Primitive) GetPrimitive() isPrimitive_Primitive
func (*Primitive) ProtoMessage ¶
func (*Primitive) ProtoMessage()
func (*Primitive) ProtoReflect ¶
func (x *Primitive) ProtoReflect() protoreflect.Message
type Primitive_Address ¶
type Primitive_Address struct {
Address []byte `protobuf:"bytes,2,opt,name=address,proto3,oneof"` // 32-byte program id
}
type Primitive_EventBySubkey ¶
type Primitive_EventBySubkey struct {
EventBySubkey *EventBySubkey `protobuf:"bytes,4,opt,name=event_by_subkey,json=eventBySubkey,proto3,oneof"` // subkey filter
}
type Primitive_EventSig ¶
type Primitive_EventSig struct {
EventSig []byte `protobuf:"bytes,3,opt,name=event_sig,json=eventSig,proto3,oneof"` // 8-byte discriminator
}
type Primitive_GeneralPrimitive ¶
type Primitive_GeneralPrimitive struct {
GeneralPrimitive *chain_common.Primitive `protobuf:"bytes,1,opt,name=general_primitive,json=generalPrimitive,proto3,oneof"` // shared primitives
}
type QueryTrackedLogsReply ¶
type QueryTrackedLogsReply struct {
Logs []*Log `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
// contains filtered or unexported fields
}
func (*QueryTrackedLogsReply) Descriptor
deprecated
func (*QueryTrackedLogsReply) Descriptor() ([]byte, []int)
Deprecated: Use QueryTrackedLogsReply.ProtoReflect.Descriptor instead.
func (*QueryTrackedLogsReply) GetLogs ¶
func (x *QueryTrackedLogsReply) GetLogs() []*Log
func (*QueryTrackedLogsReply) ProtoMessage ¶
func (*QueryTrackedLogsReply) ProtoMessage()
func (*QueryTrackedLogsReply) ProtoReflect ¶
func (x *QueryTrackedLogsReply) ProtoReflect() protoreflect.Message
func (*QueryTrackedLogsReply) Reset ¶
func (x *QueryTrackedLogsReply) Reset()
func (*QueryTrackedLogsReply) String ¶
func (x *QueryTrackedLogsReply) String() string
type QueryTrackedLogsRequest ¶
type QueryTrackedLogsRequest struct {
FilterQuery []*Expression `protobuf:"bytes,1,rep,name=filterQuery,proto3" json:"filterQuery,omitempty"` // filter tree
LimitAndSort *chain_common.LimitAndSort `protobuf:"bytes,2,opt,name=limit_and_sort,json=limitAndSort,proto3" json:"limit_and_sort,omitempty"` // paging
// contains filtered or unexported fields
}
Query tracked logs.
func (*QueryTrackedLogsRequest) Descriptor
deprecated
func (*QueryTrackedLogsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTrackedLogsRequest.ProtoReflect.Descriptor instead.
func (*QueryTrackedLogsRequest) GetFilterQuery ¶
func (x *QueryTrackedLogsRequest) GetFilterQuery() []*Expression
func (*QueryTrackedLogsRequest) GetLimitAndSort ¶
func (x *QueryTrackedLogsRequest) GetLimitAndSort() *chain_common.LimitAndSort
func (*QueryTrackedLogsRequest) ProtoMessage ¶
func (*QueryTrackedLogsRequest) ProtoMessage()
func (*QueryTrackedLogsRequest) ProtoReflect ¶
func (x *QueryTrackedLogsRequest) ProtoReflect() protoreflect.Message
func (*QueryTrackedLogsRequest) Reset ¶
func (x *QueryTrackedLogsRequest) Reset()
func (*QueryTrackedLogsRequest) String ¶
func (x *QueryTrackedLogsRequest) String() string
type RPCContext ¶
type RPCContext struct {
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
// contains filtered or unexported fields
}
RPC read context.
func ConvertRPCContextToProto ¶
func ConvertRPCContextToProto(r typesolana.RPCContext) *RPCContext
func (*RPCContext) Descriptor
deprecated
func (*RPCContext) Descriptor() ([]byte, []int)
Deprecated: Use RPCContext.ProtoReflect.Descriptor instead.
func (*RPCContext) GetSlot ¶
func (x *RPCContext) GetSlot() uint64
func (*RPCContext) ProtoMessage ¶
func (*RPCContext) ProtoMessage()
func (*RPCContext) ProtoReflect ¶
func (x *RPCContext) ProtoReflect() protoreflect.Message
func (*RPCContext) Reset ¶
func (x *RPCContext) Reset()
func (*RPCContext) String ¶
func (x *RPCContext) String() string
type RegisterLogTrackingReply ¶
type RegisterLogTrackingReply struct {
// contains filtered or unexported fields
}
func (*RegisterLogTrackingReply) Descriptor
deprecated
func (*RegisterLogTrackingReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterLogTrackingReply.ProtoReflect.Descriptor instead.
func (*RegisterLogTrackingReply) ProtoMessage ¶
func (*RegisterLogTrackingReply) ProtoMessage()
func (*RegisterLogTrackingReply) ProtoReflect ¶
func (x *RegisterLogTrackingReply) ProtoReflect() protoreflect.Message
func (*RegisterLogTrackingReply) Reset ¶
func (x *RegisterLogTrackingReply) Reset()
func (*RegisterLogTrackingReply) String ¶
func (x *RegisterLogTrackingReply) String() string
type RegisterLogTrackingRequest ¶
type RegisterLogTrackingRequest struct {
Filter *LPFilterQuery `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
Register a log tracking filter.
func (*RegisterLogTrackingRequest) Descriptor
deprecated
func (*RegisterLogTrackingRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterLogTrackingRequest.ProtoReflect.Descriptor instead.
func (*RegisterLogTrackingRequest) GetFilter ¶
func (x *RegisterLogTrackingRequest) GetFilter() *LPFilterQuery
func (*RegisterLogTrackingRequest) ProtoMessage ¶
func (*RegisterLogTrackingRequest) ProtoMessage()
func (*RegisterLogTrackingRequest) ProtoReflect ¶
func (x *RegisterLogTrackingRequest) ProtoReflect() protoreflect.Message
func (*RegisterLogTrackingRequest) Reset ¶
func (x *RegisterLogTrackingRequest) Reset()
func (*RegisterLogTrackingRequest) String ¶
func (x *RegisterLogTrackingRequest) String() string
type ReturnData ¶
type ReturnData struct {
ProgramId []byte `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"` // 32-byte Pubkey
Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // raw return bytes
// contains filtered or unexported fields
}
Program return data.
func ConvertReturnDataToProto ¶
func ConvertReturnDataToProto(r *typesolana.ReturnData) *ReturnData
func (*ReturnData) Descriptor
deprecated
func (*ReturnData) Descriptor() ([]byte, []int)
Deprecated: Use ReturnData.ProtoReflect.Descriptor instead.
func (*ReturnData) GetData ¶
func (x *ReturnData) GetData() *Data
func (*ReturnData) GetProgramId ¶
func (x *ReturnData) GetProgramId() []byte
func (*ReturnData) ProtoMessage ¶
func (*ReturnData) ProtoMessage()
func (*ReturnData) ProtoReflect ¶
func (x *ReturnData) ProtoReflect() protoreflect.Message
func (*ReturnData) Reset ¶
func (x *ReturnData) Reset()
func (*ReturnData) String ¶
func (x *ReturnData) String() string
type SimulateTXOpts ¶
type SimulateTXOpts struct {
SigVerify bool `protobuf:"varint,1,opt,name=sig_verify,json=sigVerify,proto3" json:"sig_verify,omitempty"` // verify sigs
Commitment CommitmentType `protobuf:"varint,2,opt,name=commitment,proto3,enum=loop.solana.CommitmentType" json:"commitment,omitempty"` // read consistency
ReplaceRecentBlockhash bool `` // refresh blockhash
/* 130-byte string literal not displayed */
Accounts *SimulateTransactionAccountsOpts `protobuf:"bytes,4,opt,name=accounts,proto3" json:"accounts,omitempty"` // return accounts
// contains filtered or unexported fields
}
Simulation options.
func ConvertSimulateTXOptsToProto ¶
func ConvertSimulateTXOptsToProto(o *typesolana.SimulateTXOpts) *SimulateTXOpts
func (*SimulateTXOpts) Descriptor
deprecated
func (*SimulateTXOpts) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTXOpts.ProtoReflect.Descriptor instead.
func (*SimulateTXOpts) GetAccounts ¶
func (x *SimulateTXOpts) GetAccounts() *SimulateTransactionAccountsOpts
func (*SimulateTXOpts) GetCommitment ¶
func (x *SimulateTXOpts) GetCommitment() CommitmentType
func (*SimulateTXOpts) GetReplaceRecentBlockhash ¶
func (x *SimulateTXOpts) GetReplaceRecentBlockhash() bool
func (*SimulateTXOpts) GetSigVerify ¶
func (x *SimulateTXOpts) GetSigVerify() bool
func (*SimulateTXOpts) ProtoMessage ¶
func (*SimulateTXOpts) ProtoMessage()
func (*SimulateTXOpts) ProtoReflect ¶
func (x *SimulateTXOpts) ProtoReflect() protoreflect.Message
func (*SimulateTXOpts) Reset ¶
func (x *SimulateTXOpts) Reset()
func (*SimulateTXOpts) String ¶
func (x *SimulateTXOpts) String() string
type SimulateTXReply ¶
type SimulateTXReply struct {
Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // empty on success
Logs []string `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"` // runtime logs
Accounts []*Account `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"` // returned accounts
UnitsConsumed uint64 `protobuf:"varint,4,opt,name=units_consumed,json=unitsConsumed,proto3" json:"units_consumed,omitempty"` // CUs
// contains filtered or unexported fields
}
Simulation result.
func ConvertSimulateTXReplyToProto ¶
func ConvertSimulateTXReplyToProto(r *typesolana.SimulateTXReply) *SimulateTXReply
func (*SimulateTXReply) Descriptor
deprecated
func (*SimulateTXReply) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTXReply.ProtoReflect.Descriptor instead.
func (*SimulateTXReply) GetAccounts ¶
func (x *SimulateTXReply) GetAccounts() []*Account
func (*SimulateTXReply) GetErr ¶
func (x *SimulateTXReply) GetErr() string
func (*SimulateTXReply) GetLogs ¶
func (x *SimulateTXReply) GetLogs() []string
func (*SimulateTXReply) GetUnitsConsumed ¶
func (x *SimulateTXReply) GetUnitsConsumed() uint64
func (*SimulateTXReply) ProtoMessage ¶
func (*SimulateTXReply) ProtoMessage()
func (*SimulateTXReply) ProtoReflect ¶
func (x *SimulateTXReply) ProtoReflect() protoreflect.Message
func (*SimulateTXReply) Reset ¶
func (x *SimulateTXReply) Reset()
func (*SimulateTXReply) String ¶
func (x *SimulateTXReply) String() string
type SimulateTXRequest ¶
type SimulateTXRequest struct {
Receiver []byte `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"` // 32-byte program id (target)
EncodedTransaction string `protobuf:"bytes,2,opt,name=encoded_transaction,json=encodedTransaction,proto3" json:"encoded_transaction,omitempty"` // base64/base58 tx
Opts *SimulateTXOpts `protobuf:"bytes,3,opt,name=opts,proto3" json:"opts,omitempty"`
// contains filtered or unexported fields
}
Simulation request.
func ConvertSimulateTXRequestToProto ¶
func ConvertSimulateTXRequestToProto(r typesolana.SimulateTXRequest) *SimulateTXRequest
func (*SimulateTXRequest) Descriptor
deprecated
func (*SimulateTXRequest) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTXRequest.ProtoReflect.Descriptor instead.
func (*SimulateTXRequest) GetEncodedTransaction ¶
func (x *SimulateTXRequest) GetEncodedTransaction() string
func (*SimulateTXRequest) GetOpts ¶
func (x *SimulateTXRequest) GetOpts() *SimulateTXOpts
func (*SimulateTXRequest) GetReceiver ¶
func (x *SimulateTXRequest) GetReceiver() []byte
func (*SimulateTXRequest) ProtoMessage ¶
func (*SimulateTXRequest) ProtoMessage()
func (*SimulateTXRequest) ProtoReflect ¶
func (x *SimulateTXRequest) ProtoReflect() protoreflect.Message
func (*SimulateTXRequest) Reset ¶
func (x *SimulateTXRequest) Reset()
func (*SimulateTXRequest) String ¶
func (x *SimulateTXRequest) String() string
type SimulateTransactionAccountsOpts ¶
type SimulateTransactionAccountsOpts struct {
Encoding EncodingType `protobuf:"varint,1,opt,name=encoding,proto3,enum=loop.solana.EncodingType" json:"encoding,omitempty"` // account data encoding
Addresses [][]byte `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` // 32-byte Pubkeys
// contains filtered or unexported fields
}
Accounts to return during simulation.
func ConvertSimulateTransactionAccountsOptsToProto ¶
func ConvertSimulateTransactionAccountsOptsToProto(o *typesolana.SimulateTransactionAccountsOpts) *SimulateTransactionAccountsOpts
func (*SimulateTransactionAccountsOpts) Descriptor
deprecated
func (*SimulateTransactionAccountsOpts) Descriptor() ([]byte, []int)
Deprecated: Use SimulateTransactionAccountsOpts.ProtoReflect.Descriptor instead.
func (*SimulateTransactionAccountsOpts) GetAddresses ¶
func (x *SimulateTransactionAccountsOpts) GetAddresses() [][]byte
func (*SimulateTransactionAccountsOpts) GetEncoding ¶
func (x *SimulateTransactionAccountsOpts) GetEncoding() EncodingType
func (*SimulateTransactionAccountsOpts) ProtoMessage ¶
func (*SimulateTransactionAccountsOpts) ProtoMessage()
func (*SimulateTransactionAccountsOpts) ProtoReflect ¶
func (x *SimulateTransactionAccountsOpts) ProtoReflect() protoreflect.Message
func (*SimulateTransactionAccountsOpts) Reset ¶
func (x *SimulateTransactionAccountsOpts) Reset()
func (*SimulateTransactionAccountsOpts) String ¶
func (x *SimulateTransactionAccountsOpts) String() string
type SolanaClient ¶
type SolanaClient interface {
GetAccountInfoWithOpts(ctx context.Context, in *GetAccountInfoWithOptsRequest, opts ...grpc.CallOption) (*GetAccountInfoWithOptsReply, error)
GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceReply, error)
GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockReply, error)
GetFeeForMessage(ctx context.Context, in *GetFeeForMessageRequest, opts ...grpc.CallOption) (*GetFeeForMessageReply, error)
GetMultipleAccountsWithOpts(ctx context.Context, in *GetMultipleAccountsWithOptsRequest, opts ...grpc.CallOption) (*GetMultipleAccountsWithOptsReply, error)
GetSignatureStatuses(ctx context.Context, in *GetSignatureStatusesRequest, opts ...grpc.CallOption) (*GetSignatureStatusesReply, error)
GetSlotHeight(ctx context.Context, in *GetSlotHeightRequest, opts ...grpc.CallOption) (*GetSlotHeightReply, error)
GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionReply, error)
QueryTrackedLogs(ctx context.Context, in *QueryTrackedLogsRequest, opts ...grpc.CallOption) (*QueryTrackedLogsReply, error)
RegisterLogTracking(ctx context.Context, in *RegisterLogTrackingRequest, opts ...grpc.CallOption) (*RegisterLogTrackingReply, error)
SimulateTX(ctx context.Context, in *SimulateTXRequest, opts ...grpc.CallOption) (*SimulateTXReply, error)
SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionReply, error)
UnregisterLogTracking(ctx context.Context, in *UnregisterLogTrackingRequest, opts ...grpc.CallOption) (*UnregisterLogTrackingReply, error)
GetLatestLPBlock(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetLatestLPBlockReply, error)
}
SolanaClient is the client API for Solana service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSolanaClient ¶
func NewSolanaClient(cc grpc.ClientConnInterface) SolanaClient
type SolanaServer ¶
type SolanaServer interface {
GetAccountInfoWithOpts(context.Context, *GetAccountInfoWithOptsRequest) (*GetAccountInfoWithOptsReply, error)
GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceReply, error)
GetBlock(context.Context, *GetBlockRequest) (*GetBlockReply, error)
GetFeeForMessage(context.Context, *GetFeeForMessageRequest) (*GetFeeForMessageReply, error)
GetMultipleAccountsWithOpts(context.Context, *GetMultipleAccountsWithOptsRequest) (*GetMultipleAccountsWithOptsReply, error)
GetSignatureStatuses(context.Context, *GetSignatureStatusesRequest) (*GetSignatureStatusesReply, error)
GetSlotHeight(context.Context, *GetSlotHeightRequest) (*GetSlotHeightReply, error)
GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionReply, error)
QueryTrackedLogs(context.Context, *QueryTrackedLogsRequest) (*QueryTrackedLogsReply, error)
RegisterLogTracking(context.Context, *RegisterLogTrackingRequest) (*RegisterLogTrackingReply, error)
SimulateTX(context.Context, *SimulateTXRequest) (*SimulateTXReply, error)
SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionReply, error)
UnregisterLogTracking(context.Context, *UnregisterLogTrackingRequest) (*UnregisterLogTrackingReply, error)
GetLatestLPBlock(context.Context, *emptypb.Empty) (*GetLatestLPBlockReply, error)
// contains filtered or unexported methods
}
SolanaServer is the server API for Solana service. All implementations must embed UnimplementedSolanaServer for forward compatibility.
type Subkeys ¶
type Subkeys struct {
Subkeys []string `protobuf:"bytes,1,rep,name=subkeys,proto3" json:"subkeys,omitempty"` // e.g., ["events","0","fields","owner"]
// contains filtered or unexported fields
}
Subkey path elements.
func (*Subkeys) Descriptor
deprecated
func (*Subkeys) GetSubkeys ¶
func (*Subkeys) ProtoMessage ¶
func (*Subkeys) ProtoMessage()
func (*Subkeys) ProtoReflect ¶
func (x *Subkeys) ProtoReflect() protoreflect.Message
type SubmitTransactionReply ¶
type SubmitTransactionReply struct {
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // 64-byte signature
IdempotencyKey string `protobuf:"bytes,2,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"` // echo key
Status TxStatus `protobuf:"varint,3,opt,name=status,proto3,enum=loop.solana.TxStatus" json:"status,omitempty"`
// contains filtered or unexported fields
}
Submit transaction result.
func ConvertSubmitTransactionReplyToProto ¶
func ConvertSubmitTransactionReplyToProto(r *typesolana.SubmitTransactionReply) *SubmitTransactionReply
func (*SubmitTransactionReply) Descriptor
deprecated
func (*SubmitTransactionReply) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTransactionReply.ProtoReflect.Descriptor instead.
func (*SubmitTransactionReply) GetIdempotencyKey ¶
func (x *SubmitTransactionReply) GetIdempotencyKey() string
func (*SubmitTransactionReply) GetSignature ¶
func (x *SubmitTransactionReply) GetSignature() []byte
func (*SubmitTransactionReply) GetStatus ¶
func (x *SubmitTransactionReply) GetStatus() TxStatus
func (*SubmitTransactionReply) ProtoMessage ¶
func (*SubmitTransactionReply) ProtoMessage()
func (*SubmitTransactionReply) ProtoReflect ¶
func (x *SubmitTransactionReply) ProtoReflect() protoreflect.Message
func (*SubmitTransactionReply) Reset ¶
func (x *SubmitTransactionReply) Reset()
func (*SubmitTransactionReply) String ¶
func (x *SubmitTransactionReply) String() string
type SubmitTransactionRequest ¶
type SubmitTransactionRequest struct {
Cfg *ComputeConfig `protobuf:"bytes,1,opt,name=cfg,proto3" json:"cfg,omitempty"` // compute budget
Receiver []byte `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // 32-byte program id (target)
EncodedTransaction string `protobuf:"bytes,3,opt,name=encoded_transaction,json=encodedTransaction,proto3" json:"encoded_transaction,omitempty"` // base64/base58 tx
// contains filtered or unexported fields
}
Submit transaction request.
func ConvertSubmitTransactionRequestToProto ¶
func ConvertSubmitTransactionRequestToProto(r typesolana.SubmitTransactionRequest) *SubmitTransactionRequest
func (*SubmitTransactionRequest) Descriptor
deprecated
func (*SubmitTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTransactionRequest.ProtoReflect.Descriptor instead.
func (*SubmitTransactionRequest) GetCfg ¶
func (x *SubmitTransactionRequest) GetCfg() *ComputeConfig
func (*SubmitTransactionRequest) GetEncodedTransaction ¶
func (x *SubmitTransactionRequest) GetEncodedTransaction() string
func (*SubmitTransactionRequest) GetReceiver ¶
func (x *SubmitTransactionRequest) GetReceiver() []byte
func (*SubmitTransactionRequest) ProtoMessage ¶
func (*SubmitTransactionRequest) ProtoMessage()
func (*SubmitTransactionRequest) ProtoReflect ¶
func (x *SubmitTransactionRequest) ProtoReflect() protoreflect.Message
func (*SubmitTransactionRequest) Reset ¶
func (x *SubmitTransactionRequest) Reset()
func (*SubmitTransactionRequest) String ¶
func (x *SubmitTransactionRequest) String() string
type TokenBalance ¶
type TokenBalance struct {
AccountIndex uint32 `protobuf:"varint,1,opt,name=account_index,json=accountIndex,proto3" json:"account_index,omitempty"` // index in account_keys
Owner []byte `protobuf:"bytes,2,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // 32-byte owner (optional)
ProgramId []byte `protobuf:"bytes,3,opt,name=program_id,json=programId,proto3,oneof" json:"program_id,omitempty"` // 32-byte token program (optional)
Mint []byte `protobuf:"bytes,4,opt,name=mint,proto3" json:"mint,omitempty"` // 32-byte mint
Ui *UiTokenAmount `protobuf:"bytes,5,opt,name=ui,proto3" json:"ui,omitempty"` // formatted amounts
// contains filtered or unexported fields
}
SPL token balance entry.
func ConvertTokenBalanceToProto ¶
func ConvertTokenBalanceToProto(tb *typesolana.TokenBalance) *TokenBalance
func (*TokenBalance) Descriptor
deprecated
func (*TokenBalance) Descriptor() ([]byte, []int)
Deprecated: Use TokenBalance.ProtoReflect.Descriptor instead.
func (*TokenBalance) GetAccountIndex ¶
func (x *TokenBalance) GetAccountIndex() uint32
func (*TokenBalance) GetMint ¶
func (x *TokenBalance) GetMint() []byte
func (*TokenBalance) GetOwner ¶
func (x *TokenBalance) GetOwner() []byte
func (*TokenBalance) GetProgramId ¶
func (x *TokenBalance) GetProgramId() []byte
func (*TokenBalance) GetUi ¶
func (x *TokenBalance) GetUi() *UiTokenAmount
func (*TokenBalance) ProtoMessage ¶
func (*TokenBalance) ProtoMessage()
func (*TokenBalance) ProtoReflect ¶
func (x *TokenBalance) ProtoReflect() protoreflect.Message
func (*TokenBalance) Reset ¶
func (x *TokenBalance) Reset()
func (*TokenBalance) String ¶
func (x *TokenBalance) String() string
type TransactionEnvelope ¶
type TransactionEnvelope struct {
// Types that are valid to be assigned to Transaction:
//
// *TransactionEnvelope_Raw
// *TransactionEnvelope_Parsed
Transaction isTransactionEnvelope_Transaction `protobuf_oneof:"transaction"`
// contains filtered or unexported fields
}
Transaction envelope: raw bytes or parsed struct.
func ConvertTransactionEnvelopeToProto ¶
func ConvertTransactionEnvelopeToProto(e typesolana.TransactionResultEnvelope) *TransactionEnvelope
func (*TransactionEnvelope) Descriptor
deprecated
func (*TransactionEnvelope) Descriptor() ([]byte, []int)
Deprecated: Use TransactionEnvelope.ProtoReflect.Descriptor instead.
func (*TransactionEnvelope) GetParsed ¶
func (x *TransactionEnvelope) GetParsed() *ParsedTransaction
func (*TransactionEnvelope) GetRaw ¶
func (x *TransactionEnvelope) GetRaw() []byte
func (*TransactionEnvelope) GetTransaction ¶
func (x *TransactionEnvelope) GetTransaction() isTransactionEnvelope_Transaction
func (*TransactionEnvelope) ProtoMessage ¶
func (*TransactionEnvelope) ProtoMessage()
func (*TransactionEnvelope) ProtoReflect ¶
func (x *TransactionEnvelope) ProtoReflect() protoreflect.Message
func (*TransactionEnvelope) Reset ¶
func (x *TransactionEnvelope) Reset()
func (*TransactionEnvelope) String ¶
func (x *TransactionEnvelope) String() string
type TransactionEnvelope_Parsed ¶
type TransactionEnvelope_Parsed struct {
Parsed *ParsedTransaction `protobuf:"bytes,2,opt,name=parsed,proto3,oneof"` // parsed tx (for JSON_PARSED)
}
type TransactionEnvelope_Raw ¶
type TransactionEnvelope_Raw struct {
Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3,oneof"` // raw tx bytes (for RAW/base64)
}
type TransactionMeta ¶
type TransactionMeta struct {
ErrJson string `protobuf:"bytes,1,opt,name=err_json,json=errJson,proto3" json:"err_json,omitempty"` // error JSON (empty on success)
Fee uint64 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` // lamports
PreBalances []uint64 `protobuf:"varint,3,rep,packed,name=pre_balances,json=preBalances,proto3" json:"pre_balances,omitempty"` // lamports per account
PostBalances []uint64 `protobuf:"varint,4,rep,packed,name=post_balances,json=postBalances,proto3" json:"post_balances,omitempty"` // lamports per account
LogMessages []string `protobuf:"bytes,5,rep,name=log_messages,json=logMessages,proto3" json:"log_messages,omitempty"` // runtime logs
PreTokenBalances []*TokenBalance `protobuf:"bytes,6,rep,name=pre_token_balances,json=preTokenBalances,proto3" json:"pre_token_balances,omitempty"`
PostTokenBalances []*TokenBalance `protobuf:"bytes,7,rep,name=post_token_balances,json=postTokenBalances,proto3" json:"post_token_balances,omitempty"`
InnerInstructions []*InnerInstruction `protobuf:"bytes,8,rep,name=inner_instructions,json=innerInstructions,proto3" json:"inner_instructions,omitempty"`
LoadedAddresses *LoadedAddresses `protobuf:"bytes,9,opt,name=loaded_addresses,json=loadedAddresses,proto3" json:"loaded_addresses,omitempty"`
ReturnData *ReturnData `protobuf:"bytes,10,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
ComputeUnitsConsumed *uint64 `` // CUs
/* 131-byte string literal not displayed */
// contains filtered or unexported fields
}
Transaction execution metadata.
func ConvertTransactionMetaToProto ¶
func ConvertTransactionMetaToProto(m *typesolana.TransactionMeta) *TransactionMeta
func (*TransactionMeta) Descriptor
deprecated
func (*TransactionMeta) Descriptor() ([]byte, []int)
Deprecated: Use TransactionMeta.ProtoReflect.Descriptor instead.
func (*TransactionMeta) GetComputeUnitsConsumed ¶
func (x *TransactionMeta) GetComputeUnitsConsumed() uint64
func (*TransactionMeta) GetErrJson ¶
func (x *TransactionMeta) GetErrJson() string
func (*TransactionMeta) GetFee ¶
func (x *TransactionMeta) GetFee() uint64
func (*TransactionMeta) GetInnerInstructions ¶
func (x *TransactionMeta) GetInnerInstructions() []*InnerInstruction
func (*TransactionMeta) GetLoadedAddresses ¶
func (x *TransactionMeta) GetLoadedAddresses() *LoadedAddresses
func (*TransactionMeta) GetLogMessages ¶
func (x *TransactionMeta) GetLogMessages() []string
func (*TransactionMeta) GetPostBalances ¶
func (x *TransactionMeta) GetPostBalances() []uint64
func (*TransactionMeta) GetPostTokenBalances ¶
func (x *TransactionMeta) GetPostTokenBalances() []*TokenBalance
func (*TransactionMeta) GetPreBalances ¶
func (x *TransactionMeta) GetPreBalances() []uint64
func (*TransactionMeta) GetPreTokenBalances ¶
func (x *TransactionMeta) GetPreTokenBalances() []*TokenBalance
func (*TransactionMeta) GetReturnData ¶
func (x *TransactionMeta) GetReturnData() *ReturnData
func (*TransactionMeta) ProtoMessage ¶
func (*TransactionMeta) ProtoMessage()
func (*TransactionMeta) ProtoReflect ¶
func (x *TransactionMeta) ProtoReflect() protoreflect.Message
func (*TransactionMeta) Reset ¶
func (x *TransactionMeta) Reset()
func (*TransactionMeta) String ¶
func (x *TransactionMeta) String() string
type TxStatus ¶
type TxStatus int32
Transaction execution status returned by submitters/simulations.
func (TxStatus) Descriptor ¶
func (TxStatus) Descriptor() protoreflect.EnumDescriptor
func (TxStatus) EnumDescriptor
deprecated
func (TxStatus) Number ¶
func (x TxStatus) Number() protoreflect.EnumNumber
func (TxStatus) Type ¶
func (TxStatus) Type() protoreflect.EnumType
type UiTokenAmount ¶
type UiTokenAmount struct {
Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // raw integer string
Decimals uint32 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"` // mint decimals
UiAmountString string `protobuf:"bytes,4,opt,name=ui_amount_string,json=uiAmountString,proto3" json:"ui_amount_string,omitempty"` // amount / 10^decimals
// contains filtered or unexported fields
}
Token amount (UI-friendly).
func ConvertUiTokenAmountToProto ¶
func ConvertUiTokenAmountToProto(u *typesolana.UiTokenAmount) *UiTokenAmount
func (*UiTokenAmount) Descriptor
deprecated
func (*UiTokenAmount) Descriptor() ([]byte, []int)
Deprecated: Use UiTokenAmount.ProtoReflect.Descriptor instead.
func (*UiTokenAmount) GetAmount ¶
func (x *UiTokenAmount) GetAmount() string
func (*UiTokenAmount) GetDecimals ¶
func (x *UiTokenAmount) GetDecimals() uint32
func (*UiTokenAmount) GetUiAmountString ¶
func (x *UiTokenAmount) GetUiAmountString() string
func (*UiTokenAmount) ProtoMessage ¶
func (*UiTokenAmount) ProtoMessage()
func (*UiTokenAmount) ProtoReflect ¶
func (x *UiTokenAmount) ProtoReflect() protoreflect.Message
func (*UiTokenAmount) Reset ¶
func (x *UiTokenAmount) Reset()
func (*UiTokenAmount) String ¶
func (x *UiTokenAmount) String() string
type UnimplementedSolanaServer ¶
type UnimplementedSolanaServer struct{}
UnimplementedSolanaServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSolanaServer) GetAccountInfoWithOpts ¶
func (UnimplementedSolanaServer) GetAccountInfoWithOpts(context.Context, *GetAccountInfoWithOptsRequest) (*GetAccountInfoWithOptsReply, error)
func (UnimplementedSolanaServer) GetBalance ¶
func (UnimplementedSolanaServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceReply, error)
func (UnimplementedSolanaServer) GetBlock ¶
func (UnimplementedSolanaServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockReply, error)
func (UnimplementedSolanaServer) GetFeeForMessage ¶
func (UnimplementedSolanaServer) GetFeeForMessage(context.Context, *GetFeeForMessageRequest) (*GetFeeForMessageReply, error)
func (UnimplementedSolanaServer) GetLatestLPBlock ¶
func (UnimplementedSolanaServer) GetLatestLPBlock(context.Context, *emptypb.Empty) (*GetLatestLPBlockReply, error)
func (UnimplementedSolanaServer) GetMultipleAccountsWithOpts ¶
func (UnimplementedSolanaServer) GetMultipleAccountsWithOpts(context.Context, *GetMultipleAccountsWithOptsRequest) (*GetMultipleAccountsWithOptsReply, error)
func (UnimplementedSolanaServer) GetSignatureStatuses ¶
func (UnimplementedSolanaServer) GetSignatureStatuses(context.Context, *GetSignatureStatusesRequest) (*GetSignatureStatusesReply, error)
func (UnimplementedSolanaServer) GetSlotHeight ¶
func (UnimplementedSolanaServer) GetSlotHeight(context.Context, *GetSlotHeightRequest) (*GetSlotHeightReply, error)
func (UnimplementedSolanaServer) GetTransaction ¶
func (UnimplementedSolanaServer) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionReply, error)
func (UnimplementedSolanaServer) QueryTrackedLogs ¶
func (UnimplementedSolanaServer) QueryTrackedLogs(context.Context, *QueryTrackedLogsRequest) (*QueryTrackedLogsReply, error)
func (UnimplementedSolanaServer) RegisterLogTracking ¶
func (UnimplementedSolanaServer) RegisterLogTracking(context.Context, *RegisterLogTrackingRequest) (*RegisterLogTrackingReply, error)
func (UnimplementedSolanaServer) SimulateTX ¶
func (UnimplementedSolanaServer) SimulateTX(context.Context, *SimulateTXRequest) (*SimulateTXReply, error)
func (UnimplementedSolanaServer) SubmitTransaction ¶
func (UnimplementedSolanaServer) SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionReply, error)
func (UnimplementedSolanaServer) UnregisterLogTracking ¶
func (UnimplementedSolanaServer) UnregisterLogTracking(context.Context, *UnregisterLogTrackingRequest) (*UnregisterLogTrackingReply, error)
type UnregisterLogTrackingReply ¶
type UnregisterLogTrackingReply struct {
// contains filtered or unexported fields
}
func (*UnregisterLogTrackingReply) Descriptor
deprecated
func (*UnregisterLogTrackingReply) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterLogTrackingReply.ProtoReflect.Descriptor instead.
func (*UnregisterLogTrackingReply) ProtoMessage ¶
func (*UnregisterLogTrackingReply) ProtoMessage()
func (*UnregisterLogTrackingReply) ProtoReflect ¶
func (x *UnregisterLogTrackingReply) ProtoReflect() protoreflect.Message
func (*UnregisterLogTrackingReply) Reset ¶
func (x *UnregisterLogTrackingReply) Reset()
func (*UnregisterLogTrackingReply) String ¶
func (x *UnregisterLogTrackingReply) String() string
type UnregisterLogTrackingRequest ¶
type UnregisterLogTrackingRequest struct {
FilterName string `protobuf:"bytes,1,opt,name=filterName,proto3" json:"filterName,omitempty"`
// contains filtered or unexported fields
}
Unregister a filter by name/id.
func (*UnregisterLogTrackingRequest) Descriptor
deprecated
func (*UnregisterLogTrackingRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterLogTrackingRequest.ProtoReflect.Descriptor instead.
func (*UnregisterLogTrackingRequest) GetFilterName ¶
func (x *UnregisterLogTrackingRequest) GetFilterName() string
func (*UnregisterLogTrackingRequest) ProtoMessage ¶
func (*UnregisterLogTrackingRequest) ProtoMessage()
func (*UnregisterLogTrackingRequest) ProtoReflect ¶
func (x *UnregisterLogTrackingRequest) ProtoReflect() protoreflect.Message
func (*UnregisterLogTrackingRequest) Reset ¶
func (x *UnregisterLogTrackingRequest) Reset()
func (*UnregisterLogTrackingRequest) String ¶
func (x *UnregisterLogTrackingRequest) String() string
type UnsafeSolanaServer ¶
type UnsafeSolanaServer interface {
// contains filtered or unexported methods
}
UnsafeSolanaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SolanaServer will result in compilation errors.