Crate sol_rpc_types

Source
Expand description

Candid types used by the candid interface of the SOL RPC canister.

Structs§

AccountInfo
Solana account information.
CompiledInstruction
Represents a compiled instruction as part of a Solana transaction.
ConfirmedBlock
The result of a Solana getBlock RPC method call.
ConfirmedTransactionStatusWithSignature
Solana transaction signature information as returned by the getSignaturesForAddress RPC method.
DataSlice
Represents a slice of the return value of the Solana getAccountInfo RPC method.
EncodedConfirmedTransactionWithStatusMeta
Solana transaction information for a confirmed transaction.
EncodedTransactionWithStatusMeta
Solana transaction information.
GetAccountInfoParams
The parameters for a Solana getAccountInfo RPC method call.
GetBalanceParams
The parameters for a Solana getBalance RPC method call.
GetBlockParams
The parameters for a Solana getBlock RPC method call.
GetRecentPrioritizationFeesParams
The parameters for a Solana getRecentPrioritizationFees RPC method call.
GetRecentPrioritizationFeesRpcConfig
Configures how to perform HTTP calls for the Solana getRecentPrioritizationFees RPC method.
GetSignatureStatusesParams
The parameters for a Solana getSignatureStatuses RPC method call.
GetSignaturesForAddressLimit
The maximum number of transactions to return in the response of a getSignaturesForAddress request.
GetSignaturesForAddressParams
The parameters for a Solana getSignaturesForAddress RPC method call.
GetSlotParams
The parameters for a Solana getSlot RPC method call.
GetSlotRpcConfig
Configures how to perform HTTP calls for the Solana getSlot RPC method.
GetTokenAccountBalanceParams
The parameters for a Solana getTokenAccountBalance RPC method call.
GetTransactionParams
The parameters for a Solana getTransaction RPC method call.
Hash
Candid wrapper around solana_hash::Hash.
HttpHeader
HTTP header.
InnerInstructions
List of inner instructions for a Solana transaction.
InstallArgs
The installation args for the Solana RPC canister.
JsonRpcError
A JSON-RPC 2.0 error as per the specifications.
LoadedAddresses
Transaction addresses loaded from address lookup tables.
NonZeroU8
A wrapper around the primitive std::num::NonZeroU8 to implement candid::CandidType.
NumSubnetNodes
Number of subnet nodes with a default value set to 34.
OverrideProvider
Allows modifying an RpcEndpoint’s request URL and HTTP headers.
ParsedAccount
Represents parsed Solana account data.
PrioritizationFee
An entry in the result of a Solana getRecentPrioritizationFees RPC method call.
Pubkey
Candid wrapper around solana_pubkey::Pubkey.
RegexString
A string used as a regex pattern.
RegexSubstitution
A regex-based substitution with a pattern and replacement string.
Reward
Represents a reward or penalty applied to an account for fees, rent, voting, or staking activity.
RoundingError
This type defines a rounding error to use when fetching the current slot from Solana using the JSON-RPC interface, meaning slots will be rounded down to the nearest multiple of this error when being fetched.
RpcConfig
Configures how to perform RPC HTTP calls.
RpcEndpoint
An API defining how to make an HTTP RPC request.
SendTransactionParams
The parameters for a Solana sendTransaction RPC method call.
Signature
Candid wrapper around solana_signature::Signature.
SupportedRpcProvider
Defines a supported RPC provider for a particular Solana cluster.
TokenAmount
A human-readable representation of a token amount.
TransactionReturnData
Represents the return data emitted by a program during transaction execution.
TransactionStatus
Solana transaction status as returned by the getSignatureStatuses RPC method.
TransactionStatusMeta
Transaction status metadata object.
TransactionTokenBalance
Represents the balance of a specific SPL token account.
VecWithMaxLen
A vector with a maximum capacity.

Enums§

AccountData
Represents the data stored in a Solana account.
AccountEncoding
Represents an encoding format for Solana account data.
CommitmentLevel
Commitment levels in Solana, representing finality guarantees of transactions and memory queries.
ConsensusStrategy
Defines a consensus strategy for combining responses from different providers.
EncodedTransaction
Transaction object, either in JSON format or encoded binary data.
GetAccountInfoEncoding
Encoding for the return value of the Solana getAccountInfo RPC method.
GetBlockCommitmentLevel
Subset of CommitmentLevel whose variants are allowed values for the encoding field of GetBlockParams.
GetTransactionEncoding
Encoding format for the returned transaction from a getTransaction` RPC method call.
HttpOutcallError
An HTTP outcall error.
Instruction
A directive for a single invocation of a Solana program.
InstructionError
Represents errors that can occur during the execution of a specific instruction within a Solana transaction.
Mode
Mode of operation
MultiRpcResult
Represents an aggregated result from multiple RPC calls to different RPC providers. The results are aggregated using a crate::ConsensusStrategy.
ProviderError
An error with an RPC provider.
RewardType
Enum representing the type of reward granted to an account on the Solana network.
RpcAccess
Defines the access method for a registered RpcSource.
RpcAuth
Defines the authentication method for access to a SupportedRpcProviderId.
RpcError
An RPC error.
RpcSource
Defines a Solana RPC source.
RpcSources
Defines a collection of Solana RPC sources.
SendTransactionEncoding
The encoding format for the transaction argument to the Solana sendTransaction RPC method call.
SolanaCluster
Solana clusters.
SupportedRpcProviderId
Uniquely identifies a supported RPC provider for a particular Solana cluster.
TransactionBinaryEncoding
Binary encoding format for an EncodedTransaction.
TransactionConfirmationStatus
A Solana transaction confirmation status. See Commitment for more on optimistic confirmation.
TransactionDetails
Determines whether and how transactions are included in getBlock response.
TransactionError
Represents errors that can occur during the processing of a Solana transaction.
TransactionVersion
Enum representing the version of a Solana transaction.

Type Aliases§

Lamport
A Solana Lamport.
MicroLamport
Within the compute budget, a quantity of micro-lamports is used in the calculation of prioritization fees. 1_000_000 MicroLamport == 1 Lamport
RpcResult
An RPC result type.
Slot
A Solana slot.
Timestamp
Unix timestamp (seconds since the Unix epoch).