Create a wallet
A wallet is an Ed25519 keypair plus a BIP-39 mnemonic. The SDK handles derivation and gives you an
ox address.
import { Wallet } from "@ombrachain/sdk";
// New random wallet (12-word mnemonic)
const wallet = Wallet.generate();
console.log(wallet.mnemonic); // "exchange shove card diary …"
console.log(wallet.address); // ox7a8b…
console.log(wallet.publicKey); // 64 hex chars
// Restore from a mnemonic
const restored = Wallet.fromMnemonic("exchange shove card diary …");
// Or import a raw private key
const imported = Wallet.fromPrivateKey("a1b2…");
Derivation path is m/44'/7777'/0'/0/index (OMBRA coin type 7777). Pass an index to fromMnemonic for
multiple accounts from one seed.
Try it
Generate a keypair live — derived exactly like the chain (ox + sha256(pubkey)[:20]):
◆ ox address generator
Generate a real Ed25519 keypair in your browser. The address is ox + first 20 bytes of sha256(publicKey) — identical to how the chain derives it.
Keep your mnemonic safe
The mnemonic controls the funds. Store it offline. Never paste a funded key into a website (the generator above is client-side and for learning only).