WayChain Docs

Getting Started

New to blockchains? This is your UX wall walkthrough — from zero to first transaction in 3 steps.

1️⃣

Get a Wallet

WayChain uses Ed25519 signatures. Generate your key, save your seed phrase.

2️⃣

Get Test Tokens

Visit /faucet. Request 10 WAY. No real money needed.

3️⃣

Send Transaction

Transfer to another address. See it confirmed in 1 second.

Step 1: Get Your Wallet

A blockchain wallet is like a bank account, but you hold the keys. WayChain uses Ed25519 signatures — different from Bitcoin/Ethereum.

Use the web wallet at /wallet for key generation. All operations happen client-side, but the wallet stores keys in browser storage on this device, so treat it as a convenience wallet rather than a hardened vault.

Or use any Ed25519-compatible library in your preferred language to generate keys locally.

WayChain uses Ed25519 signatures

Generate keys in the web wallet (browser-local private key + recovery phrase) or mobile wallet (12-word recovery phrase). Both use Ed25519 — different from Bitcoin/Ethereum's secp256k1. Your keys, your custody.

Step 2: Get Test Tokens

Two ways to get WAY tokens:

Option A: CashApp Bitcoin Bridge

Precompile live (BitcoinRegistry 0x16). Consumer UX in development.

  1. Send $1 BTC to the WayChain treasury address (shown on Dox_Dev Badge page)
  2. Your TXID proves the send (6+ confirmations on Bitcoin)
  3. ~100 WAY will credit to your WayChain address

Treasury holds the BTC. Protocol credits your address.

Option B: Request from Faucet

Go to /faucet. Paste your address. Click "Request 10 WAY". Get tokens in 1 second.

  1. Go to Faucet
  2. Paste your WayChain address (starts with 0x)
  3. Click "Request 10 WAY"
  4. Check your balance in 1 second (links to explorer)

Option C: Send Bitcoin, Receive 1WAY Stablecoin

Precompile live (WayStablecoin 1WAY 0x22). Consumer UX in development.

Send real BTC and receive 1WAY — the Bitcoin-backed stablecoin — at 1:1 peg. 1WAY is minted by the 1WAY precompile (0x22) itself when BTC is deposited and attested (BTC locked → 1WAY minted). It is not minted by the BitcoinRegistry (0x16, which only maps BTC addresses to WayChain addresses) and not by the Vault. The Vault (TwoWayVault 0x18) is a separate CDP engine that mints 2WAY against deposited stablecoins. The oracle

  1. Send BTC to the 1WAY bridge address (details on badge page)
  2. Wait for 6+ confirmations (~1 hour on Bitcoin)
  3. 1WAY credits to your WayChain address via the 1WAY precompile (0x22)
  4. Use 1WAY anywhere on WayChain — swap, send, hold

1WAY = Bitcoin on WayChain. Fully backed 1:1 (BTC locked → 1WAY minted at 0x22). Vault (0x18) mints 2WAY, not 1WAY.

Balance check: curl -X POST https://api.waychain.org \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"way_getBalance","params":["0xYourAddress"],"id":1}'

Step 3: Send Your First Transaction

Transfer tokens to another address. Watch it get confirmed in 1 second.

$ curl -X POST https://api.waychain.org \ -H "Content-Type: application/json" \ -d '{ "jsonrpc":"2.0", "method":"eth_sendRawTransaction", "params":["0x"], "id":1 }'

WayChain uses Ed25519-signed binary transactions submitted via eth_sendRawTransaction — there is no eth_sendTransaction (account-unlocking) RPC. Build and sign the tx client-side (see web wallet / mobile wallet), then broadcast the raw bytes.

What happened:

What Is a Blockchain?

A blockchain is a digital ledger that everyone can read but no one can secretly edit. Instead of one company holding all records, copies exist on thousands of computers worldwide.

Traditional BankWayChain
Bank holds your dataYou hold your data
Bank can freeze/be frozenNo one can freeze it
Bank sets feesGas-based fees (min 1 wei/gas)
Takes days to settleFinal in 1 second

Developer Walkthrough

Build on the lighthouse. Native Go precompiles. 1-second finality.

🔨

1. Verify Identity

Start at /badge. Get Dox_Dev Level 2 to deploy. Level 3 to curate.

📚

2. Read the Book

Whitepaper at /whitepaper. 22 chapters. All features documented.

🔌

3. Connect RPC

Use https://api.waychain.org. Standard eth_* methods + way_* extensions.

🚀

4. Deploy Smart

