Examples
Working end-to-end examples against the Ignis devnet. Each example is self-contained — copy, fund the wallet from the faucet, and run.
The examples
- First Transaction — generate a wallet, fund it, send an OMC transfer, verify on the explorer. The canonical smoke test.
- Deploy an ORC-20 Token — deploy a fungible token, mint to an account, transfer, query balance.
- Subscribe to Events — open a WebSocket, stream new blocks, react to contract events.
- Subscription Contract — the 779-byte WASM subscription engine from the foundation blog post. Deploy it, call
subscribe, checkis_active.
Running the examples
Every example assumes:
npm install @omne/sdkAnd uses the Ignis devnet RPC:
const client = new OmneClient('wss://rpc.ignis.omnechain.network')Fund the account you’re running as from the faucet before executing state-mutating examples. See Fund from Faucet.
Verify on the explorer
Every example ends with a verification step against omnescan.com. Transaction IDs, contract addresses, and account balances are all observable there.
Source-of-truth note
These snippets target @omne/sdk@0.3.x. If you are on a newer SDK major version, method signatures may have shifted — check the SDK reference and the CHANGELOG.
Examples are intentionally short. For larger starter repositories (Next.js, Express, Python ports), see the Omne GitHub organization.