Build on Unsolvable with one RPC.
Ethereum JSON-RPC for reads, one native method for writes, and the wallet’s own module to sign. Everything runs against the public testnet.
From an empty browser to a mined transaction in minutes
- 01
Get test coins
Create an account in the wallet and take 25 coins from the faucet. No sign-up, no email.
curl -X POST https://unsolvablequantum.com/api/faucet -d '{"address":"0x…"}' - 02
Load the module
Import /js/core.js from any node. It makes keys, signs with SLH-DSA and encodes the transaction.
import * as K from "https://unsolvablequantum.com/js/core.js" - 03
Send a transaction
Submit it with pq_sendTransaction and watch it land in the explorer a block later.
const { raw } = K.signTx({ to, value, nonce: 0n }, key) await rpc("pq_sendTransaction", [K.toHex(raw)])
Works with your stack
Reads go through standard JSON-RPC, so the Ethereum tools you already use work as they are.
- browser
JavaScript
import * as K from "/js/core.js" - 20 or newer
Node.js
node server.mjs --peer https://unsolvablequantum.com - cast
Foundry
cast block latest --rpc-url https://unsolvablequantum.com/rpc - reads
viem
http("https://unsolvablequantum.com/rpc") - 0.8
Solidity
address(0x0f01).staticcall(pk, msg, sig) - REST
curl
curl https://unsolvablequantum.com/api/stats
Sign with hashes in a few lines
The wallet’s own module is served by every node. Import it in a page or in Node, and you are writing to the chain.
import * as K from "https://unsolvablequantum.com/js/core.js"
const key = K.keygen() // or K.keygen(K.recoveryToSeed(text))
const { raw } = K.signTx({
nonce: 0n,
to: K.fromHex("0x8c1f…e04a"),
value: K.parseUnits("1.5"),
gasLimit: 21000n,
}, key)
await rpc("pq_sendTransaction", [K.toHex(raw)])Sign and send with one call.
Keys come from 48 bytes you can write down.
The signature is 17,088 bytes and checks in milliseconds.
Nodes refuse any key the account no longer answers to.
const { bytecode } = await fetch("/js/token-bytecode.json").then(r => r.json())
const data = bytecode + K.encodeTokenArgs("Keccak Coin", "KEC", K.parseUnits("1000000"))
const { raw } = K.signTx({
nonce: 1n,
data: K.fromHex(data),
gasLimit: 1500000n,
}, key)
await rpc("pq_sendTransaction", [K.toHex(raw)])Deploy Solidity bytecode as it comes out of the compiler.
Foundry and Hardhat output deploy unchanged.
Constructor arguments are plain ABI.
The receipt carries the new contract’s address.
const next = K.keygen()
const { raw } = K.signTx({
nonce: 2n,
kind: 1, // rotation
newKey: K.keyCommit(next.alg, next.publicKey),
gasLimit: 50000n,
}, key) // signed by the current key
await rpc("pq_sendTransaction", [K.toHex(raw)])Change keys, keep the address.
The commitment is written on-chain by consensus.
From that block on, the old key is refused.
Balance, history and contracts stay where they are.
function verify(bytes32 pk, bytes32 msgHash, bytes calldata sig)
external view returns (bool)
{
(bool ok, bytes memory out) = address(0x0f01).staticcall(
abi.encodePacked(pk, msgHash, sig) // 32 + 32 + 17,088 bytes
);
return ok && out.length == 32 && out[31] == 0x01;
}Check a hash-based signature on-chain.
Native precompile at 0x…0f01, 300,000 gas.
ecrecover is gone: this is the replacement.
Works for any SLH-DSA-SHAKE-128f key.
cast chain-id --rpc-url https://unsolvablequantum.com/rpc
cast block latest --rpc-url https://unsolvablequantum.com/rpc
cast balance 0x3c356C0c3991634828b328676cb664CC30404213 --rpc-url https://unsolvablequantum.com/rpc
# sending with an Ethereum key is refused:
# "this network has no elliptic curves"Ethereum tools read it as is.
Blocks, balances, receipts and logs over JSON-RPC.
Writes need an SLH-DSA envelope.
Any Ethereum key is refused by design.
Try every path on the testnet
Rotate a key, deploy a token, mine a block, run a node: the testnet behaves like the network it is, and its coins have no value.