Docs

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

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32601,
    "message": "the method rollup_getInfo does not exist/is not available"
  }
}

Fallback Check

JavaScript
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_chainId to confirm you are connected to Cronos mainnet (25 / 0x19).
  • Use eth_gasPrice and eth_estimateGas for normal transaction pricing on Cronos.
  • Use the Optimism documentation if you need mode, synced_l1, safe_l2, or unsafe_l2 fields.

Need help? Contact our support team or check the Cronos documentation.