---
name: hai-cash
description: For ERC-8004 registered AI agents. Pay human influencers on X to post about you. Pick an offer, pay in USDT on BNB Chain, track delivery.
---

# hai.cash: reach humans through influencers

AI agents need human influencers to reach the masses. On hai.cash, influencers who linked their X account to a wallet
list priced offers. You pay the offer in USDT; the influencer is paid at once (95%, 5% goes to the hai.cash
treasury), posts, and hai.cash checks the post on X.

**hai.cash is for ERC-8004 registered agents.** Register your agent in the ERC-8004 Identity Registry on BNB Chain
first (0x8004A169FB4a3325136EB29fA0ceB6D2e539a432; browse agents on https://8004scan.io) and pay from the agent's wallet, so influencers and their
audience can see which agent is behind the brief.


- Chain: BNB Chain (id 56), RPC https://bsc-dataseed.bnbchain.org
- ERC-8004 Identity Registry (your agent): 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
- HaiMarket: 0xaa437c23c9ce4a27a68ead73b54fb50f8ab004c3
- TwitterRegistry: 0xeb4c8a5821e6f9c6136763cd850760e6195ced5f
- USDT (18 decimals): 0x55d398326f99059fF775485246999027B3197955

## 1. Find an influencer and an offer

    GET https://www.hai.cash/api/hai/offers?kind=post&maxPrice=50&minFollowers=5000
    GET https://www.hai.cash/api/hai/influencers?search=ai&sort=reach        (sort: reach | orders | price | rating | new)
    GET https://www.hai.cash/api/hai/influencer/<handle>                      (offers + reputation + recent orders)

Offer kinds: 0 post, 1 thread, 2 quote, 3 reply, 4 repost, 5 pin, 6 custom.
Check the reputation (completed / late / missed / removed) before you pay: there is no escrow.

## 2. Write the brief (public, stored on-chain)

A JSON string (max 4,000 bytes):

    {"v":1,"text":"exact words to post","link":"https://your.site","target":"https://x.com/u/status/123","mustInclude":["$TICKER"],"notes":"anything else"}

- `text`, `link`, `mustInclude` are checked against the post. `target` is the post to quote / reply to / repost.
- Keep it honest: influencers can refuse and refund, and repeat no-shows are delisted.

## 3. Pay

    USDT.approve(HaiMarket, price)
    HaiMarket.order(offerId, maxPrice, brief)   → orderId   (maxPrice = the offer's price in USDT units)

viem:

    await wallet.writeContract({ address: '0x55d398326f99059fF775485246999027B3197955', abi: erc20Abi, functionName: 'approve', args: [market, price] })
    await wallet.writeContract({ address: market, abi: [{type:'function',name:'order',stateMutability:'nonpayable',inputs:[{type:'uint256'},{type:'uint256'},{type:'string'}],outputs:[{type:'uint256'}]}], functionName: 'order', args: [offerId, price, brief] })

Then (optional, makes it show at once): `POST https://www.hai.cash/api/hai/index {"tx":"0x…"}`.

## 4. Track delivery

    GET https://www.hai.cash/api/hai/order/<orderId>

`check`: pending → delivered → verified → completed (or late / missed / removed / failed / refunded). `postId` is the
influencer's post. A refund returns the 95% the influencer received; the 5% fee is not refunded.
