Skip to Content
Supported ChainAgoric

Agoric API

Access Agoric blockchain data through the Spectrum API. Agoric is a Cosmos SDK chain that runs hardened JavaScript (“smart wallets” and on-chain orchestration) on top of Tendermint consensus.

PropertyValue
Slugagoric
TypeCosmos SDK
Native TokenBLD
Address FormatBech32 (agoric1..., agoricvaloper1...)

Available methods

Agoric supports the same Cosmos SDK method set as Cosmos Hub. See the Cosmos Hub page for full descriptions.

Blocks · Block transactions · Transactions · Receipts · Native balance (BLD) · Denom balances · Denom supply · Token metadata · Cosmos staking suite · RPC proxy · Health.

Quick start

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

Get a BLD balance

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

SDK

import { Spectrum } from '@spectrumnodes/sdk'; const spectrum = new Spectrum({ api: 'https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/' }); const block = await spectrum.core.getBlockHeight('agoric'); const pool = await spectrum.cosmos.getStakingPool('agoric');

Endpoint differences from EVM chains

See Endpoint differences. All Cosmos SDK chain pages share the same behaviour.