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
getBlockRPC method call. - Confirmed
Transaction Status With Signature - Solana transaction signature information as returned by the
getSignaturesForAddressRPC method. - Data
Slice - Represents a slice of the return value of the Solana
getAccountInfoRPC 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
getAccountInfoRPC method call. - GetBalance
Params - The parameters for a Solana
getBalanceRPC method call. - GetBlock
Params - The parameters for a Solana
getBlockRPC method call. - GetRecent
Prioritization Fees Params - The parameters for a Solana
getRecentPrioritizationFeesRPC method call. - GetRecent
Prioritization Fees RpcConfig - Configures how to perform HTTP calls for the Solana
getRecentPrioritizationFeesRPC method. - GetSignature
Statuses Params - The parameters for a Solana
getSignatureStatusesRPC method call. - GetSignatures
ForAddress Limit - The maximum number of transactions to return in the response of a
getSignaturesForAddressrequest. - GetSignatures
ForAddress Params - The parameters for a Solana
getSignaturesForAddressRPC method call. - GetSlot
Params - The parameters for a Solana
getSlotRPC method call. - GetSlot
RpcConfig - Configures how to perform HTTP calls for the Solana
getSlotRPC method. - GetToken
Account Balance Params - The parameters for a Solana
getTokenAccountBalanceRPC method call. - GetTransaction
Params - The parameters for a Solana
getTransactionRPC 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::NonZeroU8to 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
getRecentPrioritizationFeesRPC 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
sendTransactionRPC 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
getSignatureStatusesRPC 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
getAccountInfoRPC method. - GetBlock
Commitment Level - Subset of
CommitmentLevelwhose variants are allowed values for theencodingfield 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
sendTransactionRPC 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
getBlockresponse. - Transaction
Error - Represents errors that can occur during the processing of a Solana transaction.
- Transaction
Version - Enum representing the version of a Solana transaction.