← Getting started

Agent

Your agent keeps its own keys, its own model and its own logic. One call changes: the one that used to move money. It now asks the gate, and the gate answers with a decision rather than an opinion.

Nothing here grants the agent an allowance. It cannot pay an invoice that has no matching order, however convincingly it is asked to.

Connection

The gate has not been called yet. It will show up here the moment it is.

Waiting

What your agent needs

Gate address
0x8ec88c90d675594ab969ed1180f8b887dfac1c71
Chain id
1874
RPC
https://rpc.testnet.whitechain.io

Two ways in

Use the SDK when the agent is the buyer and holds the wallet. Use the metered endpoint when something outside your system wants to know whether an invoice would clear.

Your agent holds the wallet and pays.

import { createGate } from "@zowall/sdk";

const gate = createGate({
  gateAddress: "0x8ec88c90d675594ab969ed1180f8b887dfac1c71",
  publicClient,   // viem, Whitechain Sepolia (chain 1874)
  walletClient,   // your agent's existing wallet
});

// Where your agent used to call transfer(), it calls this.
const decision = await gate.pay(invoice, vendorSignature);

if (decision.outcome !== "PAID") {
  // Nothing moved. decision.codes says exactly why.
  log(decision.reason);
}

What the gate returns

Three outcomes, and never an exception because a document was wrong. A refusal is an answer, not a crash.

PAID

The invoice matched the order and the receipt. USDT moved in the same transaction.

HELD

Close, but a human should look. It waits in Exceptions for someone who is not the buyer or the receiver.

REFUSED

A hard rule broke. No money moved, and the refusal is on-chain with every code that failed.