{
  "x402Version": 2,
  "id": 1059,
  "slug": "1059",
  "resource": "https://agents.samedaydesk.com/defi/morpho-position",
  "description": "Base address -> deterministic Morpho borrower position snapshot and collateral-price stress scenarios. Returns LTV, LLTV, health factor, liquidation headroom, source freshness, and scenario outcomes. Read-only indexed observation; direct RPC verification is required before execution.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "address": "0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f",
            "shocks": "-10,-20,-30"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "address": "0x4352Cc849b33a936Ad93bB109aFDec1c89653b4f",
            "boundary": "Read-only indexed observation; verify against direct RPC before execution.",
            "chain": {
              "id": 8453,
              "name": "Base mainnet"
            },
            "ok": true,
            "positionCount": 1,
            "positions": [
              {
                "marketId": "0x...",
                "risk": {
                  "currentLtvPct": 72,
                  "healthFactor": 1.194,
                  "liquidatableAtIndexedState": false,
                  "liquidationLtvPct": 86
                },
                "scenarios": [
                  {
                    "collateralPriceShockPct": -10,
                    "healthFactor": 1.075,
                    "liquidatable": false
                  }
                ]
              }
            ],
            "source": {
              "directRpc": "required before execution",
              "indexed": "Morpho API"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "address": {
                    "description": "Borrower EVM address on Base mainnet.",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "type": "string"
                  },
                  "shocks": {
                    "description": "Optional comma-separated collateral-price shocks in percent.",
                    "type": "string"
                  }
                },
                "required": [
                  "address"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "boundary": {
                    "type": "string"
                  },
                  "chain": {
                    "type": "object"
                  },
                  "fetchedAt": {
                    "type": "string"
                  },
                  "latestIndexedAt": {
                    "nullable": true,
                    "type": "string"
                  },
                  "ok": {
                    "type": "boolean"
                  },
                  "positionCount": {
                    "type": "integer"
                  },
                  "positions": {
                    "type": "array"
                  },
                  "source": {
                    "type": "object"
                  }
                },
                "required": [
                  "ok",
                  "address",
                  "chain",
                  "positionCount",
                  "positions",
                  "source",
                  "boundary"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_lqj09bnf"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "offer-receipt": {
      "info": {
        "offers": [
          {
            "acceptIndex": 0,
            "format": "eip712",
            "payload": {
              "amount": "20000",
              "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "network": "eip155:8453",
              "payTo": "0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee",
              "resourceUrl": "https://agents.samedaydesk.com/defi/morpho-position",
              "scheme": "exact",
              "validUntil": 1789411742,
              "version": 1
            },
            "signature": "0x9ab410ebd9d5347372497142258195aea1f953544834a242536562121269a5da6bc58aaaa32150bc6ec94ddcfa1e7bd7f27f0d2b487640dfc497a58c6987d6c31b"
          }
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "offers": {
            "items": {
              "properties": {
                "acceptIndex": {
                  "type": "integer"
                },
                "format": {
                  "type": "string"
                },
                "payload": {
                  "properties": {
                    "amount": {
                      "type": "string"
                    },
                    "asset": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "payTo": {
                      "type": "string"
                    },
                    "resourceUrl": {
                      "type": "string"
                    },
                    "scheme": {
                      "type": "string"
                    },
                    "validUntil": {
                      "type": "integer"
                    },
                    "version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "version",
                    "resourceUrl",
                    "scheme",
                    "network",
                    "asset",
                    "payTo",
                    "amount"
                  ],
                  "type": "object"
                },
                "signature": {
                  "type": "string"
                }
              },
              "required": [
                "format",
                "signature"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "offers"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code",
    "offer-receipt",
    "payment-identifier"
  ],
  "sourceHost": "agents.samedaydesk.com",
  "lastUpdated": "2026-09-14T18:44:02.252Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-09-14T18:44:01.959Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agents.samedaydesk.com",
    "manifest_name": "agents.samedaydesk.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}