rollup_getInfo - Cronos Compatibility Note
Cronos JSON-RPC compatibility note for rollup_getInfo. Cronos shared RPC endpoints do not expose Optimism-style rollup metadata.
Cronos shared RPC endpoints do not expose Optimism-style rollup metadata. On the live Cronos archive endpoint, rollup_getInfo returns -32601 because the method is not available.
When to Use This Page
Use this page when you need to confirm whether an endpoint is actually Optimism-compatible. On Cronos, prefer standard Ethereum JSON-RPC methods such as eth_chainId, net_version, eth_gasPrice, and eth_estimateGas.
Cronos Response
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "the method rollup_getInfo does not exist/is not available"
}
}Fallback Check
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-cronos-mainnet-archive.n.dwellir.com/YOUR_API_KEY');
async function supportsRollupInfo() {
try {
await provider.send('rollup_getInfo', []);
return true;
} catch (error) {
if (error?.code === -32601) {
return false;
}
throw error;
}
}
console.log('Rollup metadata available:', await supportsRollupInfo());Supported Alternatives
- Use
eth_chainIdto confirm you are connected to Cronos mainnet (25/0x19). - Use
eth_gasPriceandeth_estimateGasfor normal transaction pricing on Cronos. - Use the Optimism documentation if you need
mode,synced_l1,safe_l2, orunsafe_l2fields.
Need help? Contact our support team or check the Cronos documentation.
rollup_gasPrices - Cronos Compatibility Note
Cronos JSON-RPC compatibility note for rollup_gasPrices. Cronos shared RPC endpoints do not expose Optimism-style rollup gas oracles.
eth_blockNumber
Get the current block height on Cronos. Essential for syncing dApps, monitoring transaction confirmations, and blockchain state tracking.