Expand description
Candid types used by the candid interface of the SOL RPC canister.
Structs§
- Account
Info - Solana account information.
- Compiled
Instruction - Represents a compiled instruction as part of a Solana transaction.
- Confirmed
Block - The result of a Solana
getBlock
RPC method call. - Confirmed
Transaction Status With Signature - Solana transaction signature information as returned by the
getSignaturesForAddress
RPC method. - Data
Slice - Represents a slice of the return value of the Solana
getAccountInfo
RPC method. - Encoded
Confirmed Transaction With Status Meta - Solana transaction information for a confirmed transaction.
- Encoded
Transaction With Status Meta - Solana transaction information.
- GetAccount
Info Params - The parameters for a Solana
getAccountInfo
RPC method call. - GetBalance
Params - The parameters for a Solana
getBalance
RPC method call. - GetBlock
Params - The parameters for a Solana
getBlock
RPC method call. - GetRecent
Prioritization Fees Params - The parameters for a Solana
getRecentPrioritizationFees
RPC method call. - GetRecent
Prioritization Fees RpcConfig - Configures how to perform HTTP calls for the Solana
getRecentPrioritizationFees
RPC method. - GetSignature
Statuses Params - The parameters for a Solana
getSignatureStatuses
RPC method call. - GetSignatures
ForAddress Limit - The maximum number of transactions to return in the response of a
getSignaturesForAddress
request. - GetSignatures
ForAddress Params - The parameters for a Solana
getSignaturesForAddress
RPC method call. - GetSlot
Params - The parameters for a Solana
getSlot
RPC method call. - GetSlot
RpcConfig - Configures how to perform HTTP calls for the Solana
getSlot
RPC method. - GetToken
Account Balance Params - The parameters for a Solana
getTokenAccountBalance
RPC method call. - GetTransaction
Params - The parameters for a Solana
getTransaction
RPC method call. - Hash
- Candid wrapper around
solana_hash::Hash
. - Http
Header - HTTP header.
- Inner
Instructions - List of inner instructions for a Solana transaction.
- Install
Args - The installation args for the Solana RPC canister.
- Json
RpcError - A JSON-RPC 2.0 error as per the specifications.
- Loaded
Addresses - Transaction addresses loaded from address lookup tables.
- NonZero
U8 - A wrapper around the primitive
std::num::NonZeroU8
to implementcandid::CandidType
. - NumSubnet
Nodes - Number of subnet nodes with a default value set to 34.
- Override
Provider - Allows modifying an
RpcEndpoint
’s request URL and HTTP headers. - Parsed
Account - Represents parsed Solana account data.
- Prioritization
Fee - An entry in the result of a Solana
getRecentPrioritizationFees
RPC method call. - Pubkey
- Candid wrapper around
solana_pubkey::Pubkey
. - Regex
String - A string used as a regex pattern.
- Regex
Substitution - 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.
- Rounding
Error - 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.
- Send
Transaction Params - The parameters for a Solana
sendTransaction
RPC method call. - Signature
- Candid wrapper around
solana_signature::Signature
. - Supported
RpcProvider - Defines a supported RPC provider for a particular Solana cluster.
- Token
Amount - A human-readable representation of a token amount.
- Transaction
Return Data - Represents the return data emitted by a program during transaction execution.
- Transaction
Status - Solana transaction status as returned by the
getSignatureStatuses
RPC method. - Transaction
Status Meta - Transaction status metadata object.
- Transaction
Token Balance - Represents the balance of a specific SPL token account.
- VecWith
MaxLen - A vector with a maximum capacity.
Enums§
- Account
Data - Represents the data stored in a Solana account.
- Account
Encoding - Represents an encoding format for Solana account data.
- Commitment
Level - Commitment levels in Solana, representing finality guarantees of transactions and memory queries.
- Consensus
Strategy - Defines a consensus strategy for combining responses from different providers.
- Encoded
Transaction - Transaction object, either in JSON format or encoded binary data.
- GetAccount
Info Encoding - Encoding for the return value of the Solana
getAccountInfo
RPC method. - GetBlock
Commitment Level - Subset of
CommitmentLevel
whose variants are allowed values for theencoding
field ofGetBlockParams
. - GetTransaction
Encoding - Encoding format for the returned transaction from a
getTransaction
` RPC method call. - Http
Outcall Error - An HTTP outcall error.
- Instruction
- A directive for a single invocation of a Solana program.
- Instruction
Error - Represents errors that can occur during the execution of a specific instruction within a Solana transaction.
- Mode
- Mode of operation
- Multi
RpcResult - Represents an aggregated result from multiple RPC calls to different RPC providers.
The results are aggregated using a
crate::ConsensusStrategy
. - Provider
Error - An error with an RPC provider.
- Reward
Type - 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.
- Send
Transaction Encoding - The encoding format for the transaction argument to the Solana
sendTransaction
RPC method call. - Solana
Cluster - Solana clusters.
- Supported
RpcProvider Id - Uniquely identifies a supported RPC provider for a particular Solana cluster.
- Transaction
Binary Encoding - Binary encoding format for an
EncodedTransaction
. - Transaction
Confirmation Status - A Solana transaction confirmation status. See Commitment for more on optimistic confirmation.
- Transaction
Details - Determines whether and how transactions are included in
getBlock
response. - Transaction
Error - Represents errors that can occur during the processing of a Solana transaction.
- Transaction
Version - Enum representing the version of a Solana transaction.