Truth.Farm Documentation

Build with the collateral-weighted oracle on BNB Chain. Start with the Quickstart, then dive into JS or Solidity as needed.

Start here

JavaScript/TypeScript (ethers v6)

Solidity

How it works

  1. Create — Post a question with start block and options (requires deposit)
  2. Vote — Stake tokens on answers; highest collateral wins
  3. Resolve — After the window ends; ties auto‑extend and revert until resolved
  4. Claim — Winners share the pot proportionally