Getting Started

Connect to Obsidian

Network Details

Property
Value

Chain ID

421 (0x1a5)

RPC URL

https://rpc.obsidianchain.net

Block Explorer

https://app.obsidianchain.net

Add to Wallet

MetaMask:

  1. Settings → Networks → Add Network

  2. Enter details above

  3. Save

Programmatic:

await window.ethereum.request({
  method: "wallet_addEthereumChain",
  params: [
    {
      chainId: "0x1a5",
      chainName: "Obsidian Testnet",
      rpcUrls: ["https://rpc.obsidianchain.net"],
      nativeCurrency: { name: "OBS", symbol: "OBS", decimals: 18 },
    },
  ],
});

Send Your First Message

Obsidian has two message types:

  • PM (Priority Messages): paid; set bid to a non-zero value (must be at least 0.001 OBS = 1e15 wei). No VDF.

  • SM (Standard Messages): set bid = 0. VDF is required on testnet.

Tip: Set targetBlock = 0 to let the node auto-assign the earliest includable block. Pinning a non-zero targetBlock can fail with "target block is frozen".

Using ethers.js

Retrieve Messages

Next Steps

Last updated