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

# Execute packed slot replacement

> Submit compact maker-slot operations over the Relay WebSocket.

Send `wallet.execute_replace_by_slot_packed` with a connection-local `id`. The payload follows the [REST packed-operation contract](/api/relay/reference/execute-replace-by-slot).

The same planning-time slot-binding rules apply over WebSocket: `0` requires an empty slot, a specific ID requires that exact order, and `18446744073709551615` is the wildcard for whichever order currently occupies the slot. Relay does not wait for finalization during planning, and signer ordering does not make concurrent planning observe preceding transactions. For continuous replacement, use the wildcard when that is the intended behavior; exact IDs require observing the corresponding proposed state first.


## AsyncAPI

````yaml api/relay/asyncapi.yaml executeReplaceBySlot
id: executeReplaceBySlot
title: Execute packed slot replacement
description: Execute compact 32-byte maker-slot operations.
servers:
  - id: mainnet
    protocol: wss
    host: relay.mainnet.kuru.io
    bindings: []
    variables: []
  - id: testnet
    protocol: wss
    host: relay.testnet.kuru.io
    bindings: []
    variables: []
address: /relay/ws
parameters: []
bindings: []
operations:
  - &ref_1
    id: receiveExecuteReplaceBySlot
    title: Receive execute replace by slot
    type: receive
    messages:
      - &ref_2
        id: request
        contentType: application/json
        payload:
          - allOf: &ref_0
              - type: object
                additionalProperties: false
                required:
                  - id
                  - method
                  - payload
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 128
                    description: Correlation ID unique within this connection.
                    x-parser-schema-id: <anonymous-schema-1>
                  method:
                    type: string
                    x-parser-schema-id: <anonymous-schema-2>
                  payload:
                    type: object
                    x-parser-schema-id: <anonymous-schema-3>
                  authorization7702:
                    oneOf:
                      - type: object
                        x-parser-schema-id: <anonymous-schema-5>
                      - type: 'null'
                        x-parser-schema-id: <anonymous-schema-6>
                    default: null
                    x-parser-schema-id: <anonymous-schema-4>
                x-parser-schema-id: BaseRequest
              - type: object
                properties:
                  method:
                    type: string
                    const: wallet.execute_replace_by_slot_packed
                    x-parser-schema-id: <anonymous-schema-21>
                x-parser-schema-id: <anonymous-schema-20>
            x-parser-schema-id: ExecuteReplaceRequest
            name: wallet.execute_replace_by_slot_packed
        headers: []
        jsonPayloadSchema:
          allOf: *ref_0
          x-parser-schema-id: ExecuteReplaceRequest
        title: wallet.execute_replace_by_slot_packed
        example: |-
          {
            "id": "replace-43",
            "method": "wallet.execute_replace_by_slot_packed",
            "payload": {
              "header": {
                "accountId": "123",
                "market": "0x8121ee960066e4344a213f9ac7502395502aee7a",
                "authNonce": "1",
                "nonce": "1720000000123",
                "deadline": "1720000030",
                "clientOrderId": "0x0000000000000000000000000000000000000000000000000000000000000001",
                "builder": "0x0000000000000000000000000000000000000000",
                "builderFeePps": "0"
              },
              "packedOps": "0x<one-or-more-32-byte-words>",
              "expectedOrderIds": [
                "31"
              ],
              "signature": "0x..."
            },
            "authorization7702": null
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: request
    bindings: []
    extensions:
      - id: x-parser-unique-object-id
        value: executeReplaceBySlot
sendOperations:
  - *ref_1
receiveOperations: []
sendMessages:
  - *ref_2
receiveMessages: []
extensions:
  - id: x-parser-unique-object-id
    value: executeReplaceBySlot
securitySchemes:
  - id: bearerAuth
    name: bearerAuth
    type: http
    description: Wallet-bound JWT supplied in the WebSocket upgrade Authorization header.
    scheme: bearer
    bearerFormat: JWT
    extensions: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.