SSolon 中EN繁
Solon Developer Platform

Developer Platform · On-chain in 5 minutes

One SDK for everything on Solon: markets, trading, dividends, primary offerings, bridge and compliance identity. JavaScript works out of the box; Python SDK and 6 sample projects ship with mainnet.

Download SDK (v0.1.0) Download Python SDK Download TS SDK Institutional API Get test SLN Developer Docs SDK built into this page — try it in your console
Quick start · your first stock token in three lines
Include two files in any webpage or your browser console and you are ready.
<!-- 1. include ethers + Solon SDK -->
<script src="https://solon.digital/assets/ethers.umd.min.js"></script>
<script src="https://solon.digital/assets/solon-defi.js"></script>
<script src="https://solon.digital/assets/solon-sdk.js"></script>

// 2. connect (read-only mode needs no key)
const sdk = new SolonSDK();
await sdk.connect('0xYOUR_PRIVATE_KEY');          // or sdk.connectProvider(window.ethereum)

// 3. check price -> buy 10 SLN of NVDA token
await sdk.price('NVDA');                 // 145.0 (in SLN)
await sdk.buy('NVDA', '10');             // settled atomically on-chain
Network parameters & RPC reference
Solon Chain supports the full Ethereum JSON-RPC method set — MetaMask / viem / web3.py plug in directly.
ParameterValue
Network nameSolon Chain Testnet
Chain ID51051(0xC78B)
Public RPChttps://solon.digital/solonrpc/
Native tokenSLN (18 decimals, for gas)
Block Explorersolon.digital/explorer
Testnet faucetsolon.digital/faucet(100 SLN per claim)
Block time~3s (sub-second target on mainnet)
Token standardERC-3643 compatible security tokens (18-decimal fractions, freeze/recovery, compliance rule engine)
Institutional API · Live (public read-only market data)
Zero-auth public endpoints (60 req/min per IP, CORS open) — custodians, brokers and market makers can integrate directly. Trading/account/compliance write APIs open in phase two (API Key + HMAC + IP whitelist).
EndpointNotes
GET /api/v1/statusChain status: height, block interval, gas, peer count
GET /api/v1/marketsAll-token market data: oracle price, 24h volume and trade count
GET /api/v1/tokens/{SYM}/quoteSingle-token quote + two-way AMM estimate (1 SLN buys / 1 share sells)
GET /api/v1/tokens/{SYM}/trades?limit=50Recent trades (side, amount, counterparty, tx hash)
GET /api/v1/tokens/{SYM}/holdersHolder registry (recomputed trade-by-trade, with shares, 5-min cache)
GET /api/v1/tokens/{SYM}/candlesCandles OHLCV (15m / 1h / 4h, aggregated from Swap events)
GET /api/explorer/api?module=account&action=…Etherscan compatible: balance / tokenbalance / tokentx
# Zero-dependency access from any language (curl / Python requests)
curl https://solon.digital/api/v1/markets

import requests
m = requests.get('https://solon.digital/api/v1/markets').json()
print([(x['symbol'], x['priceSln']) for x in m['markets']])
Enterprise endpoint · HMAC signature (live demo)
Production spec: API Key + HMAC-SHA256 + ±120s window (mainnet adds IP allowlist and tiered rate limits). Testnet demo credentials — Key sk_demo_solon_001 · Secret whsec_demo_7f3a9c2e5b, sign = HMAC(secret, ts + ":" + key).
EndpointNotes
GET /api/v1/pro/settlementDaily settlement report: 24h total volume/trades, per-token breakdown, unique traders, top 5 traders
# HMAC 签名调用(bash + openssl 零依赖)
TS=$(date +%s); KEY=sk_demo_solon_001; SECRET=whsec_demo_7f3a9c2e5b
SIGN=$(printf "%s:%s" "$TS" "$KEY" | openssl dgst -sha256 -hmac "$SECRET" | awk '{print $2}')
curl -H "x-api-key: $KEY" -H "x-api-ts: $TS" -H "x-api-sign: $SIGN" \
  https://solon.digital/api/v1/pro/settlement
SDK methods at a glance
High-level APIs across five scenarios, all returning Promises; writes wait for on-chain confirmation.
GroupMethodNotes
Marketprice(sym) · prices() · quoteBuy(sym, sln) · quoteSell(sym, shares)Oracle prices and AMM buy/sell quotes
Tradebuy(sym, sln) · sell(sym, shares)AMM market orders, fractions down to 0.000001 share
LimitplaceBuy / placeSell(sym, price, shares) · cancelOrder(id)On-chain limit order book, escrow auto-refunded
Dividendsdividends() · claimable(divId) · claimDividend(divId)Snapshot distribution, one-click claim
Primaryoffers() · subscribe(offerId, amount)Primary subscription with atomic DvP settlement
BridgebridgeDeposit(sln, chainId, target) · bridgeClaim(id)Lock / claim, progress trackable on-chain
AccountbalanceSLN() · balanceOf(sym) · isVerified() · registerSelf()Balances, positions and KYC identity
Sample projects · 6 full scenarios
Each sample runs in under 10 lines; full projects (with frontends) ship in the open-source GitHub repo.
1. Real-time quotes

Fetch oracle prices for every stock token in one call.

const sdk = new SolonSDK();
console.log(await sdk.prices());
// { NVDA: 145, AAPL: 230, TSLA: 420, … }
↓ Download full example
2. Pre-transfer compliance check

Check KYC on both sides before transferring — no on-chain reverts.

const ok = await sdk.isVerified(toAddr);
if (!ok) throw new Error('Recipient has not passed KYC');
// then call token transfer
↓ Download full example
3. Claim all dividends

Walk every distribution batch and claim everything claimable.

for (const d of await sdk.dividends()) {
  if (await sdk.claimable(d.id) > 0)
    await sdk.claimDividend(d.id);
}
↓ Download full example
4. Primary subscription

Read live offerings and subscribe by shares (DvP settlement).

const [offer] = await sdk.offers();
await sdk.subscribe(offer.id ?? 1, '100');
// 100 GLD shares, atomic DvP settlement
↓ Download full example
5. Bridge out

Lock SLN into the bridge; self-claim after relay confirmation.

await sdk.bridgeDeposit('50', 11155111, myAddr);
// track progress: bridge.getXfer(id)
↓ Download full example
6. Limit order + auto-cancel

Place a bid, watch for fills, auto-cancel on timeout.

await sdk.placeBuy('NVDA', '140', '5');
// ... not filled after 10 min:
await sdk.cancelOrder(orderId);  // escrowed SLN auto-refunded
↓ Download full example
Enterprise developers · apply for bulk test credits
Institutional integration, market-maker sandboxes and issuer onboarding can apply for bulk SLN test credits and dedicated RPC quotas (default 10 req/s, institutional 100 req/s). We enable access by email.

· Python and TypeScript SDKs are both available (web3.py / ethers v6, methods mirror the JS SDK); the viem wrapper ships with mainnet.
· Institutional API (REST + WebSocket, API Key + HMAC + IP whitelist) opens in phase two — endpoint list in the developer docs.
· All contract addresses and ABIs are bundled in solon-defi.js (JS) and assets/abi/*.json (Python) — zero manual config.