Skip to main content

Networks and protocol parameters

Protocol parameters and the mainnet and testnet reference, with RPC endpoints, explorers, direct nodes, the testnet faucet and what differs between the two networks.

This page is the reference for the values other pages link to. The parameters come from the node source (amadeusprotocol/node, version 1.6.5) and its DOCS.md. The endpoints are the ones the TypeScript SDK and the wallets use.

Protocol parameters​

ParameterValue
Block time500 ms
Epoch100,000 blocks (50,000 s, about 13 h 53 min)
Max supply1,000,000,000 AMA
AMA decimals9 (1 AMA = 1,000,000,000 base units, called "flat" in the SDK and node)
Consensus workUseful Proof of Work (uPoW) based on MatMul
Signature schemeBLS12-381. Public key (address): 48 bytes. Signature: 96 bytes. Seed: 64 bytes
Smart contractsRISC-V (RV64IM) ELF binaries, testnet only for now
State proofsSorted Merkle tree
SerializerVecPak
Transaction budget0.01 AMA locked per transaction (plus any attached_gas), unused part refunded. A transfer costs a fraction of it, see Transaction fees
Transaction costs1,111 base units per byte of history, 5,555 per byte of new state, execution capped at 0.002 AMA
Wallet fee reserve0.02 AMA (AMA_TRANSFER_FEE in the SDK), held back by the extension, web and mobile wallets. It is not what the chain charges
Fee split50% to the validator that signs the block, 50% burned

Emission per epoch, the vault and solver split, and supply figures are covered in Tokens and emissions.

Mainnet​

ResourceEndpoint
RPC (HTTP API base)https://mainnet-rpc.ama.one/api
Explorerhttps://explorer.ama.one
Community explorerhttps://ama-explorer.ddns.net
Direct nodes (advanced)https://nodes.amadeus.bot

Testnet​

ResourceEndpoint
RPC (HTTP API base)https://testnet-rpc.ama.one/api
Explorerhttps://testnet.explorer.ama.one
Community explorerhttps://testnet-ama.ddns.net
Direct nodes (advanced)http://testnet.ama.one (HTTP only)
Faucethttps://mcp.ama.one/testnet-faucet: 100 AMA per claim, once per 24 hours per IP

See Testnet faucet to claim testnet AMA.

Use the RPC endpoints for dApps, wallets and scripts. The direct node hosts reach individual nodes and are meant for operators and debugging. Nodes keep only the last 10 epochs of history by default, so indexers and exchanges should run their own node with ARCHIVALNODE=true.

What differs between the networks​

MainnetTestnet
Transaction signing domainAMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_TX_AMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_TX_TESTNET_
RISC-V smart contractsNot enabledEnabled
Creating new coins (Coin.create_and_mint) and NFTs (Nft.*)Not enabledEnabled
Creating staking vaults (LockupVault.create)Not enabledEnabled
Bridge contractNot activeActive
PRIME issued at epoch792462

A transaction signed for one network is rejected on the other because the signing domain differs. In the SDK, pass NetworkType.TESTNET to the network-aware signing helpers when you build testnet transactions. See Networks and testnet for SDK details and Smart contracts for the contract runtime.

The wallets (web, extension and mobile) have a built-in network switch with Mainnet, Testnet and Custom RPC.

Check a network​

Each RPC answers GET /api/chain/stats. The current epoch is height / 100000, rounded down.

curl -s https://testnet-rpc.ama.one/api/chain/stats | jq '.stats | {height, rooted_height, emission_for_epoch}'
{
"height": 7600486,
"rooted_height": 7600486,
"emission_for_epoch": 975005.453450221
}

The SDK exports the same endpoints as NETWORK_CONFIGS. Its rpcUrl values are host only, so add /api when you build the SDK baseUrl:

import { AmadeusSDK, ExplorerType, NETWORK_CONFIGS, NetworkType, makeExplorerUrl } from '@amadeus-protocol/sdk'

const network = NETWORK_CONFIGS[NetworkType.TESTNET]
// rpcUrl is host-only; the HTTP API lives under /api
const sdk = new AmadeusSDK({ baseUrl: `${network.rpcUrl}/api` })

const { stats } = await sdk.chain.getStats()
console.log('height', stats.height, 'epoch', Math.floor(stats.height / 100_000))
console.log(makeExplorerUrl(ExplorerType.ADDRESS, stats.cur_validator, network.explorerUrl))
height 7600469 epoch 76
https://testnet.explorer.ama.one/network/address/5kizwGYhCDy8Dev7Qw31aVutXwk4sZCK18hVwWqUdLx8X6oG338XpoSR7X9c1fMg5o

Both official explorers use the same paths:

  • Transaction: <explorer>/network/tx/<hash>
  • Address: <explorer>/network/address/<public key>

The SDK builds these with makeExplorerUrl. More on the explorers in Explorer links.