{
  "x402Version": 2,
  "id": 30194,
  "slug": "30194",
  "resource": "https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/matrixOperations",
  "description": "Matrix operations: multiply, transpose, determinant, and invert, for matrices up to 20x20. Uses the ml-matrix library's LU decomposition (LuDecomposition) for determinant and inversion, with a numerical near-singularity guard beyond the library's exact-singular check.",
  "type": "http",
  "serviceName": "Sindri",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x548eFd4f4d4A5C3669dbb4CBB2B1A637FeeEc5F6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "APer2AbhckyMWyJanW2MZ2eRLcpL9Lmhks8rkmXfqjRG",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "matrixA": [
              [
                1,
                2
              ],
              [
                3,
                4
              ]
            ],
            "matrixB": [
              [
                5,
                6
              ],
              [
                7,
                8
              ]
            ],
            "operation": "multiply"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "params": {
                "matrixA": [
                  [
                    1,
                    2
                  ],
                  [
                    3,
                    4
                  ]
                ],
                "matrixB": [
                  [
                    5,
                    6
                  ],
                  [
                    7,
                    8
                  ]
                ],
                "operation": "multiply"
              },
              "result": [
                [
                  19,
                  22
                ],
                [
                  43,
                  50
                ]
              ]
            },
            "ok": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "matrixA": {
                    "description": "A 2D array of numbers, up to 20x20.",
                    "type": "array"
                  },
                  "matrixB": {
                    "description": "A 2D array of numbers, required only for multiply.",
                    "type": "array"
                  },
                  "operation": {
                    "description": "Operation to perform.",
                    "enum": [
                      "multiply",
                      "transpose",
                      "determinant",
                      "invert"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "operation",
                  "matrixA"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "x402_api_vendor",
        "s": [
          "cdp_sdk_server"
        ]
      },
      "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"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "eip2612GasSponsoring": {},
    "erc20ApprovalGasSponsoring": {}
  },
  "tags": [
    "matrix operations",
    "linear algebra",
    "matrix math",
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws",
  "lastUpdated": "2026-10-08T06:26:00.251Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:26:00.138Z"
  },
  "metadata": {
    "serviceName": "Sindri",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "matrixA": [
                [
                  1,
                  2
                ],
                [
                  3,
                  4
                ]
              ],
              "matrixB": [
                [
                  5,
                  6
                ],
                [
                  7,
                  8
                ]
              ],
              "operation": "multiply"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "params": {
                  "matrixA": [
                    [
                      1,
                      2
                    ],
                    [
                      3,
                      4
                    ]
                  ],
                  "matrixB": [
                    [
                      5,
                      6
                    ],
                    [
                      7,
                      8
                    ]
                  ],
                  "operation": "multiply"
                },
                "result": [
                  [
                    19,
                    22
                  ],
                  [
                    43,
                    50
                  ]
                ]
              },
              "ok": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "matrixA": {
                      "description": "A 2D array of numbers, up to 20x20.",
                      "type": "array"
                    },
                    "matrixB": {
                      "description": "A 2D array of numbers, required only for multiply.",
                      "type": "array"
                    },
                    "operation": {
                      "description": "Operation to perform.",
                      "enum": [
                        "multiply",
                        "transpose",
                        "determinant",
                        "invert"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "operation",
                    "matrixA"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "x402_api_vendor",
          "s": [
            "cdp_sdk_server"
          ]
        },
        "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"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "eip2612GasSponsoring": {},
      "erc20ApprovalGasSponsoring": {}
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws",
    "manifest_name": "ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}