{
  "agentId": 7616,
  "request": {
    "amount": "5000000",
    "termSeconds": "604800",
    "termDays": 7
  },
  "fee": "11666",
  "feeFormula": "principal x baseFeeBps x term / (30d x 10000)",
  "totalDue": "5011666",
  "effectiveApr": 0.1216597142857143,
  "line": "5000000",
  "available": "5000000",
  "feasible": true,
  "violations": [],
  "payTo": "0x2BcAbba4FF62f0d45Bc3FC71C99198e4dfb8F7f0",
  "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
  "steps": [
    {
      "step": 1,
      "label": "Draw from credit line",
      "to": "0x281210097f0de7A8FB6F87310AF0f089c9C8DE21",
      "functionSignature": "borrow(uint256 agentId,uint256 principal,uint64 term,address to,uint256 maxFee)",
      "args": {
        "agentId": "7616",
        "principal": "5000000",
        "term": "604800",
        "to": "0x2BcAbba4FF62f0d45Bc3FC71C99198e4dfb8F7f0",
        "maxFee": "11666"
      },
      "data": "0x1a29492b0000000000000000000000000000000000000000000000000000000000001dc000000000000000000000000000000000000000000000000000000000004c4b400000000000000000000000000000000000000000000000000000000000093a800000000000000000000000002bcabba4ff62f0d45bc3fc71c99198e4dfb8f7f00000000000000000000000000000000000000000000000000000000000002d92"
    },
    {
      "step": 2,
      "label": "Settle the x402 invoice in USDG",
      "to": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
      "functionSignature": "transfer(address to,uint256 amount)",
      "args": {
        "to": "0x2BcAbba4FF62f0d45Bc3FC71C99198e4dfb8F7f0",
        "amount": "5000000"
      },
      "data": "0xa9059cbb0000000000000000000000002bcabba4ff62f0d45bc3fc71c99198e4dfb8f7f000000000000000000000000000000000000000000000000000000000004c4b40"
    },
    {
      "step": 3,
      "label": "Repay principal + fee to rebuild the score",
      "to": "0x281210097f0de7A8FB6F87310AF0f089c9C8DE21",
      "functionSignature": "repay(uint256 loanId,uint256 agentId,uint256 amount)",
      "args": {
        "loanId": "<loanId from the Borrowed event in step 1>",
        "agentId": "7616",
        "amount": "5011666"
      },
      "data": null,
      "note": "Calldata is finalised once step 1 emits its loanId."
    }
  ],
  "note": "Calldata is returned unsigned. This app holds no agent keys; the operator broadcasts."
}