Skip to content

Latest commit

 

History

History
446 lines (321 loc) · 13.8 KB

File metadata and controls

446 lines (321 loc) · 13.8 KB

XPR Network Resources

Comprehensive list of endpoints, tools, documentation, and community resources for XPR Network development.


Chain Information

Chain IDs

Network Chain ID
Mainnet 384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0
Testnet 71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd

Network Parameters

Parameter Value
Block time 0.5 seconds
Block producers 21 active
Token symbol XPR
Token precision 4 decimals
Account names 1-12 characters from a-z, 1-5, . — dots appear in system/premium names (eosio.token, xmd.token); user-registered names are dot-free. See accounts-permissions.md.

RPC Endpoints

Mainnet

Verified May 2026 by hitting /v1/chain/get_info and /v2/history/get_actions on each. Some providers serve /v1/chain/* only; Hyperion (/v2/history/*, /v2/state/*) requires a heavier indexer not every operator hosts.

Endpoint Provider RPC Hyperion
https://proton.eosusa.io EOSUSA ✓ ✓
https://proton.protonuk.io ProtonUK ✓ ✓
https://proton-api.eosiomadrid.io EOS Madrid ✓ ✓
https://api-xprnetwork-main.saltant.io Saltant ✓ ✓
https://xpr-mainnet-api.bloxprod.io BloxProd ✓ ✓
https://proton-hyperion.luminaryvisn.com Luminary Vision ✓ ✓
https://api.protonnz.com ProtonNZ ✓ —
https://proton.cryptolions.io CryptoLions ✓ —

P2P Peer: p2p-protonmain.saltant.io:9876

Testnet

Endpoint Provider
https://tn1.protonnz.com ProtonNZ
https://api-xprnetwork-test.saltant.io Saltant

P2P Peer: p2p-protontest.saltant.io:9879

Health Check

curl -s https://proton.eosusa.io/v1/chain/get_info | jq '.head_block_num'

History API (Hyperion)

Mainnet — Hyperion-serving endpoints

Six verified Hyperion endpoints on mainnet (full list above includes RPC-only operators). Use a rotation pattern across these — see rpc-queries.md → Endpoint Etiquette for the polite-fetch client.

Endpoint Provider
https://proton.eosusa.io EOSUSA
https://proton.protonuk.io ProtonUK
https://proton-api.eosiomadrid.io EOS Madrid
https://api-xprnetwork-main.saltant.io Saltant
https://xpr-mainnet-api.bloxprod.io BloxProd
https://proton-hyperion.luminaryvisn.com Luminary Vision

Hyperion paths (all endpoints)

Path Description
/v2/history/get_actions Action history (with filter / account / limit)
/v2/history/get_transaction Transaction by ID
/v2/history/get_deltas Table delta history
/v2/state/get_account Account info with resources

Common Queries

# Get account actions
curl "https://proton.eosusa.io/v2/history/get_actions?account=myaccount&limit=50"

# Get specific transaction
curl "https://proton.eosusa.io/v2/history/get_transaction?id=TX_ID"

# Filter by action
curl "https://proton.eosusa.io/v2/history/get_actions?account=myaccount&filter=eosio.token:transfer"

Block Explorers

Explorer URL Features
XPR Network Explorer (Mainnet) https://explorer.xprnetwork.org Official explorer, wallet features
XPR Network Explorer (Testnet) https://testnet.explorer.xprnetwork.org Testnet explorer

Explorer Features

The XPR Network Explorer provides:

  • View accounts, transactions, blocks
  • Transfer tokens (single, multi, batch)
  • Stake/unstake XPR
  • Vote for Block Producers
  • Manage account permissions and keys
  • Create multi-signature (MSIG) transactions
  • NFT transfers

Direct Links

# Account
https://explorer.xprnetwork.org/account/ACCOUNT_NAME

# Transaction
https://explorer.xprnetwork.org/transaction/TRANSACTION_ID

# Contract
https://explorer.xprnetwork.org/account/CONTRACT_NAME?tab=contract

Official Documentation

Resource URL
Developer Docs https://docs.xprnetwork.org
TypeScript Contracts https://docs.xprnetwork.org/contract-sdk/storage
CLI Reference https://docs.xprnetwork.org/cli/usage
Web SDK https://docs.xprnetwork.org/client-sdks/web

GitHub Repositories

Official XPR Network

Repository Description
XPRNetwork/ts-smart-contracts Contract SDK (proton-tsc)
XPRNetwork/proton-web-sdk Frontend wallet integration (@proton/web-sdk) — bundles @proton/js for RPC
XPRNetwork/proton-cli Command-line tools (@proton/cli)

Example Contracts

Repository Description
XPRNetwork/developer-examples Official example contracts

Node Infrastructure

Repository Description
XPRNetwork/xpr.start Mainnet node setup scripts and configs
XPRNetwork/xpr-testnet.start Testnet node setup scripts and configs
XPRNetwork/dex-bot MetalX DEX trading bot

NPM Packages

Package Description Install
@proton/cli CLI tools npm i -g @proton/cli
proton-tsc Contract compiler npm i proton-tsc
@proton/web-sdk Frontend SDK npm i @proton/web-sdk
@proton/js RPC library npm i @proton/js
@proton/link Session management npm i @proton/link

Useful Tools

Resources Portal

https://resources.xprnetwork.org

Page URL Purpose
Main https://resources.xprnetwork.org Buy CPU/NET plans
Storage https://resources.xprnetwork.org/storage Buy/sell RAM
Create Account https://resources.xprnetwork.org/create-account Create new accounts
Faucet https://resources.xprnetwork.org/faucet Get testnet tokens

Resource Pricing

Resource Cost
RAM Storage Dynamic (Bancor algorithm) — query eosio::rammarket for live price; drifts, don't hard-code
Free RAM (WebAuth) 12,000 bytes per account
CPU/NET Basic 100 XPR/month (~500 tx/day)
CPU/NET Plus 1,000 XPR/month (~5,000 tx/day)
CPU/NET Pro 10,000 XPR/month (~50,000 tx/day)
CPU/NET Enterprise 100,000 XPR/month (~500,000 tx/day)

Faucets

Network Token URL/Command
Testnet XPR proton faucet:claim XPR myaccount
Testnet Web https://resources.xprnetwork.org/faucet

Token Contract Registry

Verified live (May 2026) via get_currency_stats. The contract column is what you pass as account in a transfer action; the precision must match exactly when constructing asset strings ("1.0000 XPR" is 4-decimal; "1.000000 XUSDC" is 6-decimal). Mismatching precision returns Symbol mismatch / asset-format errors.

Native chain tokens

Token Contract Precision Issuer Notes
XPR eosio.token 4 eosio Native gas/staking token
XMD xmd.token 6 xmd.treasury Metallicus USD stablecoin
LOAN loan.token 4 lending.loan LOAN protocol governance

Tokens on the xtokens contract

xtokens is a multi-token contract hosting wrapped representations of assets from other chains. Most tokens use an X prefix to mark them as the XPR Network wrapped version (e.g. XBTC for Bitcoin, XETH for Ethereum). A few don't follow that prefix convention — they're on xtokens all the same.

Token Precision Wraps
XUSDT 6 Tether USD
XUSDC 6 USD Coin
XBTC 8 Bitcoin
XETH 8 Ethereum
XBCH 8 Bitcoin Cash
XLTC 8 Litecoin
XBNB 8 Binance Coin
XEOS 4 EOS
XADA 6 Cardano
XDOGE 6 Dogecoin
XHBAR 6 Hedera
XSOL 6 Solana
XXRP 6 Ripple — double-X prefix, not single-X
XXLM 6 Stellar — double-X prefix, not single-X
METAL 8 Metal Blockchain native token (a separate Layer 0 — not MetalX, the DEX/Swap product)
XMT 8 MTL — Metal DAO governance token, XPR Network representation

Two naming gotchas to watch for:

  • XXRP and XXLM use a double-X prefix. Single-X variants on Alcor (e.g. XRP@some-other-contract) are unrelated to the canonical wrapped versions on xtokens and may have different precision or no liquidity.
  • METAL ≠ MetalX. METAL is a wrapped representation of Metal Blockchain (a separate Layer 0, unrelated to XPR Network apart from this bridged token). MetalX is the DEX/Swap product on XPR Network. They share a brand prefix but refer to different things.

Project tokens on their own contracts

Token Contract Precision Project
SNIPS snipcoins 4 Snipcoins community
STRX storex 4 StoreX

Discovery

To verify any token's current precision and issuer:

curl -s -X POST https://proton.eosusa.io/v1/chain/get_currency_stats \
  -H 'Content-Type: application/json' \
  -d '{"code":"<CONTRACT>","symbol":"<SYMBOL>"}'

The response gives supply, max_supply, and issuer for that token.

Testnet placeholders

Token Contract Precision Notes
FOOBAR xtokens 6 Test-only; do not reference in mainnet code paths

Wallets

Wallet Type Platforms Best For
WebAuth Mobile/Web iOS, Android, Web General users (recommended)
Anchor Mobile/Desktop iOS, Android, Mac, Win, Linux Advanced users, owner key access
Ledger Hardware Nano X, Nano S Maximum security
TokenPocket Mobile iOS (TestFlight), Android Multi-chain users
Scatter Desktop Mac, Windows, Linux Desktop multi-chain

Wallet URLs

Wallet URL
WebAuth Web https://webauth.com
WebAuth iOS App Store
WebAuth Android Play Store
Anchor https://anchorwallet.io

WebAuth Features

  • Non-custodial (you control keys)
  • WebAuthn support (Face ID, fingerprint, security keys)
  • Account creation
  • Staking and NFTs
  • Fiat on-ramp (US, Australia, New Zealand)

System Contracts

Contract Account Purpose
Token eosio.token Native XPR transfers
System eosio Account creation, resources
User profiles eosio.proton KYC, user info
Oracles oracles Price feeds
Wrapped tokens xtokens XUSDT, XUSDC, etc.

Oracle Price Feeds

Common feeds (excerpt — canonical full table with liveness notes: oracles-randomness.md):

Index Pair Description
3 XPR/USD XPR price (10-min avg)
4 BTC/USD Bitcoin price
7 ETH/USD Ethereum price
9 USDT/USD Live dollar reference (index 5 USDC/USD is dormant)

Query Oracle

curl -s -X POST https://proton.eosusa.io/v1/chain/get_table_rows \
  -H "Content-Type: application/json" \
  -d '{
    "code": "oracles",
    "scope": "oracles",
    "table": "data",
    "lower_bound": 4,
    "upper_bound": 4,
    "limit": 1
  }'

Governance & Staking

Resource URL Description
Governance Portal https://gov.xprnetwork.org Proposals and voting
Resources Portal https://resources.xprnetwork.org Buy RAM, manage resources
Identity Verification https://identity.metallicus.com KYC verification
Help Desk https://help.xprnetwork.org Support and FAQs

Community

Platform Link
Telegram https://t.me/XPRNetwork
Twitter/X https://x.com/XPRNetwork
Help Desk https://help.xprnetwork.org

Development Environment

Recommended Setup

  1. Node.js: v16+ (v18 LTS recommended)
  2. Editor: VS Code with TypeScript extension
  3. CLI: @proton/cli installed globally

VS Code Extensions

  • TypeScript (built-in)
  • ESLint
  • Prettier

.vscode/settings.json

{
  "typescript.tsdk": "node_modules/typescript/lib",
  "editor.formatOnSave": true
}

Quick Start Commands

# Install CLI
npm i -g @proton/cli

# Set to testnet for development
proton chain:set proton-test

# Generate new key pair
proton key:generate

# Create boilerplate project
proton boilerplate myproject

# Build contract
cd myproject
npm run build

# Deploy to testnet
proton contract:set mycontract ./assembly/target

# Query contract table
proton table mycontract mytable

Testnet vs Mainnet Checklist

Step Testnet Mainnet
Set network proton chain:set proton-test proton chain:set proton
Get test tokens proton faucet:claim XPR account Purchase XPR
Deploy Test thoroughly After testnet verification
Test transactions Use FOOBAR/test tokens Real tokens

Support


License

Most XPR Network tools and SDKs are released under the MIT License.