Build. One endpoint, plain JSON
Read blocks and accounts, ask the chain for the text of a transfer, sign it with any ed25519 key and send it. No SDK needed.
- 01Solana keys
ed25519 keys and base58 addresses. Any Solana keypair works.
- 02Readable transactions
A transaction is a short text. What you sign is what you read.
- 03Checkable blocks
Each block carries its hash, its roots and the validator's signature.
- 04Open endpoint
CORS is open: call it from a browser, a bot or a script.
Connecting…
# The state of the chain $ curl https://cinderchain.fun/api/chain \ -H "content-type: application/json" \ -d '{"method": "cinder_chainInfo"}' # A block, an account, a transaction {"method": "cinder_getBlock", "params": {"height": 1}} {"method": "cinder_getAccount", "params": {"address": "..."}} {"method": "cinder_getTransaction", "params": {"hash": "..."}}
// 1. ask the chain for the text of the transfer const { message } = await call("cinder_buildTransfer", { from, to, amount: "2.5", memo: "gm", }); // 2. sign that text with the wallet (ed25519) const { signature } = await wallet.signMessage( new TextEncoder().encode(message), "utf8"); // 3. send both; the signature goes in base64 const { hash, height } = await call("cinder_sendTransaction", { message, signature: btoa(String.fromCharCode(...signature)), });
# 10 test CNDR to any address, once a day $ curl https://cinderchain.fun/api/chain \ -H "content-type: application/json" \ -d '{"method": "cinder_faucet", "params": {"address": "<your address>"}}' # The answer names the transaction and the block # that sealed it. Look either up in the explorer. {"result": {"hash": "...", "height": 42, "amount": "10000000"}}
This is the text a wallet signs for a transfer of 2.5 CNDR: seven lines, eight with a memo. The chain refuses anything not written exactly this way.
CinderChain transaction Chain: cinder-testnet-1 From: <your address> To: <their address> Amount: 2.5 CNDR Fee: 0.001 CNDR Nonce: 0 Memo: gm