Parameters
chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getEpochInfo"
required
JSON-RPC method name.
Parameters for method getEpochInfo: [config]Positional parameters for getEpochInfo:params[]: Optional configuration object.
Returns
Information about the current slot, epoch, and transaction count.
The current absolute slot number.
The current block height.
The current epoch number.
The current slot index within the current epoch.
The total number of slots in the current epoch.
The total number of successful transactions processed since genesis, or null if unavailable.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getEpochInfo",
"params": [
{}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"absoluteSlot": 166598,
"blockHeight": 166500,
"epoch": 27,
"slotIndex": 2790,
"slotsInEpoch": 8192,
"transactionCount": 22661093
}
}