{
  "$ref": "#/definitions/SerializableUnsignedCosmosTransaction",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "SerializableUnsignedCosmosTransaction": {
      "additionalProperties": false,
      "properties": {
        "callbackURL": {
          "type": "string"
        },
        "publicKey": {
          "type": "string"
        },
        "transaction": {
          "additionalProperties": false,
          "properties": {
            "accountNumber": {
              "type": "string"
            },
            "chainID": {
              "type": "string"
            },
            "fee": {
              "additionalProperties": false,
              "properties": {
                "amount": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "amount": {
                        "type": "string"
                      },
                      "denom": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "denom",
                      "amount"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "gas": {
                  "type": "string"
                }
              },
              "required": [
                "amount",
                "gas"
              ],
              "type": "object"
            },
            "memo": {
              "type": "string"
            },
            "messages": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "amount": {
                          "type": "string"
                        },
                        "denom": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "denom",
                        "amount"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "fromAddress": {
                    "type": "string"
                  },
                  "toAddress": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      0,
                      1,
                      2,
                      3
                    ],
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "amount",
                  "fromAddress",
                  "toAddress"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "sequence": {
              "type": "string"
            }
          },
          "required": [
            "messages",
            "fee",
            "memo",
            "chainID",
            "accountNumber",
            "sequence"
          ],
          "type": "object"
        }
      },
      "required": [
        "publicKey",
        "transaction"
      ],
      "type": "object"
    }
  }
}
