{
  "$ref": "#/definitions/BitcoinTransactionSignRequest",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "BitcoinInTransaction": {
      "additionalProperties": false,
      "properties": {
        "address": {
          "type": "string"
        },
        "derivationPath": {
          "type": "string"
        },
        "txId": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "vout": {
          "type": "number"
        }
      },
      "required": ["txId", "value", "vout", "address"],
      "type": "object"
    },
    "BitcoinOutTransaction": {
      "additionalProperties": false,
      "properties": {
        "derivationPath": {
          "type": "string"
        },
        "isChange": {
          "type": "boolean"
        },
        "recipient": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": ["recipient", "isChange", "value"],
      "type": "object"
    },
    "BitcoinTransactionSignRequest": {
      "additionalProperties": false,
      "properties": {
        "callbackURL": {
          "type": "string"
        },
        "publicKey": {
          "type": "string"
        },
        "transaction": {
          "additionalProperties": false,
          "properties": {
            "ins": {
              "items": {
                "$ref": "#/definitions/BitcoinInTransaction"
              },
              "type": "array"
            },
            "outs": {
              "items": {
                "$ref": "#/definitions/BitcoinOutTransaction"
              },
              "type": "array"
            }
          },
          "required": ["ins", "outs"],
          "type": "object"
        }
      },
      "required": ["publicKey", "transaction"],
      "type": "object"
    }
  }
}
