Documentation ¶
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetBlockHeight() *BlockHeight
- func (x *Block) GetBlockTime() *UnixTimestamp
- func (x *Block) GetBlockhash() string
- func (x *Block) GetFirehoseBlockID() string
- func (x *Block) GetFirehoseBlockLIBNum() uint64
- func (x *Block) GetFirehoseBlockNumber() uint64
- func (x *Block) GetFirehoseBlockParentID() string
- func (b *Block) GetFirehoseBlockParentNumber() uint64
- func (x *Block) GetFirehoseBlockTime() time.Time
- func (b *Block) GetFirehoseBlockVersion() int32
- func (x *Block) GetParentSlot() uint64
- func (x *Block) GetPreviousBlockhash() string
- func (x *Block) GetRewards() []*Reward
- func (x *Block) GetSlot() uint64
- func (x *Block) GetTransactions() []*ConfirmedTransaction
- func (x *Block) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockHeight
- type CompiledInstruction
- func (*CompiledInstruction) Descriptor() ([]byte, []int)deprecated
- func (x *CompiledInstruction) GetAccounts() []byte
- func (x *CompiledInstruction) GetData() []byte
- func (x *CompiledInstruction) GetProgramIdIndex() uint32
- func (*CompiledInstruction) ProtoMessage()
- func (x *CompiledInstruction) ProtoReflect() protoreflect.Message
- func (x *CompiledInstruction) Reset()
- func (x *CompiledInstruction) String() string
- type ConfirmedTransaction
- func (x *ConfirmedTransaction) AsBase58String() string
- func (*ConfirmedTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *ConfirmedTransaction) GetMeta() *TransactionStatusMeta
- func (x *ConfirmedTransaction) GetTransaction() *Transaction
- func (*ConfirmedTransaction) ProtoMessage()
- func (x *ConfirmedTransaction) ProtoReflect() protoreflect.Message
- func (x *ConfirmedTransaction) Reset()
- func (x *ConfirmedTransaction) String() string
- type InnerInstruction
- func (*InnerInstruction) Descriptor() ([]byte, []int)deprecated
- func (x *InnerInstruction) GetAccounts() []byte
- func (x *InnerInstruction) GetData() []byte
- func (x *InnerInstruction) GetProgramIdIndex() uint32
- func (x *InnerInstruction) GetStackHeight() uint32
- func (*InnerInstruction) ProtoMessage()
- func (x *InnerInstruction) ProtoReflect() protoreflect.Message
- func (x *InnerInstruction) Reset()
- func (x *InnerInstruction) String() string
- type InnerInstructions
- func (*InnerInstructions) Descriptor() ([]byte, []int)deprecated
- func (x *InnerInstructions) GetIndex() uint32
- func (x *InnerInstructions) GetInstructions() []*InnerInstruction
- func (*InnerInstructions) ProtoMessage()
- func (x *InnerInstructions) ProtoReflect() protoreflect.Message
- func (x *InnerInstructions) Reset()
- func (x *InnerInstructions) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAccountKeys() [][]byte
- func (x *Message) GetAddressTableLookups() []*MessageAddressTableLookup
- func (x *Message) GetHeader() *MessageHeader
- func (x *Message) GetInstructions() []*CompiledInstruction
- func (x *Message) GetRecentBlockhash() []byte
- func (x *Message) GetVersioned() bool
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageAddressTableLookup
- func (*MessageAddressTableLookup) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAddressTableLookup) GetAccountKey() []byte
- func (x *MessageAddressTableLookup) GetReadonlyIndexes() []byte
- func (x *MessageAddressTableLookup) GetWritableIndexes() []byte
- func (*MessageAddressTableLookup) ProtoMessage()
- func (x *MessageAddressTableLookup) ProtoReflect() protoreflect.Message
- func (x *MessageAddressTableLookup) Reset()
- func (x *MessageAddressTableLookup) 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 ReturnData
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)deprecated
- func (x *Reward) GetCommission() string
- func (x *Reward) GetLamports() int64
- func (x *Reward) GetPostBalance() uint64
- func (x *Reward) GetPubkey() string
- func (x *Reward) GetRewardType() RewardType
- func (*Reward) ProtoMessage()
- func (x *Reward) ProtoReflect() protoreflect.Message
- func (x *Reward) Reset()
- func (x *Reward) String() string
- type RewardType
- type Rewards
- type TokenBalance
- func (*TokenBalance) Descriptor() ([]byte, []int)deprecated
- func (x *TokenBalance) GetAccountIndex() uint32
- func (x *TokenBalance) GetMint() string
- func (x *TokenBalance) GetOwner() string
- func (x *TokenBalance) GetProgramId() string
- func (x *TokenBalance) GetUiTokenAmount() *UiTokenAmount
- func (*TokenBalance) ProtoMessage()
- func (x *TokenBalance) ProtoReflect() protoreflect.Message
- func (x *TokenBalance) Reset()
- func (x *TokenBalance) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetMessage() *Message
- func (x *Transaction) GetSignatures() [][]byte
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionError
- type TransactionStatusMeta
- func (*TransactionStatusMeta) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionStatusMeta) GetComputeUnitsConsumed() uint64
- func (x *TransactionStatusMeta) GetErr() *TransactionError
- func (x *TransactionStatusMeta) GetFee() uint64
- func (x *TransactionStatusMeta) GetInnerInstructions() []*InnerInstructions
- func (x *TransactionStatusMeta) GetLoadedReadonlyAddresses() [][]byte
- func (x *TransactionStatusMeta) GetLoadedWritableAddresses() [][]byte
- func (x *TransactionStatusMeta) GetLogMessages() []string
- func (x *TransactionStatusMeta) GetPostBalances() []uint64
- func (x *TransactionStatusMeta) GetPostTokenBalances() []*TokenBalance
- func (x *TransactionStatusMeta) GetPreBalances() []uint64
- func (x *TransactionStatusMeta) GetPreTokenBalances() []*TokenBalance
- func (x *TransactionStatusMeta) GetReturnData() *ReturnData
- func (x *TransactionStatusMeta) GetRewards() []*Reward
- func (*TransactionStatusMeta) ProtoMessage()
- func (x *TransactionStatusMeta) ProtoReflect() protoreflect.Message
- func (x *TransactionStatusMeta) Reset()
- func (x *TransactionStatusMeta) String() string
- type UiTokenAmount
- func (*UiTokenAmount) Descriptor() ([]byte, []int)deprecated
- func (x *UiTokenAmount) GetAmount() string
- func (x *UiTokenAmount) GetDecimals() uint32
- func (x *UiTokenAmount) GetUiAmount() float64
- func (x *UiTokenAmount) GetUiAmountString() string
- func (*UiTokenAmount) ProtoMessage()
- func (x *UiTokenAmount) ProtoReflect() protoreflect.Message
- func (x *UiTokenAmount) Reset()
- func (x *UiTokenAmount) String() string
- type UnixTimestamp
Constants ¶
This section is empty.
Variables ¶
var ( RewardType_name = map[int32]string{ 0: "Unspecified", 1: "Fee", 2: "Rent", 3: "Staking", 4: "Voting", } RewardType_value = map[string]int32{ "Unspecified": 0, "Fee": 1, "Rent": 2, "Staking": 3, "Voting": 4, } )
Enum value maps for RewardType.
var File_sf_solana_type_v1_type_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { PreviousBlockhash string `protobuf:"bytes,1,opt,name=previous_blockhash,json=previousBlockhash,proto3" json:"previous_blockhash,omitempty"` Blockhash string `protobuf:"bytes,2,opt,name=blockhash,proto3" json:"blockhash,omitempty"` ParentSlot uint64 `protobuf:"varint,3,opt,name=parent_slot,json=parentSlot,proto3" json:"parent_slot,omitempty"` Transactions []*ConfirmedTransaction `protobuf:"bytes,4,rep,name=transactions,proto3" json:"transactions,omitempty"` Rewards []*Reward `protobuf:"bytes,5,rep,name=rewards,proto3" json:"rewards,omitempty"` BlockTime *UnixTimestamp `protobuf:"bytes,6,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` BlockHeight *BlockHeight `protobuf:"bytes,7,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // StreamingFast additions Slot uint64 `protobuf:"varint,20,opt,name=slot,proto3" json:"slot,omitempty"` // contains filtered or unexported fields }
This Block is backwards compatible with solana.storage.ConfirmedBlock.ConfirmedBlock from the Solana Labs repositories.
func (*Block) Descriptor
deprecated
func (*Block) GetBlockHeight ¶
func (x *Block) GetBlockHeight() *BlockHeight
func (*Block) GetBlockTime ¶
func (x *Block) GetBlockTime() *UnixTimestamp
func (*Block) GetBlockhash ¶
func (*Block) GetFirehoseBlockID ¶
func (*Block) GetFirehoseBlockLIBNum ¶
func (*Block) GetFirehoseBlockNumber ¶
func (*Block) GetFirehoseBlockParentID ¶
func (*Block) GetFirehoseBlockParentNumber ¶ added in v0.2.7
func (*Block) GetFirehoseBlockTime ¶
func (*Block) GetFirehoseBlockVersion ¶ added in v0.2.7
func (*Block) GetParentSlot ¶
func (*Block) GetPreviousBlockhash ¶
func (*Block) GetRewards ¶
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*ConfirmedTransaction
func (*Block) MarshalLogObject ¶
func (x *Block) MarshalLogObject(encoder zapcore.ObjectEncoder) error
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockHeight ¶
type BlockHeight struct { BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // contains filtered or unexported fields }
func (*BlockHeight) Descriptor
deprecated
func (*BlockHeight) Descriptor() ([]byte, []int)
Deprecated: Use BlockHeight.ProtoReflect.Descriptor instead.
func (*BlockHeight) GetBlockHeight ¶
func (x *BlockHeight) GetBlockHeight() uint64
func (*BlockHeight) ProtoMessage ¶
func (*BlockHeight) ProtoMessage()
func (*BlockHeight) ProtoReflect ¶
func (x *BlockHeight) ProtoReflect() protoreflect.Message
func (*BlockHeight) Reset ¶
func (x *BlockHeight) Reset()
func (*BlockHeight) String ¶
func (x *BlockHeight) String() string
type CompiledInstruction ¶
type CompiledInstruction struct { ProgramIdIndex uint32 `protobuf:"varint,1,opt,name=program_id_index,json=programIdIndex,proto3" json:"program_id_index,omitempty"` Accounts []byte `protobuf:"bytes,2,opt,name=accounts,proto3" json:"accounts,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CompiledInstruction) Descriptor
deprecated
func (*CompiledInstruction) Descriptor() ([]byte, []int)
Deprecated: Use CompiledInstruction.ProtoReflect.Descriptor instead.
func (*CompiledInstruction) GetAccounts ¶
func (x *CompiledInstruction) GetAccounts() []byte
func (*CompiledInstruction) GetData ¶
func (x *CompiledInstruction) GetData() []byte
func (*CompiledInstruction) GetProgramIdIndex ¶
func (x *CompiledInstruction) GetProgramIdIndex() 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 ConfirmedTransaction ¶
type ConfirmedTransaction struct { Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` Meta *TransactionStatusMeta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*ConfirmedTransaction) AsBase58String ¶
func (x *ConfirmedTransaction) AsBase58String() string
func (*ConfirmedTransaction) Descriptor
deprecated
func (*ConfirmedTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmedTransaction.ProtoReflect.Descriptor instead.
func (*ConfirmedTransaction) GetMeta ¶
func (x *ConfirmedTransaction) GetMeta() *TransactionStatusMeta
func (*ConfirmedTransaction) GetTransaction ¶
func (x *ConfirmedTransaction) GetTransaction() *Transaction
func (*ConfirmedTransaction) ProtoMessage ¶
func (*ConfirmedTransaction) ProtoMessage()
func (*ConfirmedTransaction) ProtoReflect ¶
func (x *ConfirmedTransaction) ProtoReflect() protoreflect.Message
func (*ConfirmedTransaction) Reset ¶
func (x *ConfirmedTransaction) Reset()
func (*ConfirmedTransaction) String ¶
func (x *ConfirmedTransaction) String() string
type InnerInstruction ¶
type InnerInstruction struct { ProgramIdIndex uint32 `protobuf:"varint,1,opt,name=program_id_index,json=programIdIndex,proto3" json:"program_id_index,omitempty"` Accounts []byte `protobuf:"bytes,2,opt,name=accounts,proto3" json:"accounts,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // Invocation stack height of an inner instruction. // Available since Solana v1.14.6 // Set to `None` for txs executed on earlier versions. StackHeight *uint32 `protobuf:"varint,4,opt,name=stack_height,json=stackHeight,proto3,oneof" json:"stack_height,omitempty"` // contains filtered or unexported fields }
func (*InnerInstruction) Descriptor
deprecated
func (*InnerInstruction) Descriptor() ([]byte, []int)
Deprecated: Use InnerInstruction.ProtoReflect.Descriptor instead.
func (*InnerInstruction) GetAccounts ¶
func (x *InnerInstruction) GetAccounts() []byte
func (*InnerInstruction) GetData ¶
func (x *InnerInstruction) GetData() []byte
func (*InnerInstruction) GetProgramIdIndex ¶
func (x *InnerInstruction) GetProgramIdIndex() uint32
func (*InnerInstruction) GetStackHeight ¶
func (x *InnerInstruction) GetStackHeight() uint32
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 InnerInstructions ¶
type InnerInstructions struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Instructions []*InnerInstruction `protobuf:"bytes,2,rep,name=instructions,proto3" json:"instructions,omitempty"` // contains filtered or unexported fields }
func (*InnerInstructions) Descriptor
deprecated
func (*InnerInstructions) Descriptor() ([]byte, []int)
Deprecated: Use InnerInstructions.ProtoReflect.Descriptor instead.
func (*InnerInstructions) GetIndex ¶
func (x *InnerInstructions) GetIndex() uint32
func (*InnerInstructions) GetInstructions ¶
func (x *InnerInstructions) GetInstructions() []*InnerInstruction
func (*InnerInstructions) ProtoMessage ¶
func (*InnerInstructions) ProtoMessage()
func (*InnerInstructions) ProtoReflect ¶
func (x *InnerInstructions) ProtoReflect() protoreflect.Message
func (*InnerInstructions) Reset ¶
func (x *InnerInstructions) Reset()
func (*InnerInstructions) String ¶
func (x *InnerInstructions) String() string
type Message ¶
type Message struct { Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` AccountKeys [][]byte `protobuf:"bytes,2,rep,name=account_keys,json=accountKeys,proto3" json:"account_keys,omitempty"` RecentBlockhash []byte `protobuf:"bytes,3,opt,name=recent_blockhash,json=recentBlockhash,proto3" json:"recent_blockhash,omitempty"` Instructions []*CompiledInstruction `protobuf:"bytes,4,rep,name=instructions,proto3" json:"instructions,omitempty"` Versioned bool `protobuf:"varint,5,opt,name=versioned,proto3" json:"versioned,omitempty"` AddressTableLookups []*MessageAddressTableLookup `protobuf:"bytes,6,rep,name=address_table_lookups,json=addressTableLookups,proto3" json:"address_table_lookups,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetAccountKeys ¶
func (*Message) GetAddressTableLookups ¶
func (x *Message) GetAddressTableLookups() []*MessageAddressTableLookup
func (*Message) GetHeader ¶
func (x *Message) GetHeader() *MessageHeader
func (*Message) GetInstructions ¶
func (x *Message) GetInstructions() []*CompiledInstruction
func (*Message) GetRecentBlockhash ¶
func (*Message) GetVersioned ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageAddressTableLookup ¶
type MessageAddressTableLookup struct { AccountKey []byte `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"` WritableIndexes []byte `protobuf:"bytes,2,opt,name=writable_indexes,json=writableIndexes,proto3" json:"writable_indexes,omitempty"` ReadonlyIndexes []byte `protobuf:"bytes,3,opt,name=readonly_indexes,json=readonlyIndexes,proto3" json:"readonly_indexes,omitempty"` // contains filtered or unexported fields }
func (*MessageAddressTableLookup) Descriptor
deprecated
func (*MessageAddressTableLookup) Descriptor() ([]byte, []int)
Deprecated: Use MessageAddressTableLookup.ProtoReflect.Descriptor instead.
func (*MessageAddressTableLookup) GetAccountKey ¶
func (x *MessageAddressTableLookup) GetAccountKey() []byte
func (*MessageAddressTableLookup) GetReadonlyIndexes ¶
func (x *MessageAddressTableLookup) GetReadonlyIndexes() []byte
func (*MessageAddressTableLookup) GetWritableIndexes ¶
func (x *MessageAddressTableLookup) GetWritableIndexes() []byte
func (*MessageAddressTableLookup) ProtoMessage ¶
func (*MessageAddressTableLookup) ProtoMessage()
func (*MessageAddressTableLookup) ProtoReflect ¶
func (x *MessageAddressTableLookup) ProtoReflect() protoreflect.Message
func (*MessageAddressTableLookup) Reset ¶
func (x *MessageAddressTableLookup) Reset()
func (*MessageAddressTableLookup) String ¶
func (x *MessageAddressTableLookup) String() string
type MessageHeader ¶
type MessageHeader struct { NumRequiredSignatures uint32 `` /* 127-byte string literal not displayed */ NumReadonlySignedAccounts uint32 `` /* 141-byte string literal not displayed */ NumReadonlyUnsignedAccounts uint32 `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
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 ReturnData ¶
type ReturnData struct { ProgramId []byte `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ReturnData) Descriptor
deprecated
func (*ReturnData) Descriptor() ([]byte, []int)
Deprecated: Use ReturnData.ProtoReflect.Descriptor instead.
func (*ReturnData) GetData ¶
func (x *ReturnData) GetData() []byte
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 Reward ¶
type Reward struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Lamports int64 `protobuf:"varint,2,opt,name=lamports,proto3" json:"lamports,omitempty"` PostBalance uint64 `protobuf:"varint,3,opt,name=post_balance,json=postBalance,proto3" json:"post_balance,omitempty"` RewardType RewardType `` /* 126-byte string literal not displayed */ Commission string `protobuf:"bytes,5,opt,name=commission,proto3" json:"commission,omitempty"` // contains filtered or unexported fields }
func (*Reward) Descriptor
deprecated
func (*Reward) GetCommission ¶
func (*Reward) GetLamports ¶
func (*Reward) GetPostBalance ¶
func (*Reward) GetRewardType ¶
func (x *Reward) GetRewardType() RewardType
func (*Reward) ProtoMessage ¶
func (*Reward) ProtoMessage()
func (*Reward) ProtoReflect ¶
func (x *Reward) ProtoReflect() protoreflect.Message
type RewardType ¶
type RewardType int32
const ( RewardType_Unspecified RewardType = 0 RewardType_Fee RewardType = 1 RewardType_Rent RewardType = 2 RewardType_Staking RewardType = 3 RewardType_Voting RewardType = 4 )
func (RewardType) Descriptor ¶
func (RewardType) Descriptor() protoreflect.EnumDescriptor
func (RewardType) Enum ¶
func (x RewardType) Enum() *RewardType
func (RewardType) EnumDescriptor
deprecated
func (RewardType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RewardType.Descriptor instead.
func (RewardType) Number ¶
func (x RewardType) Number() protoreflect.EnumNumber
func (RewardType) String ¶
func (x RewardType) String() string
func (RewardType) Type ¶
func (RewardType) Type() protoreflect.EnumType
type Rewards ¶
type Rewards struct { Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
func (*Rewards) Descriptor
deprecated
func (*Rewards) GetRewards ¶
func (*Rewards) ProtoMessage ¶
func (*Rewards) ProtoMessage()
func (*Rewards) ProtoReflect ¶
func (x *Rewards) ProtoReflect() protoreflect.Message
type TokenBalance ¶
type TokenBalance struct { AccountIndex uint32 `protobuf:"varint,1,opt,name=account_index,json=accountIndex,proto3" json:"account_index,omitempty"` Mint string `protobuf:"bytes,2,opt,name=mint,proto3" json:"mint,omitempty"` UiTokenAmount *UiTokenAmount `protobuf:"bytes,3,opt,name=ui_token_amount,json=uiTokenAmount,proto3" json:"ui_token_amount,omitempty"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` ProgramId string `protobuf:"bytes,5,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"` // contains filtered or unexported fields }
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() string
func (*TokenBalance) GetOwner ¶
func (x *TokenBalance) GetOwner() string
func (*TokenBalance) GetProgramId ¶
func (x *TokenBalance) GetProgramId() string
func (*TokenBalance) GetUiTokenAmount ¶
func (x *TokenBalance) GetUiTokenAmount() *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 Transaction ¶
type Transaction struct { Signatures [][]byte `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"` Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetMessage ¶
func (x *Transaction) GetMessage() *Message
func (*Transaction) GetSignatures ¶
func (x *Transaction) GetSignatures() [][]byte
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionError ¶
type TransactionError struct { Err []byte `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*TransactionError) Descriptor
deprecated
func (*TransactionError) Descriptor() ([]byte, []int)
Deprecated: Use TransactionError.ProtoReflect.Descriptor instead.
func (*TransactionError) GetErr ¶
func (x *TransactionError) GetErr() []byte
func (*TransactionError) ProtoMessage ¶
func (*TransactionError) ProtoMessage()
func (*TransactionError) ProtoReflect ¶
func (x *TransactionError) ProtoReflect() protoreflect.Message
func (*TransactionError) Reset ¶
func (x *TransactionError) Reset()
func (*TransactionError) String ¶
func (x *TransactionError) String() string
type TransactionStatusMeta ¶
type TransactionStatusMeta struct { Err *TransactionError `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` Fee uint64 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` PreBalances []uint64 `protobuf:"varint,3,rep,packed,name=pre_balances,json=preBalances,proto3" json:"pre_balances,omitempty"` PostBalances []uint64 `protobuf:"varint,4,rep,packed,name=post_balances,json=postBalances,proto3" json:"post_balances,omitempty"` InnerInstructions []*InnerInstructions `protobuf:"bytes,5,rep,name=inner_instructions,json=innerInstructions,proto3" json:"inner_instructions,omitempty"` // bool inner_instructions_none = 10; LogMessages []string `protobuf:"bytes,6,rep,name=log_messages,json=logMessages,proto3" json:"log_messages,omitempty"` // bool log_messages_none = 11; PreTokenBalances []*TokenBalance `protobuf:"bytes,7,rep,name=pre_token_balances,json=preTokenBalances,proto3" json:"pre_token_balances,omitempty"` PostTokenBalances []*TokenBalance `protobuf:"bytes,8,rep,name=post_token_balances,json=postTokenBalances,proto3" json:"post_token_balances,omitempty"` Rewards []*Reward `protobuf:"bytes,9,rep,name=rewards,proto3" json:"rewards,omitempty"` LoadedWritableAddresses [][]byte `` /* 133-byte string literal not displayed */ LoadedReadonlyAddresses [][]byte `` /* 133-byte string literal not displayed */ ReturnData *ReturnData `protobuf:"bytes,14,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"` // bool return_data_none = 15; // Sum of compute units consumed by all instructions. // Available since Solana v1.10.35 / v1.11.6. // Set to `None` for txs executed on earlier versions. ComputeUnitsConsumed *uint64 `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TransactionStatusMeta) Descriptor
deprecated
func (*TransactionStatusMeta) Descriptor() ([]byte, []int)
Deprecated: Use TransactionStatusMeta.ProtoReflect.Descriptor instead.
func (*TransactionStatusMeta) GetComputeUnitsConsumed ¶
func (x *TransactionStatusMeta) GetComputeUnitsConsumed() uint64
func (*TransactionStatusMeta) GetErr ¶
func (x *TransactionStatusMeta) GetErr() *TransactionError
func (*TransactionStatusMeta) GetFee ¶
func (x *TransactionStatusMeta) GetFee() uint64
func (*TransactionStatusMeta) GetInnerInstructions ¶
func (x *TransactionStatusMeta) GetInnerInstructions() []*InnerInstructions
func (*TransactionStatusMeta) GetLoadedReadonlyAddresses ¶
func (x *TransactionStatusMeta) GetLoadedReadonlyAddresses() [][]byte
func (*TransactionStatusMeta) GetLoadedWritableAddresses ¶
func (x *TransactionStatusMeta) GetLoadedWritableAddresses() [][]byte
func (*TransactionStatusMeta) GetLogMessages ¶
func (x *TransactionStatusMeta) GetLogMessages() []string
func (*TransactionStatusMeta) GetPostBalances ¶
func (x *TransactionStatusMeta) GetPostBalances() []uint64
func (*TransactionStatusMeta) GetPostTokenBalances ¶
func (x *TransactionStatusMeta) GetPostTokenBalances() []*TokenBalance
func (*TransactionStatusMeta) GetPreBalances ¶
func (x *TransactionStatusMeta) GetPreBalances() []uint64
func (*TransactionStatusMeta) GetPreTokenBalances ¶
func (x *TransactionStatusMeta) GetPreTokenBalances() []*TokenBalance
func (*TransactionStatusMeta) GetReturnData ¶
func (x *TransactionStatusMeta) GetReturnData() *ReturnData
func (*TransactionStatusMeta) GetRewards ¶
func (x *TransactionStatusMeta) GetRewards() []*Reward
func (*TransactionStatusMeta) ProtoMessage ¶
func (*TransactionStatusMeta) ProtoMessage()
func (*TransactionStatusMeta) ProtoReflect ¶
func (x *TransactionStatusMeta) ProtoReflect() protoreflect.Message
func (*TransactionStatusMeta) Reset ¶
func (x *TransactionStatusMeta) Reset()
func (*TransactionStatusMeta) String ¶
func (x *TransactionStatusMeta) String() string
type UiTokenAmount ¶
type UiTokenAmount struct { UiAmount float64 `protobuf:"fixed64,1,opt,name=ui_amount,json=uiAmount,proto3" json:"ui_amount,omitempty"` Decimals uint32 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` UiAmountString string `protobuf:"bytes,4,opt,name=ui_amount_string,json=uiAmountString,proto3" json:"ui_amount_string,omitempty"` // contains filtered or unexported fields }
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) GetUiAmount ¶
func (x *UiTokenAmount) GetUiAmount() float64
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 UnixTimestamp ¶
type UnixTimestamp struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func NewUnixTimestamp ¶ added in v1.0.0
func NewUnixTimestamp(t time.Time) *UnixTimestamp
func (*UnixTimestamp) Descriptor
deprecated
func (*UnixTimestamp) Descriptor() ([]byte, []int)
Deprecated: Use UnixTimestamp.ProtoReflect.Descriptor instead.
func (*UnixTimestamp) GetTimestamp ¶
func (x *UnixTimestamp) GetTimestamp() int64
func (*UnixTimestamp) ProtoMessage ¶
func (*UnixTimestamp) ProtoMessage()
func (*UnixTimestamp) ProtoReflect ¶
func (x *UnixTimestamp) ProtoReflect() protoreflect.Message
func (*UnixTimestamp) Reset ¶
func (x *UnixTimestamp) Reset()
func (*UnixTimestamp) String ¶
func (x *UnixTimestamp) String() string