Skip to content

Testing and Test Mode

Test the whole flow on Base Sepolia with Test Mode keys, magic amounts that pick the dispute outcome, and synthetic events from the CLI.

Every account starts in Test Mode. Test Mode uses Base Sepolia, keys that start with arb_test_, and test tokens with no value. Nothing you do in Test Mode touches Live Mode data.

Magic amounts

In Test Mode, the cents of the amount choose what happens when the buyer opens a dispute, so you can test each outcome in seconds:

Amount ends in Outcome
.01 (for example 50.01) The merchant wins: a verdict releasing the funds is signed about 5 seconds after the dispute opens.
.02 (for example 50.02) The buyer is refunded: a full refund verdict is signed about 5 seconds after the dispute opens.
.03 (for example 50.03) The documentary flow: both parties can upload evidence for 10 minutes before the review.

Any other amount follows the normal review. In Test Mode the appeal window is zero, so verdicts can be executed immediately.

Synthetic events

POST /v1/events/trigger records a synthetic event and delivers it to your endpoints. It only notifies: no payment, dispute or transaction is created. Synthetic events use the zero payment id (0x000...000) and the reference arbiro_trigger, so your code can recognise them.

npx @arbiro/cli trigger dispute.verdict_signed
const event = await arbiro.events.trigger("payment.locked");
curl https://arbiro.com/v1/events/trigger \
  -H "Authorization: Bearer $ARBIRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"dispute.opened"}'

Live Mode keys receive 403 test_mode_only.

Test wallets

Use any wallet on Base Sepolia (chain id 84532). You need a little Sepolia ETH for gas and test USDC from Circle's public faucet. The checkout tells the buyer which network to use and switches the wallet for them.

Request logs

Dashboard, Developers, Logs lists every request made with your secret keys in the last 30 days: method, path, status, duration, key and idempotency key, with the JSON bodies. Secrets in bodies (client secrets, webhook secrets, tokens) are replaced by [redacted] before anything is stored. Filter by failed requests to debug an integration, or search by the request_id from an error.

You can also try any endpoint from the API reference with a Test Mode key: the request then shows up in your logs.

Going live

Live keys start with arb_live_. Creating one requires two-factor authentication on your account and a fresh code, and payments need a payout wallet linked and registered on Base mainnet. Live Mode opens once the audited contract is deployed there.

Updated