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

# Multisig WebSocket

> Follow retained proposal snapshots without a signature.

Connect, then send the subscription with the **multisig account public key**. A key or an array of keys is accepted in `multisig`; the top-level `subscription` is always an array.

## Applying snapshots

The response uses `type: "multisig"` and topic `multisig.{pubkey}`. Replace that multisig's retained proposal set with `data.multisig.proposals`. These are full snapshots, not individual `proposalApproved` event rows.

A proposal snapshot is requested on subscription and refreshed after proposal lifecycle events. The subscription acknowledgement confirms the topic subscription; it does not prove the multisig exists or that its state is ready. A missing or non-multisig account may be acknowledged without producing a snapshot.

## Policy and reconnects

The stream carries proposals, not a current-policy mirror. Read [Get Multisig Policy](https://docs.bulk.trade/api-reference/multisig/get-policy.md) for current signers, threshold, timelock, and lifetime.

There is no replay cursor. After reconnecting, subscribe again and wait for a fresh snapshot, or reconcile with [Get Multisig Proposals](https://docs.bulk.trade/api-reference/multisig/get-proposals.md). Keep the acknowledged topic for `unsubscribe`.

Proposal timestamps are Unix nanoseconds. Preserve integer precision, and handle `executedWithFailures` and optional `error` exactly as in the HTTP proposal response.


## AsyncAPI

````yaml api-reference/multisig/asyncapi.yaml multisig
id: multisig
title: Multisig proposals
description: >-
  Subscribe with a multisig account key. The network requests a proposal
  snapshot on subscription and refreshes it after proposal lifecycle events.
  Subscription acknowledgement is not proof the account exists or snapshot
  readiness. The stream does not mirror the current signer policy and has no
  replay cursor.
servers:
  - id: mainnet
    protocol: wss
    host: mainnet-ws1.bulk.trade
    bindings: []
    variables: []
  - id: testnet
    protocol: wss
    host: exchange-ws1.bulk.trade
    bindings: []
    variables: []
address: /
parameters: []
bindings: []
operations:
  - &ref_2
    id: subscribeMultisig
    title: Subscribe to proposals
    type: receive
    messages:
      - &ref_5
        id: subscribe
        contentType: application/json
        payload:
          - name: Subscribe
            description: >-
              Schema defaults are playground form prefills. Paste a multisig
              public key before sending; a blank key is not a valid request.
            type: object
            properties:
              - name: method
                type: string
                enumValues:
                  - subscribe
                required: true
              - name: subscription
                type: array
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - multisig
                    required: true
                  - name: multisig
                    type: oneOf
                    description: >-
                      A multisig public key, or an array of multisig public
                      keys. No account is preselected.
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - method
            - subscription
          properties:
            method:
              type: string
              enum:
                - subscribe
              default: subscribe
              x-parser-schema-id: <anonymous-schema-2>
            subscription:
              type: array
              default:
                - type: multisig
                  multisig: ''
              items:
                type: object
                required:
                  - type
                  - multisig
                properties:
                  type:
                    type: string
                    enum:
                      - multisig
                    default: multisig
                    x-parser-schema-id: <anonymous-schema-5>
                  multisig:
                    description: >-
                      A multisig public key, or an array of multisig public
                      keys. No account is preselected.
                    oneOf:
                      - type: string
                        x-parser-schema-id: <anonymous-schema-7>
                      - type: array
                        items:
                          type: string
                          x-parser-schema-id: <anonymous-schema-9>
                        x-parser-schema-id: <anonymous-schema-8>
                    x-parser-schema-id: <anonymous-schema-6>
                x-parser-schema-id: <anonymous-schema-4>
              x-parser-schema-id: <anonymous-schema-3>
          x-parser-schema-id: <anonymous-schema-1>
        title: Subscribe
        description: >-
          Schema defaults are playground form prefills. Paste a multisig public
          key before sending; a blank key is not a valid request.
        example: |-
          {
            "method": "subscribe",
            "subscription": [
              {
                "type": "multisig",
                "multisig": "AZbJ7E5ewp3uYq7BZSoJjtT5TY8ucqdhW199wLovLpoF"
              }
            ]
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe
    bindings: []
    extensions: &ref_1
      - id: x-parser-unique-object-id
        value: multisig
  - &ref_4
    id: multisigSnapshots
    title: Receive proposal snapshots
    type: send
    messages:
      - &ref_7
        id: snapshot
        contentType: application/json
        payload:
          - name: Snapshot
            description: The full retained proposal set for one multisig
            type: object
            properties:
              - name: type
                type: string
                enumValues:
                  - multisig
                required: true
              - name: topic
                type: string
                description: multisig.{pubkey}
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: multisig
                    type: object
                    required: true
                    properties:
                      - name: multisig
                        type: string
                        description: Public key encoded as base58.
                        required: true
                      - name: proposals
                        type: array
                        description: >-
                          The retained proposal rows, including their inner
                          actions. This is not an unlimited historical archive.
                        required: true
                        properties:
                          - name: proposalId
                            type: integer
                            description: Proposal identifier within this multisig.
                            required: true
                          - name: proposer
                            type: string
                            description: Public key encoded as base58.
                            required: true
                          - name: createdAt
                            type: integer
                            description: >-
                              Unix timestamp in nanoseconds. Preserve full
                              integer precision.
                            required: true
                          - name: executeAfter
                            type: integer
                            description: >-
                              Earliest execution timestamp, in Unix nanoseconds;
                              approvals are also required.
                            required: true
                          - name: expiresAt
                            type: integer
                            description: >-
                              Unix timestamp in nanoseconds. Preserve full
                              integer precision.
                            required: true
                          - name: approvals
                            type: array
                            description: Member account public keys that approved.
                            required: true
                            properties:
                              - name: item
                                type: string
                                description: Public key encoded as base58.
                                required: false
                          - name: rejections
                            type: array
                            description: Member account public keys that rejected.
                            required: true
                            properties:
                              - name: item
                                type: string
                                description: Public key encoded as base58.
                                required: false
                          - name: approvalsCount
                            type: integer
                            description: Number of entries in approvals.
                            required: true
                          - name: rejectionsCount
                            type: integer
                            description: Number of entries in rejections.
                            required: true
                          - name: status
                            type: string
                            description: >-
                              Proposal state. executedWithFailures means the
                              proposal executed but one or more inner actions
                              failed; inspect error and resulting state.
                            enumValues:
                              - pending
                              - ready
                              - executed
                              - executedWithFailures
                              - failed
                              - expired
                              - cancelled
                              - rejected
                            required: true
                          - name: actions
                            type: array
                            description: >-
                              Stored inner actions in their encoded BULK action
                              shape.
                            required: true
                            properties:
                              - name: item
                                type: object
                                required: false
                          - name: error
                            type: string
                            description: >-
                              Failure details when present. Omitted when no
                              error is stored; not null.
                            required: false
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - topic
            - data
          properties:
            type:
              type: string
              enum:
                - multisig
              x-parser-schema-id: <anonymous-schema-11>
            topic:
              type: string
              description: multisig.{pubkey}
              x-parser-schema-id: <anonymous-schema-12>
            data:
              type: object
              required:
                - multisig
              properties:
                multisig:
                  type: object
                  required:
                    - multisig
                    - proposals
                  properties:
                    multisig:
                      type: string
                      description: Public key encoded as base58.
                      x-parser-schema-id: <anonymous-schema-14>
                    proposals:
                      type: array
                      items:
                        type: object
                        required:
                          - proposalId
                          - proposer
                          - createdAt
                          - executeAfter
                          - expiresAt
                          - approvals
                          - rejections
                          - approvalsCount
                          - rejectionsCount
                          - status
                          - actions
                        properties:
                          proposalId:
                            type: integer
                            minimum: 0
                            format: int64
                            description: Proposal identifier within this multisig.
                            x-parser-schema-id: <anonymous-schema-16>
                          proposer:
                            type: string
                            description: Public key encoded as base58.
                            x-parser-schema-id: <anonymous-schema-17>
                          createdAt:
                            type: integer
                            format: int64
                            minimum: 0
                            description: >-
                              Unix timestamp in nanoseconds. Preserve full
                              integer precision.
                            x-parser-schema-id: <anonymous-schema-18>
                          executeAfter:
                            type: integer
                            format: int64
                            minimum: 0
                            description: >-
                              Earliest execution timestamp, in Unix nanoseconds;
                              approvals are also required.
                            x-parser-schema-id: <anonymous-schema-19>
                          expiresAt:
                            type: integer
                            format: int64
                            minimum: 0
                            description: >-
                              Unix timestamp in nanoseconds. Preserve full
                              integer precision.
                            x-parser-schema-id: <anonymous-schema-20>
                          approvals:
                            type: array
                            items:
                              type: string
                              description: Public key encoded as base58.
                              x-parser-schema-id: <anonymous-schema-22>
                            description: Member account public keys that approved.
                            x-parser-schema-id: <anonymous-schema-21>
                          rejections:
                            type: array
                            items:
                              type: string
                              description: Public key encoded as base58.
                              x-parser-schema-id: <anonymous-schema-24>
                            description: Member account public keys that rejected.
                            x-parser-schema-id: <anonymous-schema-23>
                          approvalsCount:
                            type: integer
                            minimum: 0
                            description: Number of entries in approvals.
                            x-parser-schema-id: <anonymous-schema-25>
                          rejectionsCount:
                            type: integer
                            minimum: 0
                            description: Number of entries in rejections.
                            x-parser-schema-id: <anonymous-schema-26>
                          status:
                            type: string
                            enum:
                              - pending
                              - ready
                              - executed
                              - executedWithFailures
                              - failed
                              - expired
                              - cancelled
                              - rejected
                            description: >-
                              Proposal state. executedWithFailures means the
                              proposal executed but one or more inner actions
                              failed; inspect error and resulting state.
                            x-parser-schema-id: <anonymous-schema-27>
                          actions:
                            type: array
                            description: >-
                              Stored inner actions in their encoded BULK action
                              shape.
                            items:
                              type: object
                              additionalProperties: true
                              x-parser-schema-id: <anonymous-schema-29>
                            x-parser-schema-id: <anonymous-schema-28>
                          error:
                            type: string
                            description: >-
                              Failure details when present. Omitted when no
                              error is stored; not null.
                            x-parser-schema-id: <anonymous-schema-30>
                        x-parser-schema-id: Proposal
                      description: >-
                        The retained proposal rows, including their inner
                        actions. This is not an unlimited historical archive.
                      x-parser-schema-id: <anonymous-schema-15>
                  x-parser-schema-id: MultisigProposals
              x-parser-schema-id: <anonymous-schema-13>
          x-parser-schema-id: <anonymous-schema-10>
        title: Snapshot
        description: The full retained proposal set for one multisig
        example: |-
          {
            "type": "multisig",
            "topic": "multisig.AZbJ7E5ewp3uYq7BZSoJjtT5TY8ucqdhW199wLovLpoF",
            "data": {
              "multisig": {
                "multisig": "AZbJ7E5ewp3uYq7BZSoJjtT5TY8ucqdhW199wLovLpoF",
                "proposals": [
                  {
                    "proposalId": 7,
                    "proposer": "AKnL4NNf3DGWZJS6cPknBuEGnVsV4A4m5tgebLHaRSZ9",
                    "createdAt": 1704067200000000000,
                    "executeAfter": 1704067260000000000,
                    "expiresAt": 1704672000000000000,
                    "approvals": [
                      "AKnL4NNf3DGWZJS6cPknBuEGnVsV4A4m5tgebLHaRSZ9"
                    ],
                    "rejections": [],
                    "approvalsCount": 1,
                    "rejectionsCount": 0,
                    "status": "pending",
                    "actions": [
                      {
                        "cxa": {
                          "c": [
                            "BTC-USD"
                          ]
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: snapshot
      - &ref_8
        id: subscribed
        contentType: application/json
        payload:
          - name: Subscribed
            type: object
            properties:
              - name: type
                type: string
                enumValues:
                  - subscriptionResponse
                required: true
              - name: topics
                type: array
                required: true
                properties:
                  - name: item
                    type: string
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - topics
          properties:
            type:
              type: string
              enum:
                - subscriptionResponse
              x-parser-schema-id: <anonymous-schema-32>
            topics:
              type: array
              items:
                type: string
                x-parser-schema-id: <anonymous-schema-34>
              x-parser-schema-id: <anonymous-schema-33>
          x-parser-schema-id: <anonymous-schema-31>
        title: Subscribed
        example: |-
          {
            "type": "subscriptionResponse",
            "topics": [
              "multisig.AZbJ7E5ewp3uYq7BZSoJjtT5TY8ucqdhW199wLovLpoF"
            ]
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribed
      - &ref_9
        id: unsubscribed
        contentType: application/json
        payload:
          - name: Unsubscribed
            type: object
            properties:
              - name: type
                type: string
                enumValues:
                  - unsubscribeResponse
                required: true
              - name: topic
                type: string
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - topic
          properties:
            type:
              type: string
              enum:
                - unsubscribeResponse
              x-parser-schema-id: <anonymous-schema-39>
            topic:
              type: string
              x-parser-schema-id: <anonymous-schema-40>
          x-parser-schema-id: <anonymous-schema-38>
        title: Unsubscribed
        example: |-
          {
            "type": "unsubscribeResponse",
            "topic": "multisig.AZbJ7E5ewp3uYq7BZSoJjtT5TY8ucqdhW199wLovLpoF"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: unsubscribed
      - &ref_10
        id: error
        contentType: application/json
        payload:
          - name: Request error
            type: object
            properties:
              - name: type
                type: string
                enumValues:
                  - error
                required: true
              - name: error
                type: object
                required: true
                properties:
                  - name: message
                    type: string
                    required: true
                  - name: code
                    type: &ref_0
                      - integer
                      - 'null'
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - error
          properties:
            type:
              type: string
              enum:
                - error
              x-parser-schema-id: <anonymous-schema-42>
            error:
              type: object
              required:
                - message
                - code
              properties:
                message:
                  type: string
                  x-parser-schema-id: <anonymous-schema-44>
                code:
                  type: *ref_0
                  x-parser-schema-id: <anonymous-schema-45>
              x-parser-schema-id: <anonymous-schema-43>
          x-parser-schema-id: <anonymous-schema-41>
        title: Request error
        example: |-
          {
            "type": "error",
            "error": {
              "message": "Invalid request format: Invalid json: expected value at line 1 column 1",
              "code": 400
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: error
    bindings: []
    extensions: *ref_1
  - &ref_3
    id: unsubscribeMultisig
    title: Unsubscribe
    type: receive
    messages:
      - &ref_6
        id: unsubscribe
        contentType: application/json
        payload:
          - name: Unsubscribe
            type: object
            properties:
              - name: method
                type: string
                enumValues:
                  - unsubscribe
                required: true
              - name: topic
                type: string
                description: The exact topic returned in subscriptionResponse.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - method
            - topic
          properties:
            method:
              type: string
              enum:
                - unsubscribe
              default: unsubscribe
              x-parser-schema-id: <anonymous-schema-36>
            topic:
              type: string
              description: The exact topic returned in subscriptionResponse.
              x-parser-schema-id: <anonymous-schema-37>
          x-parser-schema-id: <anonymous-schema-35>
        title: Unsubscribe
        example: |-
          {
            "method": "unsubscribe",
            "topic": "multisig.AZbJ7E5ewp3uYq7BZSoJjtT5TY8ucqdhW199wLovLpoF"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: unsubscribe
    bindings: []
    extensions: *ref_1
sendOperations:
  - *ref_2
  - *ref_3
receiveOperations:
  - *ref_4
sendMessages:
  - *ref_5
  - *ref_6
receiveMessages:
  - *ref_7
  - *ref_8
  - *ref_9
  - *ref_10
extensions:
  - id: x-parser-unique-object-id
    value: multisig
securitySchemes: []

````

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