Documentation
¶
Index ¶
- Variables
- func ConvertComparisonOperatorFromProto(op ComparisonOperator) (primitives.ComparisonOperator, error)
- func ConvertGetAccountInfoRequestFromProto(p *GetAccountInfoWithOptsRequest) (typesolana.GetAccountInfoRequest, error)
- func ConvertGetBalanceRequestFromProto(p *GetBalanceRequest) (typesolana.GetBalanceRequest, error)
- func ConvertGetBlockRequestFromProto(p *GetBlockRequest) (*typesolana.GetBlockRequest, error)
- func ConvertGetFeeForMessageRequestFromProto(p *GetFeeForMessageRequest) (*typesolana.GetFeeForMessageRequest, error)
- func ConvertGetMultipleAccountsRequestFromProto(p *GetMultipleAccountsWithOptsRequest) (*typesolana.GetMultipleAccountsRequest, error)
- func ConvertGetSignatureStatusesRequestFromProto(p *GetSignatureStatusesRequest) (*typesolana.GetSignatureStatusesRequest, error)
- func ConvertGetSlotHeightRequestFromProto(p *GetSlotHeightRequest) (typesolana.GetSlotHeightRequest, error)
- func ConvertGetTransactionRequestFromProto(p *GetTransactionRequest) (typesolana.GetTransactionRequest, error)
- func ConvertLogFromProto(p *Log) (*typesolana.Log, error)
- func ConvertSimulateTXRequestFromProto(p *SimulateTXRequest) (typesolana.SimulateTXRequest, error)
- func ConvertValueComparatorsFromProto(comparers []*ValueComparator) ([]primitives.ValueComparator, 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 AccountMeta
- func (*AccountMeta) Descriptor() ([]byte, []int)deprecated
- func (x *AccountMeta) GetIsWritable() bool
- func (x *AccountMeta) GetPublicKey() []byte
- func (*AccountMeta) ProtoMessage()
- func (x *AccountMeta) ProtoReflect() protoreflect.Message
- func (x *AccountMeta) Reset()
- func (x *AccountMeta) String() string
- type CPIFilterConfig
- func (*CPIFilterConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CPIFilterConfig) GetDestAddress() []byte
- func (x *CPIFilterConfig) GetMethodName() []byte
- func (*CPIFilterConfig) ProtoMessage()
- func (x *CPIFilterConfig) ProtoReflect() protoreflect.Message
- func (x *CPIFilterConfig) Reset()
- func (x *CPIFilterConfig) 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 ComparisonOperator
- func (ComparisonOperator) Descriptor() protoreflect.EnumDescriptor
- func (x ComparisonOperator) Enum() *ComparisonOperator
- func (ComparisonOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComparisonOperator) Number() protoreflect.EnumNumber
- func (x ComparisonOperator) String() string
- func (ComparisonOperator) 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
- 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 FilterLogTriggerRequest
- func (*FilterLogTriggerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FilterLogTriggerRequest) GetAddress() []byte
- func (x *FilterLogTriggerRequest) GetContractIdlJson() []byte
- func (x *FilterLogTriggerRequest) GetCpiFilterConfig() *CPIFilterConfig
- func (x *FilterLogTriggerRequest) GetEventName() string
- func (x *FilterLogTriggerRequest) GetName() string
- func (x *FilterLogTriggerRequest) GetSubkeys() []*SubkeyConfig
- func (*FilterLogTriggerRequest) ProtoMessage()
- func (x *FilterLogTriggerRequest) ProtoReflect() protoreflect.Message
- func (x *FilterLogTriggerRequest) Reset()
- func (x *FilterLogTriggerRequest) String() string
- 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) 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 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) 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 GetProgramAccountsOpts
- func (*GetProgramAccountsOpts) Descriptor() ([]byte, []int)deprecated
- func (x *GetProgramAccountsOpts) GetCommitment() CommitmentType
- func (x *GetProgramAccountsOpts) GetDataSlice() *DataSlice
- func (x *GetProgramAccountsOpts) GetEncoding() EncodingType
- func (x *GetProgramAccountsOpts) GetFilters() []*RPCFilter
- func (*GetProgramAccountsOpts) ProtoMessage()
- func (x *GetProgramAccountsOpts) ProtoReflect() protoreflect.Message
- func (x *GetProgramAccountsOpts) Reset()
- func (x *GetProgramAccountsOpts) String() string
- type GetProgramAccountsReply
- func (*GetProgramAccountsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetProgramAccountsReply) GetValue() []*KeyedAccount
- func (*GetProgramAccountsReply) ProtoMessage()
- func (x *GetProgramAccountsReply) ProtoReflect() protoreflect.Message
- func (x *GetProgramAccountsReply) Reset()
- func (x *GetProgramAccountsReply) String() string
- type GetProgramAccountsRequest
- func (*GetProgramAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProgramAccountsRequest) GetOpts() *GetProgramAccountsOpts
- func (x *GetProgramAccountsRequest) GetProgram() []byte
- func (*GetProgramAccountsRequest) ProtoMessage()
- func (x *GetProgramAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *GetProgramAccountsRequest) Reset()
- func (x *GetProgramAccountsRequest) 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 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 KeyedAccount
- func (*KeyedAccount) Descriptor() ([]byte, []int)deprecated
- func (x *KeyedAccount) GetAccount() *Account
- func (x *KeyedAccount) GetPubkey() []byte
- func (*KeyedAccount) ProtoMessage()
- func (x *KeyedAccount) ProtoReflect() protoreflect.Message
- func (x *KeyedAccount) Reset()
- func (x *KeyedAccount) 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 RPCFilter
- type RPCFilterMemcmp
- func (*RPCFilterMemcmp) Descriptor() ([]byte, []int)deprecated
- func (x *RPCFilterMemcmp) GetBytes() []byte
- func (x *RPCFilterMemcmp) GetOffset() uint64
- func (*RPCFilterMemcmp) ProtoMessage()
- func (x *RPCFilterMemcmp) ProtoReflect() protoreflect.Message
- func (x *RPCFilterMemcmp) Reset()
- func (x *RPCFilterMemcmp) String() string
- type ReceiverContractExecutionStatus
- func (ReceiverContractExecutionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ReceiverContractExecutionStatus) Enum() *ReceiverContractExecutionStatus
- func (ReceiverContractExecutionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReceiverContractExecutionStatus) Number() protoreflect.EnumNumber
- func (x ReceiverContractExecutionStatus) String() string
- func (ReceiverContractExecutionStatus) Type() protoreflect.EnumType
- 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 SubkeyConfig
- func (*SubkeyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SubkeyConfig) GetComparers() []*ValueComparator
- func (x *SubkeyConfig) GetPath() []string
- func (*SubkeyConfig) ProtoMessage()
- func (x *SubkeyConfig) ProtoReflect() protoreflect.Message
- func (x *SubkeyConfig) Reset()
- func (x *SubkeyConfig) 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 ValueComparator
- func (*ValueComparator) Descriptor() ([]byte, []int)deprecated
- func (x *ValueComparator) GetOperator() ComparisonOperator
- func (x *ValueComparator) GetValue() []byte
- func (*ValueComparator) ProtoMessage()
- func (x *ValueComparator) ProtoReflect() protoreflect.Message
- func (x *ValueComparator) Reset()
- func (x *ValueComparator) String() string
- type WriteReportReply
- func (*WriteReportReply) Descriptor() ([]byte, []int)deprecated
- func (x *WriteReportReply) GetErrorMessage() string
- func (x *WriteReportReply) GetReceiverContractExecutionStatus() ReceiverContractExecutionStatus
- func (x *WriteReportReply) GetTransactionFee() uint64
- func (x *WriteReportReply) GetTxSignature() []byte
- func (x *WriteReportReply) GetTxStatus() TxStatus
- func (*WriteReportReply) ProtoMessage()
- func (x *WriteReportReply) ProtoReflect() protoreflect.Message
- func (x *WriteReportReply) Reset()
- func (x *WriteReportReply) String() string
- type WriteReportRequest
- func (*WriteReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteReportRequest) GetComputeConfig() *ComputeConfig
- func (x *WriteReportRequest) GetReceiver() []byte
- func (x *WriteReportRequest) GetRemainingAccounts() []*AccountMeta
- func (x *WriteReportRequest) GetReport() *sdk.ReportResponse
- func (*WriteReportRequest) ProtoMessage()
- func (x *WriteReportRequest) ProtoReflect() protoreflect.Message
- func (x *WriteReportRequest) Reset()
- func (x *WriteReportRequest) String() string
Constants ¶
This section is empty.
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 ( ComparisonOperator_name = map[int32]string{ 0: "COMPARISON_OPERATOR_EQ", 1: "COMPARISON_OPERATOR_NEQ", 2: "COMPARISON_OPERATOR_GT", 3: "COMPARISON_OPERATOR_LT", 4: "COMPARISON_OPERATOR_GTE", 5: "COMPARISON_OPERATOR_LTE", } ComparisonOperator_value = map[string]int32{ "COMPARISON_OPERATOR_EQ": 0, "COMPARISON_OPERATOR_NEQ": 1, "COMPARISON_OPERATOR_GT": 2, "COMPARISON_OPERATOR_LT": 3, "COMPARISON_OPERATOR_GTE": 4, "COMPARISON_OPERATOR_LTE": 5, } )
Enum value maps for ComparisonOperator.
var ( ReceiverContractExecutionStatus_name = map[int32]string{ 0: "RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS", 1: "RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED", } ReceiverContractExecutionStatus_value = map[string]int32{ "RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS": 0, "RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED": 1, } )
Enum value maps for ReceiverContractExecutionStatus.
var File_capabilities_blockchain_solana_v1alpha_client_proto protoreflect.FileDescriptor
Functions ¶
func ConvertComparisonOperatorFromProto ¶ added in v0.11.0
func ConvertComparisonOperatorFromProto(op ComparisonOperator) (primitives.ComparisonOperator, error)
ConvertComparisonOperatorFromProto converts a proto ComparisonOperator to primitives.ComparisonOperator
func ConvertGetAccountInfoRequestFromProto ¶ added in v1.3.0
func ConvertGetAccountInfoRequestFromProto(p *GetAccountInfoWithOptsRequest) (typesolana.GetAccountInfoRequest, error)
ConvertGetAccountInfoRequestFromProto converts GetAccountInfoWithOptsRequest to GetAccountInfoRequest.
func ConvertGetBalanceRequestFromProto ¶ added in v1.3.0
func ConvertGetBalanceRequestFromProto(p *GetBalanceRequest) (typesolana.GetBalanceRequest, error)
ConvertGetBalanceRequestFromProto converts GetBalanceRequest to domain type.
func ConvertGetBlockRequestFromProto ¶ added in v1.3.0
func ConvertGetBlockRequestFromProto(p *GetBlockRequest) (*typesolana.GetBlockRequest, error)
ConvertGetBlockRequestFromProto converts GetBlockRequest to domain type.
func ConvertGetFeeForMessageRequestFromProto ¶ added in v1.3.0
func ConvertGetFeeForMessageRequestFromProto(p *GetFeeForMessageRequest) (*typesolana.GetFeeForMessageRequest, error)
ConvertGetFeeForMessageRequestFromProto converts GetFeeForMessageRequest to domain type.
func ConvertGetMultipleAccountsRequestFromProto ¶ added in v1.3.0
func ConvertGetMultipleAccountsRequestFromProto(p *GetMultipleAccountsWithOptsRequest) (*typesolana.GetMultipleAccountsRequest, error)
ConvertGetMultipleAccountsRequestFromProto converts GetMultipleAccountsWithOptsRequest to GetMultipleAccountsRequest.
func ConvertGetSignatureStatusesRequestFromProto ¶ added in v1.3.0
func ConvertGetSignatureStatusesRequestFromProto(p *GetSignatureStatusesRequest) (*typesolana.GetSignatureStatusesRequest, error)
ConvertGetSignatureStatusesRequestFromProto converts GetSignatureStatusesRequest to domain type.
func ConvertGetSlotHeightRequestFromProto ¶ added in v1.3.0
func ConvertGetSlotHeightRequestFromProto(p *GetSlotHeightRequest) (typesolana.GetSlotHeightRequest, error)
ConvertGetSlotHeightRequestFromProto converts GetSlotHeightRequest to domain type.
func ConvertGetTransactionRequestFromProto ¶ added in v1.3.0
func ConvertGetTransactionRequestFromProto(p *GetTransactionRequest) (typesolana.GetTransactionRequest, error)
ConvertGetTransactionRequestFromProto converts GetTransactionRequest to domain type.
func ConvertLogFromProto ¶ added in v0.11.0
func ConvertLogFromProto(p *Log) (*typesolana.Log, error)
ConvertLogFromProto converts a proto Log to typesolana.Log
func ConvertSimulateTXRequestFromProto ¶ added in v1.3.0
func ConvertSimulateTXRequestFromProto(p *SimulateTXRequest) (typesolana.SimulateTXRequest, error)
ConvertSimulateTXRequestFromProto converts SimulateTXRequest to domain type.
func ConvertValueComparatorsFromProto ¶ added in v0.11.0
func ConvertValueComparatorsFromProto(comparers []*ValueComparator) ([]primitives.ValueComparator, error)
ConvertValueComparatorsFromProto converts proto ValueComparator slice to primitives.ValueComparator slice
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 (*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 AccountMeta ¶
type AccountMeta struct {
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // 32 bytes account public key
IsWritable bool `protobuf:"varint,2,opt,name=is_writable,json=isWritable,proto3" json:"is_writable,omitempty"` // write flag
// contains filtered or unexported fields
}
All metas are non-signers.
func (*AccountMeta) Descriptor
deprecated
func (*AccountMeta) Descriptor() ([]byte, []int)
Deprecated: Use AccountMeta.ProtoReflect.Descriptor instead.
func (*AccountMeta) GetIsWritable ¶
func (x *AccountMeta) GetIsWritable() bool
func (*AccountMeta) GetPublicKey ¶
func (x *AccountMeta) GetPublicKey() []byte
func (*AccountMeta) ProtoMessage ¶
func (*AccountMeta) ProtoMessage()
func (*AccountMeta) ProtoReflect ¶
func (x *AccountMeta) ProtoReflect() protoreflect.Message
func (*AccountMeta) Reset ¶
func (x *AccountMeta) Reset()
func (*AccountMeta) String ¶
func (x *AccountMeta) String() string
type CPIFilterConfig ¶ added in v1.3.0
type CPIFilterConfig struct {
DestAddress []byte `protobuf:"bytes,1,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"`
MethodName []byte `protobuf:"bytes,2,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
// contains filtered or unexported fields
}
func (*CPIFilterConfig) Descriptor
deprecated
added in
v1.3.0
func (*CPIFilterConfig) Descriptor() ([]byte, []int)
Deprecated: Use CPIFilterConfig.ProtoReflect.Descriptor instead.
func (*CPIFilterConfig) GetDestAddress ¶ added in v1.3.0
func (x *CPIFilterConfig) GetDestAddress() []byte
func (*CPIFilterConfig) GetMethodName ¶ added in v1.3.0
func (x *CPIFilterConfig) GetMethodName() []byte
func (*CPIFilterConfig) ProtoMessage ¶ added in v1.3.0
func (*CPIFilterConfig) ProtoMessage()
func (*CPIFilterConfig) ProtoReflect ¶ added in v1.3.0
func (x *CPIFilterConfig) ProtoReflect() protoreflect.Message
func (*CPIFilterConfig) Reset ¶ added in v1.3.0
func (x *CPIFilterConfig) Reset()
func (*CPIFilterConfig) String ¶ added in v1.3.0
func (x *CPIFilterConfig) 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 (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 ComparisonOperator ¶
type ComparisonOperator int32
const ( ComparisonOperator_COMPARISON_OPERATOR_EQ ComparisonOperator = 0 ComparisonOperator_COMPARISON_OPERATOR_NEQ ComparisonOperator = 1 ComparisonOperator_COMPARISON_OPERATOR_GT ComparisonOperator = 2 ComparisonOperator_COMPARISON_OPERATOR_LT ComparisonOperator = 3 ComparisonOperator_COMPARISON_OPERATOR_GTE ComparisonOperator = 4 ComparisonOperator_COMPARISON_OPERATOR_LTE ComparisonOperator = 5 )
func ConvertComparisonOperatorToProto ¶ added in v0.11.0
func ConvertComparisonOperatorToProto(op primitives.ComparisonOperator) (ComparisonOperator, error)
ConvertComparisonOperatorToProto converts a primitives.ComparisonOperator to proto ComparisonOperator
func (ComparisonOperator) Descriptor ¶
func (ComparisonOperator) Descriptor() protoreflect.EnumDescriptor
func (ComparisonOperator) Enum ¶
func (x ComparisonOperator) Enum() *ComparisonOperator
func (ComparisonOperator) EnumDescriptor
deprecated
func (ComparisonOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComparisonOperator.Descriptor instead.
func (ComparisonOperator) Number ¶
func (x ComparisonOperator) Number() protoreflect.EnumNumber
func (ComparisonOperator) String ¶
func (x ComparisonOperator) String() string
func (ComparisonOperator) Type ¶
func (ComparisonOperator) 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 (*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)
// contains filtered or unexported fields
}
Compute budget configuration when submitting txs.
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) 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 (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 `` // how it was encoded originally
/* 127-byte string literal not displayed */
// 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 `` /* 127-byte string literal not displayed */
// 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 (*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 (*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 (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 FilterLogTriggerRequest ¶
type FilterLogTriggerRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // Solana PublicKey (32 bytes)
EventName string `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
ContractIdlJson []byte `protobuf:"bytes,4,opt,name=contract_idl_json,json=contractIdlJson,proto3" json:"contract_idl_json,omitempty"`
Subkeys []*SubkeyConfig `protobuf:"bytes,5,rep,name=subkeys,proto3" json:"subkeys,omitempty"`
CpiFilterConfig *CPIFilterConfig `protobuf:"bytes,6,opt,name=cpi_filter_config,json=cpiFilterConfig,proto3,oneof" json:"cpi_filter_config,omitempty"`
// contains filtered or unexported fields
}
func (*FilterLogTriggerRequest) Descriptor
deprecated
func (*FilterLogTriggerRequest) Descriptor() ([]byte, []int)
Deprecated: Use FilterLogTriggerRequest.ProtoReflect.Descriptor instead.
func (*FilterLogTriggerRequest) GetAddress ¶
func (x *FilterLogTriggerRequest) GetAddress() []byte
func (*FilterLogTriggerRequest) GetContractIdlJson ¶ added in v1.3.0
func (x *FilterLogTriggerRequest) GetContractIdlJson() []byte
func (*FilterLogTriggerRequest) GetCpiFilterConfig ¶ added in v1.3.0
func (x *FilterLogTriggerRequest) GetCpiFilterConfig() *CPIFilterConfig
func (*FilterLogTriggerRequest) GetEventName ¶
func (x *FilterLogTriggerRequest) GetEventName() string
func (*FilterLogTriggerRequest) GetName ¶
func (x *FilterLogTriggerRequest) GetName() string
func (*FilterLogTriggerRequest) GetSubkeys ¶
func (x *FilterLogTriggerRequest) GetSubkeys() []*SubkeyConfig
func (*FilterLogTriggerRequest) ProtoMessage ¶
func (*FilterLogTriggerRequest) ProtoMessage()
func (*FilterLogTriggerRequest) ProtoReflect ¶
func (x *FilterLogTriggerRequest) ProtoReflect() protoreflect.Message
func (*FilterLogTriggerRequest) Reset ¶
func (x *FilterLogTriggerRequest) Reset()
func (*FilterLogTriggerRequest) String ¶
func (x *FilterLogTriggerRequest) String() string
type GetAccountInfoOpts ¶
type GetAccountInfoOpts struct {
Encoding EncodingType `` // data encoding
/* 127-byte string literal not displayed */
Commitment CommitmentType `` // read consistency
/* 133-byte string literal not displayed */
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 (*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 {
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 ConvertGetAccountInfoReplyToProto ¶ added in v1.3.0
func ConvertGetAccountInfoReplyToProto(r *typesolana.GetAccountInfoReply) (*GetAccountInfoWithOptsReply, error)
ConvertGetAccountInfoReplyToProto converts GetAccountInfoReply to GetAccountInfoWithOptsReply.
func (*GetAccountInfoWithOptsReply) Descriptor
deprecated
func (*GetAccountInfoWithOptsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountInfoWithOptsReply.ProtoReflect.Descriptor instead.
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 ¶ added in v1.3.0
func ConvertGetBalanceReplyToProto(r *typesolana.GetBalanceReply) (*GetBalanceReply, error)
ConvertGetBalanceReplyToProto converts GetBalanceReply to proto.
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 `` // read consistency
/* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
Request for GetBalance.
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 `` // read consistency
/* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
Options for GetBlock.
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 ¶ added in v1.3.0
func ConvertGetBlockReplyToProto(r *typesolana.GetBlockReply) (*GetBlockReply, error)
ConvertGetBlockReplyToProto converts GetBlockReply to proto.
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 (*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 ¶ added in v1.3.0
func ConvertGetFeeForMessageReplyToProto(r *typesolana.GetFeeForMessageReply) (*GetFeeForMessageReply, error)
ConvertGetFeeForMessageReplyToProto converts GetFeeForMessageReply to proto.
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 `` // read consistency
/* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
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 GetMultipleAccountsOpts ¶
type GetMultipleAccountsOpts struct {
Encoding EncodingType `` /* 127-byte string literal not displayed */
Commitment CommitmentType `` /* 133-byte string literal not displayed */
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 (*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 {
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 ¶ added in v1.3.0
func ConvertGetMultipleAccountsReplyToProto(r *typesolana.GetMultipleAccountsReply) (*GetMultipleAccountsWithOptsReply, error)
ConvertGetMultipleAccountsReplyToProto converts GetMultipleAccountsReply to GetMultipleAccountsWithOptsReply.
func (*GetMultipleAccountsWithOptsReply) Descriptor
deprecated
func (*GetMultipleAccountsWithOptsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetMultipleAccountsWithOptsReply.ProtoReflect.Descriptor instead.
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 (*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 GetProgramAccountsOpts ¶ added in v1.3.0
type GetProgramAccountsOpts struct {
Encoding EncodingType `` /* 127-byte string literal not displayed */
Commitment CommitmentType `` /* 133-byte string literal not displayed */
DataSlice *DataSlice `protobuf:"bytes,3,opt,name=data_slice,json=dataSlice,proto3" json:"data_slice,omitempty"`
Filters []*RPCFilter `protobuf:"bytes,4,rep,name=filters,proto3" json:"filters,omitempty"`
// contains filtered or unexported fields
}
Options for GetProgramAccounts.
func (*GetProgramAccountsOpts) Descriptor
deprecated
added in
v1.3.0
func (*GetProgramAccountsOpts) Descriptor() ([]byte, []int)
Deprecated: Use GetProgramAccountsOpts.ProtoReflect.Descriptor instead.
func (*GetProgramAccountsOpts) GetCommitment ¶ added in v1.3.0
func (x *GetProgramAccountsOpts) GetCommitment() CommitmentType
func (*GetProgramAccountsOpts) GetDataSlice ¶ added in v1.3.0
func (x *GetProgramAccountsOpts) GetDataSlice() *DataSlice
func (*GetProgramAccountsOpts) GetEncoding ¶ added in v1.3.0
func (x *GetProgramAccountsOpts) GetEncoding() EncodingType
func (*GetProgramAccountsOpts) GetFilters ¶ added in v1.3.0
func (x *GetProgramAccountsOpts) GetFilters() []*RPCFilter
func (*GetProgramAccountsOpts) ProtoMessage ¶ added in v1.3.0
func (*GetProgramAccountsOpts) ProtoMessage()
func (*GetProgramAccountsOpts) ProtoReflect ¶ added in v1.3.0
func (x *GetProgramAccountsOpts) ProtoReflect() protoreflect.Message
func (*GetProgramAccountsOpts) Reset ¶ added in v1.3.0
func (x *GetProgramAccountsOpts) Reset()
func (*GetProgramAccountsOpts) String ¶ added in v1.3.0
func (x *GetProgramAccountsOpts) String() string
type GetProgramAccountsReply ¶ added in v1.3.0
type GetProgramAccountsReply struct {
Value []*KeyedAccount `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
Reply for GetProgramAccounts.
func (*GetProgramAccountsReply) Descriptor
deprecated
added in
v1.3.0
func (*GetProgramAccountsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetProgramAccountsReply.ProtoReflect.Descriptor instead.
func (*GetProgramAccountsReply) GetValue ¶ added in v1.3.0
func (x *GetProgramAccountsReply) GetValue() []*KeyedAccount
func (*GetProgramAccountsReply) ProtoMessage ¶ added in v1.3.0
func (*GetProgramAccountsReply) ProtoMessage()
func (*GetProgramAccountsReply) ProtoReflect ¶ added in v1.3.0
func (x *GetProgramAccountsReply) ProtoReflect() protoreflect.Message
func (*GetProgramAccountsReply) Reset ¶ added in v1.3.0
func (x *GetProgramAccountsReply) Reset()
func (*GetProgramAccountsReply) String ¶ added in v1.3.0
func (x *GetProgramAccountsReply) String() string
type GetProgramAccountsRequest ¶ added in v1.3.0
type GetProgramAccountsRequest struct {
Program []byte `protobuf:"bytes,1,opt,name=program,proto3" json:"program,omitempty"` // 32-byte program Pubkey
Opts *GetProgramAccountsOpts `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"`
// contains filtered or unexported fields
}
Request for GetProgramAccounts.
func (*GetProgramAccountsRequest) Descriptor
deprecated
added in
v1.3.0
func (*GetProgramAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProgramAccountsRequest.ProtoReflect.Descriptor instead.
func (*GetProgramAccountsRequest) GetOpts ¶ added in v1.3.0
func (x *GetProgramAccountsRequest) GetOpts() *GetProgramAccountsOpts
func (*GetProgramAccountsRequest) GetProgram ¶ added in v1.3.0
func (x *GetProgramAccountsRequest) GetProgram() []byte
func (*GetProgramAccountsRequest) ProtoMessage ¶ added in v1.3.0
func (*GetProgramAccountsRequest) ProtoMessage()
func (*GetProgramAccountsRequest) ProtoReflect ¶ added in v1.3.0
func (x *GetProgramAccountsRequest) ProtoReflect() protoreflect.Message
func (*GetProgramAccountsRequest) Reset ¶ added in v1.3.0
func (x *GetProgramAccountsRequest) Reset()
func (*GetProgramAccountsRequest) String ¶ added in v1.3.0
func (x *GetProgramAccountsRequest) 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 ¶ added in v1.3.0
func ConvertGetSignatureStatusesReplyToProto(r *typesolana.GetSignatureStatusesReply) (*GetSignatureStatusesReply, error)
ConvertGetSignatureStatusesReplyToProto converts GetSignatureStatusesReply to proto.
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 (*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 `` /* 183-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 ¶ added in v1.3.0
func ConvertGetSlotHeightReplyToProto(r *typesolana.GetSlotHeightReply) (*GetSlotHeightReply, error)
ConvertGetSlotHeightReplyToProto converts GetSlotHeightReply to proto.
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 `` // read consistency
/* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
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 ¶ added in v1.3.0
func ConvertGetTransactionReplyToProto(r *typesolana.GetTransactionReply) (*GetTransactionReply, error)
ConvertGetTransactionReplyToProto converts GetTransactionReply to proto.
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 (*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 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 (*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 KeyedAccount ¶ added in v1.3.0
type KeyedAccount struct {
Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` // 32-byte Pubkey
Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
// contains filtered or unexported fields
}
Program-owned account with its pubkey.
func (*KeyedAccount) Descriptor
deprecated
added in
v1.3.0
func (*KeyedAccount) Descriptor() ([]byte, []int)
Deprecated: Use KeyedAccount.ProtoReflect.Descriptor instead.
func (*KeyedAccount) GetAccount ¶ added in v1.3.0
func (x *KeyedAccount) GetAccount() *Account
func (*KeyedAccount) GetPubkey ¶ added in v1.3.0
func (x *KeyedAccount) GetPubkey() []byte
func (*KeyedAccount) ProtoMessage ¶ added in v1.3.0
func (*KeyedAccount) ProtoMessage()
func (*KeyedAccount) ProtoReflect ¶ added in v1.3.0
func (x *KeyedAccount) ProtoReflect() protoreflect.Message
func (*KeyedAccount) Reset ¶ added in v1.3.0
func (x *KeyedAccount) Reset()
func (*KeyedAccount) String ¶ added in v1.3.0
func (x *KeyedAccount) 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 (*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"` // Chain identifier
LogIndex int64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` // Index of the log within the block
BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // 32-byte block hash
BlockNumber int64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // Block/slot number
BlockTimestamp uint64 `protobuf:"varint,5,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"` // Unix timestamp of the block
Address []byte `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` // 32-byte program PublicKey
EventSig []byte `protobuf:"bytes,7,opt,name=event_sig,json=eventSig,proto3" json:"event_sig,omitempty"` // 8-byte event signature
TxHash []byte `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // 64-byte transaction signature
Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` // Decoded event data
SequenceNum int64 `protobuf:"varint,10,opt,name=sequence_num,json=sequenceNum,proto3" json:"sequence_num,omitempty"` // Sequence number for ordering
Error *string `protobuf:"bytes,11,opt,name=error,proto3,oneof" json:"error,omitempty"` // Error message if log processing failed
// contains filtered or unexported fields
}
func ConvertLogToProto ¶ added in v0.11.0
func ConvertLogToProto(l *typesolana.Log) *Log
ConvertLogToProto converts a typesolana.Log to proto 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 (*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 (*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 (*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 RPCFilter ¶ added in v1.3.0
type RPCFilter struct {
Memcmp *RPCFilterMemcmp `protobuf:"bytes,1,opt,name=memcmp,proto3" json:"memcmp,omitempty"`
DataSize uint64 `protobuf:"varint,2,opt,name=data_size,json=dataSize,proto3" json:"data_size,omitempty"` // match accounts with this data length
// contains filtered or unexported fields
}
Account filter for getProgramAccounts (memcmp or data size).
func (*RPCFilter) Descriptor
deprecated
added in
v1.3.0
func (*RPCFilter) GetDataSize ¶ added in v1.3.0
func (*RPCFilter) GetMemcmp ¶ added in v1.3.0
func (x *RPCFilter) GetMemcmp() *RPCFilterMemcmp
func (*RPCFilter) ProtoMessage ¶ added in v1.3.0
func (*RPCFilter) ProtoMessage()
func (*RPCFilter) ProtoReflect ¶ added in v1.3.0
func (x *RPCFilter) ProtoReflect() protoreflect.Message
type RPCFilterMemcmp ¶ added in v1.3.0
type RPCFilterMemcmp struct {
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // byte offset into account data
Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` // data to match (RPC encodes as base58)
// contains filtered or unexported fields
}
Memcmp filter for getProgramAccounts.
func (*RPCFilterMemcmp) Descriptor
deprecated
added in
v1.3.0
func (*RPCFilterMemcmp) Descriptor() ([]byte, []int)
Deprecated: Use RPCFilterMemcmp.ProtoReflect.Descriptor instead.
func (*RPCFilterMemcmp) GetBytes ¶ added in v1.3.0
func (x *RPCFilterMemcmp) GetBytes() []byte
func (*RPCFilterMemcmp) GetOffset ¶ added in v1.3.0
func (x *RPCFilterMemcmp) GetOffset() uint64
func (*RPCFilterMemcmp) ProtoMessage ¶ added in v1.3.0
func (*RPCFilterMemcmp) ProtoMessage()
func (*RPCFilterMemcmp) ProtoReflect ¶ added in v1.3.0
func (x *RPCFilterMemcmp) ProtoReflect() protoreflect.Message
func (*RPCFilterMemcmp) Reset ¶ added in v1.3.0
func (x *RPCFilterMemcmp) Reset()
func (*RPCFilterMemcmp) String ¶ added in v1.3.0
func (x *RPCFilterMemcmp) String() string
type ReceiverContractExecutionStatus ¶
type ReceiverContractExecutionStatus int32
const ( ReceiverContractExecutionStatus_RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS ReceiverContractExecutionStatus = 0 ReceiverContractExecutionStatus_RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED ReceiverContractExecutionStatus = 1 )
func (ReceiverContractExecutionStatus) Descriptor ¶
func (ReceiverContractExecutionStatus) Descriptor() protoreflect.EnumDescriptor
func (ReceiverContractExecutionStatus) Enum ¶
func (x ReceiverContractExecutionStatus) Enum() *ReceiverContractExecutionStatus
func (ReceiverContractExecutionStatus) EnumDescriptor
deprecated
func (ReceiverContractExecutionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReceiverContractExecutionStatus.Descriptor instead.
func (ReceiverContractExecutionStatus) Number ¶
func (x ReceiverContractExecutionStatus) Number() protoreflect.EnumNumber
func (ReceiverContractExecutionStatus) String ¶
func (x ReceiverContractExecutionStatus) String() string
func (ReceiverContractExecutionStatus) Type ¶
func (ReceiverContractExecutionStatus) Type() protoreflect.EnumType
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 (*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 `` // read consistency
/* 133-byte string literal not displayed */
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 (*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 ¶ added in v1.3.0
func ConvertSimulateTXReplyToProto(r *typesolana.SimulateTXReply) (*SimulateTXReply, error)
ConvertSimulateTXReplyToProto converts SimulateTXReply to proto.
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 (*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 `` // account data encoding
/* 127-byte string literal not displayed */
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 (*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 SubkeyConfig ¶
type SubkeyConfig struct {
Path []string `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"`
Comparers []*ValueComparator `protobuf:"bytes,2,rep,name=comparers,proto3" json:"comparers,omitempty"`
// contains filtered or unexported fields
}
func (*SubkeyConfig) Descriptor
deprecated
func (*SubkeyConfig) Descriptor() ([]byte, []int)
Deprecated: Use SubkeyConfig.ProtoReflect.Descriptor instead.
func (*SubkeyConfig) GetComparers ¶
func (x *SubkeyConfig) GetComparers() []*ValueComparator
func (*SubkeyConfig) GetPath ¶
func (x *SubkeyConfig) GetPath() []string
func (*SubkeyConfig) ProtoMessage ¶
func (*SubkeyConfig) ProtoMessage()
func (*SubkeyConfig) ProtoReflect ¶
func (x *SubkeyConfig) ProtoReflect() protoreflect.Message
func (*SubkeyConfig) Reset ¶
func (x *SubkeyConfig) Reset()
func (*SubkeyConfig) String ¶
func (x *SubkeyConfig) 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 (*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 (*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 (*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 (*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 ValueComparator ¶
type ValueComparator struct {
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
Operator ComparisonOperator `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
func ConvertValueComparatorsToProto ¶ added in v0.11.0
func ConvertValueComparatorsToProto(comparers []primitives.ValueComparator) ([]*ValueComparator, error)
ConvertValueComparatorsToProto converts primitives.ValueComparator slice to proto ValueComparator slice
func (*ValueComparator) Descriptor
deprecated
func (*ValueComparator) Descriptor() ([]byte, []int)
Deprecated: Use ValueComparator.ProtoReflect.Descriptor instead.
func (*ValueComparator) GetOperator ¶
func (x *ValueComparator) GetOperator() ComparisonOperator
func (*ValueComparator) GetValue ¶
func (x *ValueComparator) GetValue() []byte
func (*ValueComparator) ProtoMessage ¶
func (*ValueComparator) ProtoMessage()
func (*ValueComparator) ProtoReflect ¶
func (x *ValueComparator) ProtoReflect() protoreflect.Message
func (*ValueComparator) Reset ¶
func (x *ValueComparator) Reset()
func (*ValueComparator) String ¶
func (x *ValueComparator) String() string
type WriteReportReply ¶
type WriteReportReply struct {
TxStatus TxStatus `` /* 139-byte string literal not displayed */
ReceiverContractExecutionStatus *ReceiverContractExecutionStatus `` /* 241-byte string literal not displayed */
TxSignature []byte `protobuf:"bytes,3,opt,name=tx_signature,json=txSignature,proto3,oneof" json:"tx_signature,omitempty"`
TransactionFee *uint64 `protobuf:"varint,4,opt,name=transaction_fee,json=transactionFee,proto3,oneof" json:"transaction_fee,omitempty"`
ErrorMessage *string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*WriteReportReply) Descriptor
deprecated
func (*WriteReportReply) Descriptor() ([]byte, []int)
Deprecated: Use WriteReportReply.ProtoReflect.Descriptor instead.
func (*WriteReportReply) GetErrorMessage ¶
func (x *WriteReportReply) GetErrorMessage() string
func (*WriteReportReply) GetReceiverContractExecutionStatus ¶
func (x *WriteReportReply) GetReceiverContractExecutionStatus() ReceiverContractExecutionStatus
func (*WriteReportReply) GetTransactionFee ¶
func (x *WriteReportReply) GetTransactionFee() uint64
func (*WriteReportReply) GetTxSignature ¶
func (x *WriteReportReply) GetTxSignature() []byte
func (*WriteReportReply) GetTxStatus ¶
func (x *WriteReportReply) GetTxStatus() TxStatus
func (*WriteReportReply) ProtoMessage ¶
func (*WriteReportReply) ProtoMessage()
func (*WriteReportReply) ProtoReflect ¶
func (x *WriteReportReply) ProtoReflect() protoreflect.Message
func (*WriteReportReply) Reset ¶
func (x *WriteReportReply) Reset()
func (*WriteReportReply) String ¶
func (x *WriteReportReply) String() string
type WriteReportRequest ¶
type WriteReportRequest struct {
RemainingAccounts []*AccountMeta `protobuf:"bytes,1,rep,name=remaining_accounts,json=remainingAccounts,proto3" json:"remaining_accounts,omitempty"` // accounts that are required by the receiver to accept the report
Receiver []byte `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // 32 bytes receiver
ComputeConfig *ComputeConfig `protobuf:"bytes,3,opt,name=compute_config,json=computeConfig,proto3,oneof" json:"compute_config,omitempty"`
Report *sdk.ReportResponse `protobuf:"bytes,4,opt,name=report,proto3" json:"report,omitempty"`
// contains filtered or unexported fields
}
func (*WriteReportRequest) Descriptor
deprecated
func (*WriteReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteReportRequest.ProtoReflect.Descriptor instead.
func (*WriteReportRequest) GetComputeConfig ¶
func (x *WriteReportRequest) GetComputeConfig() *ComputeConfig
func (*WriteReportRequest) GetReceiver ¶
func (x *WriteReportRequest) GetReceiver() []byte
func (*WriteReportRequest) GetRemainingAccounts ¶
func (x *WriteReportRequest) GetRemainingAccounts() []*AccountMeta
func (*WriteReportRequest) GetReport ¶
func (x *WriteReportRequest) GetReport() *sdk.ReportResponse
func (*WriteReportRequest) ProtoMessage ¶
func (*WriteReportRequest) ProtoMessage()
func (*WriteReportRequest) ProtoReflect ¶
func (x *WriteReportRequest) ProtoReflect() protoreflect.Message
func (*WriteReportRequest) Reset ¶
func (x *WriteReportRequest) Reset()
func (*WriteReportRequest) String ¶
func (x *WriteReportRequest) String() string