Returns information about the current epoch
Show result fields
curl http://rpc.orbitflare.com -X POST -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "id": 1, "method": "getEpochInfo" }'
import { Connection } from '@solana/web3.js'; const connection = new Connection('http://rpc.orbitflare.com'); const epochInfo = await connection.getEpochInfo(); console.log(epochInfo);
from solana.rpc.api import Client client = Client("http://rpc.orbitflare.com") response = client.get_epoch_info() print(response)