Common Response Types
Context
Package:software.sava.rpc.json.http.response
File: Context.java
Provides slot context for RPC responses.
Slot at which the data was queried
Account Responses
AccountInfo
Package:software.sava.rpc.json.http.response
File: AccountInfo.java:20
Generic account information with typed data.
Account public key
Slot context when data was fetched
Whether the account is executable (program)
Account balance in lamports
Program that owns this account
Epoch at which rent is due
Data size in bytes
Account data (generic type based on factory function)
AccountInfo.java:20-27.
BYTES_IDENTITY
Default factory for raw byte data.AccountInfo.java:29.
Lamports
Package:software.sava.rpc.json.http.response
File: Lamports.java
Balance response with context.
Slot context
Account balance in lamports
AccountLamports
Package:software.sava.rpc.json.http.response
File: AccountLamports.java
Account balance with public key (used in getLargestAccounts).
Transaction Responses
Tx
Package:software.sava.rpc.json.http.response
File: Tx.java:11
Full transaction information.
Slot in which transaction was processed
Estimated block time (Unix timestamp)
Transaction metadata including fees and status
Raw transaction data (base64 decoded)
Transaction version (0 for versioned, negative for legacy)
Tx.java:11-15.
isLegacy()
Check if transaction is legacy format.true if version < 0
See Tx.java:17-19.
TxStatus
Package:software.sava.rpc.json.http.response
File: TxStatus.java:13
Transaction confirmation status.
Slot context
Slot where transaction was processed
Number of confirmations (empty if rooted)
Error if transaction failed, null if successful
Confirmation level (PROCESSED, CONFIRMED, FINALIZED)
TxStatus.java:13-17.
Example:
TxSig
Package:software.sava.rpc.json.http.response
File: TxSig.java
Transaction signature with metadata.
getSignaturesForAddress().
TxResult
Package:software.sava.rpc.json.http.response
File: TxResult.java
WebSocket transaction result.
TxLogs
Package:software.sava.rpc.json.http.response
File: TxLogs.java
Transaction logs from WebSocket subscription.
Block Responses
Block
Package:software.sava.rpc.json.http.response
File: Block.java:12
Complete block information.
Block height
Unix timestamp
Blockhash (base58)
Previous block’s hash
Parent slot number
Block rewards
Transaction signatures (if BlockTxDetails.signatures)
Transaction details (if BlockTxDetails.full)
Block.java:12-19.
BlockHeight
Package:software.sava.rpc.json.http.response
File: BlockHeight.java
Current block height with context.
LatestBlockHash
Package:software.sava.rpc.json.http.response
File: LatestBlockHash.java:8
Latest blockhash for transaction signing.
Slot context
Recent blockhash (base58)
Block height after which this blockhash is no longer valid
LatestBlockHash.java:8.
Example:
Network State Responses
EpochInfo
Package:software.sava.rpc.json.http.response
File: EpochInfo.java
Current epoch information.
Current absolute slot
Current block height
Current epoch number
Slot within current epoch
Total slots in this epoch
Total transactions processed
NodeHealth
Package:software.sava.rpc.json.http.response
File: NodeHealth.java
Node health status.
ClusterNode
Package:software.sava.rpc.json.http.response
File: ClusterNode.java
Cluster node information.
Identity
Package:software.sava.rpc.json.http.response
File: Identity.java
Node identity.
Token Responses
TokenAmount
Package:software.sava.rpc.json.http.response
File: TokenAmount.java
Token balance with decimals.
Slot context
Raw token amount (no decimals)
Number of decimal places
UI-friendly amount with decimals
AccountTokenAmount
Package:software.sava.rpc.json.http.response
File: AccountTokenAmount.java
Token account with balance.
getTokenLargestAccounts().
Performance Responses
PerfSample
Package:software.sava.rpc.json.http.response
File: PerfSample.java
Performance sample data.
PrioritizationFee
Package:software.sava.rpc.json.http.response
File: PrioritizationFee.java
Recent prioritization fee.
Additional Response Types
The module includes many more response types:- Supply:
Supply- Total token supply information - Inflation:
InflationGovernor,InflationRate,InflationReward - Stake:
StakeState - Block Production:
BlockProduction,BlockCommitment - Slots:
ProcessedSlot,HighestSnapshotSlot - Version:
Version- RPC API version - Voting:
VoteAccount,VoteAccounts - Fee:
FeeForMessage,FeeCalculator
Usage Patterns
Generic Account Deserialization
Handling Optional Values
Working with Context
See Also
- SolanaRpcClient - Client methods returning these types
- Request Types - Request configuration
- WebSocket Client - Real-time response updates