Skip to Content
Supported ChainBerachain

Berachain API

Access Berachain via the Spectrum unified API. Berachain is an EVM L1 built on the Cosmos SDK with Proof-of-Liquidity consensus.

Properties

PropertyValue
Slugberachain
TypeEVM L1
Native TokenBERA
Chain ID80094

Available Methods

MethodDescription
getBlockHeightLatest Berachain block number
getBalanceBERA balance for a wallet
getTokenBalanceERC-20 token balance
getTokenMetadataERC-20 token info
getTokenAllowanceToken spending allowance
getPortfolioFull portfolio with USD values
getNftCollectionNFT holdings for a wallet
getBlockTransactionsTransactions in a block
estimateGasGas estimation for a transaction
traceTransactionInternal call trace
getCodeContract bytecode check
simulateCallSimulate a contract call
rpcProxyRaw JSON-RPC passthrough
getChainHealthBerachain RPC health check

Quick Start

Get the latest Berachain block height:

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "getBlockHeight",
  "params": {
    "chain": "berachain"
  },
  "id": 1
}

Get Balance

Retrieve the BERA balance for a wallet address on Berachain:

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "getBalance",
  "params": {
    "chain": "berachain",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  },
  "id": 1
}

Get Gas

Compare current gas prices across chains:

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "compareGas",
  "params": {},
  "id": 1
}

SDK

import { Spectrum } from '@spectrumnodes/sdk'; const spectrum = new Spectrum({ api: 'https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/' }); // Get latest block height const block = await spectrum.core.getBlockHeight('berachain'); console.log(block.height); // Get BERA balance on Berachain const balance = await spectrum.tokens.getBalance('berachain', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'); console.log(balance.balance);

DeFi

Standard EVM endpoints; DeFi protocol integrations are added as they roll out.