Trading and Earn
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.
Workflow
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.
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.
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.
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"}'