WayChain requires SHA256 selectors. Ed25519 signatures. See docs.

Quick Start (Code)

Example: Using the WayChain Client

# Install the WayChain client
curl -sSL https://raw.githubusercontent.com/ThinkIbrokeIt/waychain-client/main/scripts/install.sh | bash

# Check Dox_Dev badge level for an address
waychain rpc call way_getDoxLevel 0xYourAddress

# Check balance
waychain rpc call eth_getBalance 0xYourAddress latest

Key Differences from Standard EVM

WayChain uses SHA256, not keccak256

All function selectors, storage keys, and transaction hashes use SHA256. Standard EVM tooling uses keccak256 — adapt your ABI selectors.

FeatureWayChainStandard EVM
Hash functionSHA256 everywhere (selectors too). 0x21 is Keccak256 (app-layer hashing bridge)keccak256
SignaturesEd25519ECDSA (secp256k1)
Tx formatBinary (not RLP)RLP-encoded
FeesGas-based (min 1 wei/gas) / fixed costs for specific opsAuction-based
Precompiles28 at 0x0C-0x270x01-0x0A

RPC API

# Current block
curl -X POST https://api.waychain.org \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

# Check Dox_Dev level
curl -X POST https://api.waychain.org \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"way_getDoxLevel","params":["0xYourAddress"],"id":1}'

# WebSocket stream
wss://api.waychain.org/ws

Native Precompiles (0x0C-0x27)

AddressNameFunctionStatus
0x0COracleAggregatorPrice aggregation✅ Live
0x0DOracleSchedulerOracle scheduling✅ Live
0x0EOracleVerifierSingle oracle verification✅ Live
0x0FTLSVerifierNotary attestation verification (ed25519)✅ Live
0x10AggregateSignatureVerifyed25519 aggregate signatures✅ Live
0x11AccountRecovery3-guardian signature recovery✅ Live
0x12StateRentCalcRent calculation✅ Live
0x13DoxDevBadgeIdentity badge system✅ Live
0x14BinaryJournal (BIJO)Truth anchoring✅ Live
0x15DeadMansSwitchInheritance protocol✅ Live
0x16BitcoinRegistryBTC address ↔ WayChain mapping (bridge registry)✅ Live
0x17StorageEndowmentPerpetual storage funding✅ Live
0x18TwoWayVaultMulti-collateral CDP vault✅ Live
0x19StabilityPoolProtocol economics✅ Live
0x1ATrustlessLockLiquidity locks✅ Live
0x1BAccountManager3-stage custody✅ Live
0x1CPrivacyZK selective disclosure✅ Live
0x1DGovernanceProposals & voting✅ Live
0x1EStateRentStorage fees✅ Live
0x1FCrossChainExternal attestations✅ Live
0x20MRT RegistryMineral rights✅ Live
0x21Keccak256App-layer SHA-3 hashing bridge✅ Live
0x22WayStablecoin (1WAY)BTC-backed stablecoin
BTC locked → 1WAY minted (1:1)
✅ Live
0x23TaskRegistryProfessional oracle tasks
Bounties for geologists, lawyers, surveyors, engineers
✅ Live
0x24SWAY TokenDEX LP incentive
Minted by 2WAY Vault (0x18) / TaskRegistry (0x23) rewards
✅ Live
0x25SwapRoute (DEX)Native DEX
0.3% fee, SWAY rewards to LPs
✅ Live
0x26TemplateRegistrySafe contract templates
Class A deployment for Level 2+
✅ Live
0x27GasFaucetDrips WAY for gas to new accounts / quest trackers✅ Live

Web Connection Layer (Live)

The frontend talks to mainnet through a single shared precompile registry — one source of truth for all 28 precompiles (0x0C–0x27) and all 128 methods (54 read / 74 write), verified against the Go source on the node. Both the web and mobile wallets use it.

Prebuilt UI sections (all reading live chain state): /tokens (BIJO · 1WAY · SWAY · SwapRoute), /identity (Dox_Dev · Governance · TaskRegistry), /defi (TwoWayVault · StabilityPool · TrustlessLock · AccountRecovery), /realworld (MineralRights · BitcoinRegistry · DeadMansSwitch), /protocol (oracles · privacy · cross-chain · template registry).

Dox_Dev Identity Requirements

Deploy Gate (3 Layers)

  1. RPC Layer — HTTP check before transaction enters pool.
  2. Block Production — Proposer verifies all transactions.
  3. EVM Opcode — Runtime enforcement in every contract call.