$BULL0x30768B5482e5dd8a2487cE0BE61E01fA03Af37ff
Bull
For developers

Build on Bull

Two parties agree a trade, Bull settles it atomically in one escrow transaction. Open API and SDK. No account, no API key.

import { Bull } from "https://www.bull.family/sdk/bull.mjs";   // npm i viem

const bull = new Bull({ walletClient, publicClient });  // viem clients on Robinhood Chain (4663)

// Buyer
const dealId = await bull.open({
  seller: "0xSeller", sellToken: "0xToken", sellAmount: "1000",
  payAsset: "eth", payAmount: "0.25",            // or "usdg"
});
await bull.fund(dealId);                          // buyer pays

// Seller, from the seller wallet
await bull.fund(dealId);                          // delivers the tokens, the swap settles in this transaction

await bull.waitSettled(dealId);
const receipt = await bull.receipt(dealId);       // signed proof, checkable onchain

How it works

  1. Quote

    The buyer wallet gets a signed fee quote and the createDeal transaction. Pay in ETH or USDG.

  2. Fund

    Each side sends its transaction. The buyer pays, the seller delivers.

  3. Settled

    The second funding transaction swaps both sides at once. If it never completes, anyone can cancel after the deadline and both sides get their funds back.

Escrow 0xd961cA37e339E14e0D3478383a252E218fe7aa4a · Robinhood Chain (4663) · fees from 2.5%, lower with BULL in your wallet · every fee buys and burns BULL · partners earn half the fee: add ?ref=0xYourWallet