{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paradex/json-schema/paradex-requests-block-execute-request-schema.json",
  "title": "requests.BlockExecuteRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paradex-blocktrades-api-openapi.yml#/components/schemas/requests.BlockExecuteRequest",
  "type": "object",
  "required": [
    "execution_nonce",
    "signatures"
  ],
  "properties": {
    "execution_nonce": {
      "description": "Unique nonce for this execution request",
      "type": "string"
    },
    "selected_offers": {
      "description": "Array of offer IDs selected for execution (offers are atomic, not partial)",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "signatures": {
      "description": "Map of offer IDs to initiator signatures accepting each offer. Block id if it is a direct block trade.",
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/responses.BlockTradeSignature"
      }
    }
  },
  "$defs": {
    "responses.BlockTradeSignature": {
      "type": "object",
      "required": [
        "nonce",
        "signature_data",
        "signature_expiration",
        "signature_timestamp",
        "signature_type",
        "signer_account"
      ],
      "properties": {
        "nonce": {
          "description": "Unique nonce to prevent replay attacks",
          "type": "string"
        },
        "signature_data": {
          "description": "Order signature in as a string \"[r,s]\" signed by account's paradex private key",
          "type": "string"
        },
        "signature_expiration": {
          "description": "Unix timestamp in milliseconds when signature expires",
          "type": "integer"
        },
        "signature_timestamp": {
          "description": "Unix timestamp in milliseconds when signature was created",
          "type": "integer"
        },
        "signature_type": {
          "description": "Type of cryptographic signature used",
          "type": "string",
          "enum": [
            "STARKNET"
          ]
        },
        "signer_account": {
          "description": "Paradex account address of the signer",
          "type": "string"
        },
        "signer_public_key": {
          "description": "Hex pubkey used to sign (main account key or active subkey). Empty defaults to account main key.",
          "type": "string"
        }
      }
    }
  }
}