# Check a trading wallet before signing and verify its receipt

Check gas, allowance, minimum output and borrowing capacity, then follow a Bitpont execution across Portfolio, REST and MCP.

Guide: https://www.bitpont.com/help/ai-agents/check-trade-readiness-and-receipts/

## 1. Check the exact wallet

Replace the example wallet with your public address. Call tradeReadiness with a wallet-bound swap or Morpho Blue borrow. Choose the reserve and fee budget in wei. For a prepared action, check its executionId in the original workspace. Read each check and its next tool.

## 2. Review and authorize

Check the route, recipient, token units, allowance, output floor and expiry. On Base, copy both reserveWei and networkFeeBudgetWei into executionPrepare to enforce them before broadcasting. The wallet host authorizes the exact ticket.

## 3. Recover and verify

After a timeout recover the original executionId using executionLookup. Open tradeReceipt or Portfolio Activity for verified output, fees and delivery. Use the local optionsReceipt tool for Derive orders and packages.

## 4. Test failure cases

Run node bitpont-practice.mjs --check with Node 24. The agent kit includes REST and MCP fixtures for expired quotes, insufficient gas, partial fills, lost responses and bridge refunds.

## Preview a Base USDC swap

```
curl -fsS "https://www.bitpont.com/api/v1/agent/trade/readiness" \
  -H 'Content-Type: application/json' \
  -d '{"swap":{"network":"base","from":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","to":"0x0000000000000000000000000000000000000000","amount":"100000000","wallet":"0x0000000000000000000000000000000000000001","slippageBps":50},"reserveWei":"1000000000000000","networkFeeBudgetWei":"50000000000000"}'
```

## Tools

- `tradeReadiness`
- `executionPrepare`
- `executionLookup`
- `tradeReceipt`

## Further reading

- [Download the practice environment](<https://www.bitpont.com/assets/sdk/bitpont-practice.mjs>)
- [Route verification levels](<https://www.bitpont.com/assets/docs/route-verification.json>)
- [Execute a DeFi trade from an agent wallet](<https://www.bitpont.com/help/ai-agents/execute-with-agent-wallet/>)
- [Verify the tokens and fees from an agent swap](<https://www.bitpont.com/help/ai-agents/verified-swap-receipts/>)
- [Borrow against collateral and repay a DeFi loan](<https://www.bitpont.com/help/ai-agents/borrow-and-repay/>)
