> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockops.network/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a constrained generic signing request

> Compatibility alias for SDK requestSign calls. Semantics match /api/v1/web3/transaction/{wallet_id}/signRaw and it is deprecated for policy-governed tenants in favor of /api/v1/web3/transaction/{wallet_id}/signTyped.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/v1/web3/{wallet_id}/sign
openapi: 3.0.3
info:
  title: Blockops Wallet API
  version: 0.1.0
  description: >
    The Blockops Wallet API: create MPC wallets, attach assets and read deposit
    addresses and balances, request withdrawals and signing, and manage webhooks
    and API keys.
servers:
  - url: https://wallet-sandbox.blockops.network
security:
  - AccessApiKey: []
    AccessTimestamp: []
    AccessSign: []
tags:
  - name: catalog
  - name: wallets
  - name: balances
  - name: withdrawals
  - name: transactions
  - name: signing
  - name: webhooks
  - name: api-keys
  - name: audit
  - name: observability
paths:
  /api/v1/web3/{wallet_id}/sign:
    post:
      tags:
        - signing
      summary: Create a constrained generic signing request
      description: >-
        Compatibility alias for SDK requestSign calls. Semantics match
        /api/v1/web3/transaction/{wallet_id}/signRaw and it is deprecated for
        policy-governed tenants in favor of
        /api/v1/web3/transaction/{wallet_id}/signTyped.
      parameters:
        - $ref: '#/components/parameters/WalletID'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericSigningRequest'
      responses:
        '200':
          description: Existing idempotent generic signing request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSigningResponseEnvelope'
        '202':
          description: New generic signing request accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSigningResponseEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/Conflict'
        '503':
          $ref: '#/components/responses/RouteUnavailable'
      deprecated: true
components:
  parameters:
    WalletID:
      name: wallet_id
      in: path
      required: true
      schema:
        type: string
    IdempotencyKey:
      name: X-Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        maxLength: 128
      description: Idempotency key for write operations.
  schemas:
    GenericSigningRequest:
      type: object
      required:
        - network_internal_code
        - signing_hash
      properties:
        network_internal_code:
          type: string
          description: Network internal code.
          example: ETHER_SEPOLIA_TESTNET
        networkInternalCode:
          type: string
          description: Camel-case compatibility alias for network_internal_code.
          example: ETHER_SEPOLIA_TESTNET
        key_type:
          type: string
          enum:
            - secp256k1
            - ed25519
          default: secp256k1
        keyType:
          type: string
          enum:
            - secp256k1
            - ed25519
        signing_hash:
          type: string
          description: Hex-encoded 32-byte digest to sign.
          example: '0x1111111111111111111111111111111111111111111111111111111111111111'
        signingHash:
          type: string
          description: Camel-case compatibility alias for signing_hash.
        hash:
          type: string
          description: Compatibility alias for signing_hash.
        transaction_hash:
          type: string
          description: Compatibility alias for signing_hash.
        transactionHash:
          type: string
          description: Compatibility alias for signing_hash.
        unsigned_tx:
          type: string
          description: Optional hex payload to persist for audit; defaults to signing_hash.
        unsignedTx:
          type: string
        raw_transaction:
          type: string
        rawTransaction:
          type: string
        tx:
          type: string
        derivation_path:
          type: string
          example: 44/60/0/0/0
        derivationPath:
          type: string
        derivation_path_components:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          example:
            - 44
            - 60
            - 0
            - 0
            - 0
    GenericSigningResponseEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          required:
            - data
          properties:
            data:
              $ref: '#/components/schemas/GenericSigningResponse'
    EnvelopeBase:
      type: object
      required:
        - success
        - message
        - code
      properties:
        success:
          type: boolean
        message:
          type: string
          example: success
        code:
          oneOf:
            - type: integer
            - type: string
          example: 0
    GenericSigningResponse:
      type: object
      required:
        - created
        - signing_request
      properties:
        created:
          type: boolean
        signing_request:
          $ref: '#/components/schemas/SigningOperation'
    ErrorEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          required:
            - data
          properties:
            success:
              type: boolean
              example: false
            data:
              nullable: true
    SigningOperation:
      type: object
      required:
        - id
        - signing_id
        - operation_type
        - wallet_id
        - network_internal_code
        - key_type
        - signing_hash
        - derivation_path
        - status
      properties:
        id:
          type: string
        signing_id:
          type: string
        operation_type:
          type: string
          enum:
            - withdrawal
            - generic
          default: withdrawal
        withdrawal_id:
          type: string
          nullable: true
        wallet_id:
          type: string
        network_internal_code:
          type: string
        key_type:
          type: string
          enum:
            - secp256k1
            - ed25519
        signing_hash:
          type: string
        derivation_path:
          type: string
        status:
          type: string
          enum:
            - pending
            - submitted
            - failed
            - success
        status_reason:
          type: string
        mpc_correlation_id:
          type: string
        error_code:
          type: string
        error_reason:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Authentication failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            success: false
            message: invalid api signature
            code: unauthorized
            data: null
    Conflict:
      description: Idempotency or state conflict.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RouteUnavailable:
      description: Route disabled, upstream missing, or dependency unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    AccessApiKey:
      type: apiKey
      in: header
      name: ACCESS-API-KEY
      description: HMAC API-key identifier.
    AccessTimestamp:
      type: apiKey
      in: header
      name: ACCESS-TIMESTAMP
      description: Unix timestamp in seconds.
    AccessSign:
      type: apiKey
      in: header
      name: ACCESS-SIGN
      description: Base64-encoded hex HMAC signature.

````