Applications (Precompiles)

Pod ships with a set of enshrined applications optimized for efficient markets. These are implemented as precompiles - built into the protocol itself rather than deployed as user contracts - giving them performance characteristics that application-layer contracts cannot match. The network currently provides:

  • Orderbook Spot - A central limit order book for spot markets. Supports order placement, cancellation, deposits, and withdrawals.

  • Optimistic Auctions - A batch auction primitive for intent settlement, where solvers compete to produce the best execution.

Interacting with Precompiles

You interact with Pod's precompiles the same way you would interact with any smart contract on Ethereum - by encoding function calls against a Solidity ABI and sending them via eth_call (reads) or eth_sendRawTransaction (writes).

Reading State

Query the deposited balance of a token in the orderbook contract using eth_call.

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://rpc.v1.dev.pod.network");

const ORDERBOOK = "0x000000000000000000000000000000000000C10B";
const abi = ["function getBalance(address token) view returns (uint256)"];
const orderbook = new ethers.Contract(ORDERBOOK, abi, provider);

const USDT = "0x0000000000000000000000000000000000000001";
const balance = await orderbook.getBalance(USDT);
console.log("Balance:", balance.toString());

Submitting Transactions

Send a signed transaction to place a buy order on the orderbook via eth_sendRawTransaction.

Last updated