Skip to main content
GET
/
safe
/
{marketId}
curl http://localhost:3001/safe/m1a2b3c4-d5e6-7890-abcd-ef1234567890
{
  "success": true,
  "data": {
    "contractAddress": "0xABC123...",
    "documentHash": "0xDEF456...",
    "deployTxHash": "0x789...",
    "linkTxHash": "0xAAA...",
    "settleTxHash": "0xBBB...",
    "baseSepoliaExplorerUrl": "https://sepolia.basescan.org/address/0xABC123...",
    "documentPreview": "SAFE Agreement for rippled...",
    "onChainStatus": {
      "status": "Settled",
      "mptIssuanceId": "00000001A1B2C3...",
      "documentHash": "0xDEF456..."
    },
    "xrplMptIssuanceId": "00000001A1B2C3...",
    "crossChainVerified": true
  }
}
Returns the MetaLex SAFE contract status for a settled market, including on-chain verification and cross-chain linking with the XRPL MPT.

Path Parameters

marketId
string
required
Market ID of a settled market.

Response

data
object
curl http://localhost:3001/safe/m1a2b3c4-d5e6-7890-abcd-ef1234567890
{
  "success": true,
  "data": {
    "contractAddress": "0xABC123...",
    "documentHash": "0xDEF456...",
    "deployTxHash": "0x789...",
    "linkTxHash": "0xAAA...",
    "settleTxHash": "0xBBB...",
    "baseSepoliaExplorerUrl": "https://sepolia.basescan.org/address/0xABC123...",
    "documentPreview": "SAFE Agreement for rippled...",
    "onChainStatus": {
      "status": "Settled",
      "mptIssuanceId": "00000001A1B2C3...",
      "documentHash": "0xDEF456..."
    },
    "xrplMptIssuanceId": "00000001A1B2C3...",
    "crossChainVerified": true
  }
}
If the Base Sepolia RPC is unreachable, the endpoint falls back to cached settlement data without the onChainStatus and crossChainVerified fields.