openapi: 3.0.3
info:
  version: 8.2.1
  title: Bee API
  description: >-
    API endpoints for interacting with the Swarm network, supporting file
    operations, messaging, and node management
externalDocs:
  description: Browse the documentation at the Swarm Docs
  url: https://docs.ethswarm.org
servers:
  - url: http://{apiRoot}:{port}/v1
    variables:
      apiRoot:
        default: localhost
        description: Base address of the local bee node main API
      port:
        default: '1633'
        description: Service port provided in bee node config
  - url: http://{apiRoot}:{port}
    variables:
      apiRoot:
        default: localhost
        description: Base address of the local bee node main API
      port:
        default: '1633'
        description: Service port provided in bee node config
paths:
  /grantee:
    post:
      summary: Create a grantee list
      tags:
        - ACT
      parameters:
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmPostageBatchId'
          name: swarm-postage-batch-id
          required: true
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmTagParameter'
          name: swarm-tag
          required: false
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmPinParameter'
          name: swarm-pin
          required: false
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmDeferredUpload'
          name: swarm-deferred-upload
          required: false
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmActHistoryAddress'
          name: swarm-act-history-address
          required: false
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmRedundancyLevelParameter'
          name: swarm-redundancy-level
          required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActGranteesCreateRequest'
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActGranteesOperationResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
  /grantee/{address}:
    get:
      summary: Get the grantee list
      tags:
        - ACT
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmEncryptedReference'
          required: true
          description: Grantee list reference
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmRedundancyLevelParameter'
          name: swarm-redundancy-level
          required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PublicKey'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    patch:
      summary: Update the grantee list
      description: Add or remove grantees from an existing grantee list
      tags:
        - ACT
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmEncryptedReference'
          required: true
          description: Grantee list reference
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmActHistoryAddress'
          name: swarm-act-history-address
          required: true
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmPostageBatchId'
          name: swarm-postage-batch-id
          required: true
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmTagParameter'
          name: swarm-tag
          required: false
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmPinParameter'
          name: swarm-pin
          required: false
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmDeferredUpload'
          name: swarm-deferred-upload
          required: false
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmRedundancyLevelParameter'
          name: swarm-redundancy-level
          required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActGranteesPatchRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActGranteesOperationResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
  /bytes:
    post:
      summary: Upload data
      tags:
        - Bytes
      parameters:
        - $ref: '#/components/parameters/SwarmPostageBatchId'
        - $ref: '#/components/parameters/SwarmTagParameter'
        - $ref: '#/components/parameters/SwarmPinParameter'
        - $ref: '#/components/parameters/SwarmDeferredUpload'
        - $ref: '#/components/parameters/SwarmEncryptParameter'
        - $ref: '#/components/parameters/SwarmRedundancyLevelParameter'
        - $ref: '#/components/parameters/SwarmAct'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      requestBody:
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '201':
          description: OK
          headers:
            swarm-tag:
              $ref: '#/components/headers/SwarmTag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceResponse'
        '400':
          $ref: '#/components/responses/400'
        '402':
          $ref: '#/components/responses/402'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /bytes/{address}:
    get:
      summary: Retrieve data by reference
      tags:
        - Bytes
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmReference'
          required: true
          description: Swarm address reference to content
        - $ref: '#/components/parameters/SwarmCache'
        - $ref: '#/components/parameters/SwarmRedundancyStrategyParameter'
        - $ref: '#/components/parameters/SwarmRedundancyFallbackModeParameter'
        - $ref: '#/components/parameters/SwarmRedundancyLevelParameter'
        - $ref: '#/components/parameters/SwarmChunkRetrievalTimeoutParameter'
        - $ref: '#/components/parameters/SwarmLookaheadBufferSizeParameter'
        - $ref: '#/components/parameters/SwarmActTimestamp'
        - $ref: '#/components/parameters/SwarmActPublisher'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      responses:
        '200':
          description: Retrieved content specified by reference
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response
    head:
      summary: >-
        Retrieve headers containing the content type and length for the
        reference
      description: >
        Identical to GET on the same reference except that no content is sent,
        so Range and conditional request headers are honored the same way.
      tags:
        - Bytes
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of chunk
        - $ref: '#/components/parameters/SwarmCache'
        - $ref: '#/components/parameters/SwarmRedundancyStrategyParameter'
        - $ref: '#/components/parameters/SwarmRedundancyFallbackModeParameter'
        - $ref: '#/components/parameters/SwarmRedundancyLevelParameter'
        - $ref: '#/components/parameters/SwarmChunkRetrievalTimeoutParameter'
        - $ref: '#/components/parameters/SwarmActTimestamp'
        - $ref: '#/components/parameters/SwarmActPublisher'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      responses:
        '200':
          description: Headers for the content at the reference.
          headers:
            Content-Type:
              description: The MIME type of the resource (e.g., application/octet-stream).
              schema:
                type: string
                example: application/octet-stream
            Content-Length:
              description: The size of the retrievable content in bytes.
              schema:
                type: integer
                example: 1024
            Accept-Ranges:
              description: Indicates that ranged requests are supported for the reference.
              schema:
                type: string
                example: bytes
            ETag:
              description: The reference, as an entity tag.
              schema:
                type: string
            Last-Modified:
              description: The time the response was generated.
              schema:
                type: string
            Access-Control-Expose-Headers:
              description: Headers exposed for CORS.
              schema:
                type: string
                example: Content-Disposition
        '206':
          description: Headers for the range requested via the Range header.
          headers:
            Content-Range:
              description: The range covered, and the total size of the content.
              schema:
                type: string
                example: bytes 0-1023/4096
            Content-Length:
              description: The size of the requested range in bytes.
              schema:
                type: integer
                example: 1024
        '304':
          description: The entity tag in If-None-Match matches the reference.
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '412':
          description: A conditional request header was not satisfied.
        '416':
          description: The requested range cannot be satisfied.
          headers:
            Content-Range:
              description: The total size of the content.
              schema:
                type: string
                example: bytes */4096
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chunks:
    post:
      summary: Upload a chunk
      tags:
        - Chunk
      parameters:
        - $ref: '#/components/parameters/SwarmTagParameter'
        - in: header
          name: swarm-postage-batch-id
          schema:
            $ref: '#/components/schemas/SwarmPostageBatchId'
          required: false
        - $ref: '#/components/parameters/SwarmPostageStamp'
      requestBody:
        description: Chunk binary data containing at least 8 bytes.
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '201':
          description: OK
          headers:
            swarm-tag:
              description: Tag UID from the request `swarm-tag` header if provided.
              schema:
                $ref: '#/components/schemas/Uid'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceResponse'
        '400':
          $ref: '#/components/responses/400'
        '402':
          $ref: '#/components/responses/402'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chunks/stream:
    get:
      summary: Stream chunks for upload
      description: >-
        Establishes a WebSocket connection for streaming chunks. Each uploaded
        chunk receives a binary acknowledgment (`0`). Chunks are sent as binary
        messages. When a tag is specified, chunks are stored locally and
        uploaded to the network after the stream closes. Without a tag, chunks
        are directly uploaded to the network as they arrive.
      tags:
        - Chunk
      parameters:
        - $ref: '#/components/parameters/SwarmTagParameter'
        - in: query
          name: swarm-tag
          schema:
            $ref: '#/components/schemas/Uid'
          required: false
          description: >-
            Associate upload with an existing Tag UID (use when WebSocket client
            cannot set custom headers)
        - in: header
          name: swarm-postage-batch-id
          description: >-
            ID of Postage Batch that is used to upload data with. Optional when
            chunks include pre-signed postage stamps.
          required: false
          schema:
            $ref: '#/components/schemas/SwarmAddress'
      responses:
        '200':
          description: Connection established
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response
  /bzz:
    post:
      summary: Upload a file or collection of files
      description: >-
        Upload single files or collections of files. For a single file,
        `Content-Type` is optional: when present it is stored as metadata as-is;
        when absent the server infers a type from the start of the body. To
        upload a collection, send a multipart request with files in the form
        data with appropriate headers. Tar files can be uploaded with the
        `swarm-collection` header to extract and upload the directory structure.
        Without the `swarm-collection` header, requests are treated as single
        file uploads. Multipart requests are always treated as collections; use
        the `swarm-index-document` header to specify a single file to serve.
      tags:
        - BZZ
      parameters:
        - in: query
          name: name
          schema:
            $ref: '#/components/schemas/FileName'
          required: false
          description: Filename when uploading single file
        - $ref: '#/components/parameters/SwarmTagParameter'
        - $ref: '#/components/parameters/SwarmPinParameter'
        - $ref: '#/components/parameters/SwarmEncryptParameter'
        - $ref: '#/components/parameters/ContentTypePreserved'
        - $ref: '#/components/parameters/SwarmCollection'
        - $ref: '#/components/parameters/SwarmIndexDocumentParameter'
        - $ref: '#/components/parameters/SwarmErrorDocumentParameter'
        - $ref: '#/components/parameters/SwarmPostageBatchId'
        - $ref: '#/components/parameters/SwarmDeferredUpload'
        - $ref: '#/components/parameters/SwarmRedundancyLevelParameter'
        - $ref: '#/components/parameters/SwarmAct'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      requestBody:
        content:
          multipart/form-data:
            schema:
              properties:
                file:
                  type: array
                  items:
                    type: string
                    format: binary
          application/octet-stream:
            schema:
              type: string
              format: binary
          application/x-tar:
            schema:
              type: string
              format: binary
      responses:
        '201':
          description: OK
          headers:
            swarm-tag:
              $ref: '#/components/headers/SwarmTag'
            etag:
              $ref: '#/components/headers/ETag'
            swarm-act-history-address:
              $ref: '#/components/headers/SwarmActHistoryAddress'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceResponse'
        '400':
          $ref: '#/components/responses/400'
        '402':
          $ref: '#/components/responses/402'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /bzz/{address}:
    get:
      summary: Retrieve a file or index document from a collection
      tags:
        - BZZ
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmReference'
          required: true
          description: Swarm address of content
        - $ref: '#/components/parameters/SwarmCache'
        - $ref: '#/components/parameters/SwarmRedundancyStrategyParameter'
        - $ref: '#/components/parameters/SwarmRedundancyFallbackModeParameter'
        - $ref: '#/components/parameters/SwarmRedundancyLevelParameter'
        - $ref: '#/components/parameters/SwarmChunkRetrievalTimeoutParameter'
        - $ref: '#/components/parameters/SwarmLookaheadBufferSizeParameter'
        - $ref: '#/components/parameters/SwarmActTimestamp'
        - $ref: '#/components/parameters/SwarmActPublisher'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
          headers:
            swarm-feed-resolved-version:
              $ref: '#/components/headers/SwarmFeedResolvedVersion'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    head:
      summary: Retrieve headers with content type and length for the reference
      description: >
        Identical to GET on the same reference except that no content is sent,
        so Range and conditional request headers are honored the same way.
      tags:
        - BZZ
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of chunk
        - $ref: '#/components/parameters/SwarmCache'
        - $ref: '#/components/parameters/SwarmRedundancyStrategyParameter'
        - $ref: '#/components/parameters/SwarmRedundancyFallbackModeParameter'
        - $ref: '#/components/parameters/SwarmRedundancyLevelParameter'
        - $ref: '#/components/parameters/SwarmChunkRetrievalTimeoutParameter'
        - $ref: '#/components/parameters/SwarmActTimestamp'
        - $ref: '#/components/parameters/SwarmActPublisher'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      responses:
        '200':
          description: Headers for the content at the reference.
          headers:
            Content-Type:
              description: The MIME type of the resource.
              schema:
                type: string
                example: application/octet-stream
            Content-Length:
              description: The size of the retrievable content in bytes.
              schema:
                type: integer
                example: 1024
            Accept-Ranges:
              description: Indicates that ranged requests are supported for the reference.
              schema:
                type: string
                example: bytes
            ETag:
              description: The reference, as an entity tag.
              schema:
                type: string
            Last-Modified:
              description: The time the response was generated.
              schema:
                type: string
            Access-Control-Expose-Headers:
              description: Headers exposed for CORS.
              schema:
                type: string
                example: Content-Disposition
        '206':
          description: Headers for the range requested via the Range header.
          headers:
            Content-Range:
              description: The range covered, and the total size of the content.
              schema:
                type: string
                example: bytes 0-1023/4096
            Content-Length:
              description: The size of the requested range in bytes.
              schema:
                type: integer
                example: 1024
        '304':
          description: The entity tag in If-None-Match matches the reference.
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '412':
          description: A conditional request header was not satisfied.
        '416':
          description: The requested range cannot be satisfied.
          headers:
            Content-Range:
              description: The total size of the content.
              schema:
                type: string
                example: bytes */4096
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /bzz/{address}/{path}:
    get:
      summary: Retrieve a file from a collection by path
      tags:
        - BZZ
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmReference'
          required: true
          description: Swarm address of content
        - in: path
          name: path
          schema:
            type: string
          required: true
          description: Path to the file in the collection.
        - $ref: '#/components/parameters/SwarmRedundancyStrategyParameter'
        - $ref: '#/components/parameters/SwarmRedundancyFallbackModeParameter'
        - $ref: '#/components/parameters/SwarmChunkRetrievalTimeoutParameter'
        - $ref: '#/components/parameters/SwarmRedundancyLevelParameter'
        - $ref: '#/components/parameters/SwarmCache'
        - $ref: '#/components/parameters/SwarmLookaheadBufferSizeParameter'
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
          headers:
            swarm-feed-resolved-version:
              $ref: '#/components/headers/SwarmFeedResolvedVersion'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /tags:
    get:
      summary: Get list of tags
      tags:
        - Tag
      parameters:
        - in: query
          name: offset
          schema:
            type: integer
            minimum: 0
            default: 0
          required: false
          description: >-
            The number of items to skip before starting to collect the result
            set.
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
          required: false
          description: The numbers of items to return.
      responses:
        '200':
          description: List of tags
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagsList'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    post:
      summary: Create Tag
      tags:
        - Tag
      description: >-
        Tags can be thought of as upload sessions which can be tracked using the
        tags endpoint. It will keep track of the chunks that are uploaded as
        part of the tag and will push them out to the network once a done split
        is called on the Tag. This happens internally if you use the
        `Swarm-Deferred-Upload` header.
      responses:
        '201':
          description: New Tag Info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewTagResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /tags/{id}:
    get:
      summary: Get Tag information using Uid
      tags:
        - Tag
      parameters:
        - in: path
          name: id
          schema:
            $ref: '#/components/schemas/Uid'
          required: true
          description: Uid
      responses:
        '200':
          description: Tag info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewTagResponse'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    delete:
      summary: Delete Tag information using Uid
      tags:
        - Tag
      parameters:
        - in: path
          name: id
          schema:
            $ref: '#/components/schemas/Uid'
          required: true
          description: Uid
      responses:
        '204':
          $ref: '#/components/responses/204'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    patch:
      summary: >-
        Update Total Count and swarm hash for a tag of an input stream of
        unknown size using Uid
      tags:
        - Tag
      parameters:
        - in: path
          name: id
          schema:
            $ref: '#/components/schemas/Uid'
          required: true
          description: Uid
      requestBody:
        description: Can contain swarm hash to use for the tag
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Address'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /pins/{reference}:
    parameters:
      - in: path
        name: reference
        schema:
          $ref: '#/components/schemas/SwarmOnlyReference'
        required: true
        description: Swarm reference of the root hash
    post:
      summary: Pin a root hash by reference
      tags:
        - Pinning
      parameters:
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmRedundancyLevelParameter'
          name: swarm-redundancy-level
          required: false
      responses:
        '200':
          description: Pin already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '201':
          description: New pin with root reference was created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    delete:
      summary: Unpin a root hash by reference
      tags:
        - Pinning
      responses:
        '200':
          description: Root hash has been unpinned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    get:
      summary: Get the pinning status of a root hash
      tags:
        - Pinning
      responses:
        '200':
          description: The pinned root hash reference
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SwarmOnlyReference'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /pins:
    get:
      summary: Get the list of pinned root hash references
      tags:
        - Pinning
      responses:
        '200':
          description: List of pinned root hash references
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SwarmOnlyReferencesList'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /pins/check:
    get:
      summary: Validate pinned chunks integrity
      description: >
        Returns a stream of newline-delimited JSON objects (NDJSON), one per
        pinned reference checked.

        The response uses chunked transfer encoding; clients should parse each
        line as an independent

        `PinIntegrityResponse` object rather than buffering the body into a
        single JSON value.
      tags:
        - Pinning
      parameters:
        - in: query
          name: ref
          schema:
            $ref: '#/components/schemas/SwarmOnlyReference'
          required: false
          description: >-
            Optional reference to check; if not provided, all pinned references
            are checked
      responses:
        '200':
          description: NDJSON stream of integrity results, one object per line
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PinCheckResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /pss/send/{topic}/{targets}:
    post:
      summary: Send a message using the Postal Service for Swarm
      tags:
        - Postal Service for Swarm
      parameters:
        - in: path
          name: topic
          schema:
            $ref: '#/components/schemas/PssTopic'
          required: true
          description: Topic name
        - in: path
          name: targets
          schema:
            $ref: '#/components/schemas/PssTargets'
          required: true
          description: >-
            Target message address prefix. If multiple targets are specified,
            only one would be matched.
        - in: query
          name: recipient
          schema:
            $ref: '#/components/schemas/PssRecipient'
          required: false
          description: Recipient publickey
        - $ref: '#/components/parameters/SwarmPostageBatchId'
      responses:
        '201':
          description: Subscribed to topic
        '400':
          $ref: '#/components/responses/400'
        '402':
          $ref: '#/components/responses/402'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /pss/subscribe/{topic}:
    get:
      summary: Subscribe to messages on a topic
      tags:
        - Postal Service for Swarm
      parameters:
        - in: path
          name: topic
          schema:
            $ref: '#/components/schemas/PssTopic'
          required: true
          description: Topic name
      responses:
        '200':
          description: >-
            Establishes a WebSocket subscription for incoming messages on the
            topic
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /gsoc/subscribe/{address}:
    get:
      summary: Subscribe to GSOC payloads
      tags:
        - GSOC
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Single Owner Chunk address (which may have multiple payloads)
        - $ref: '#/components/parameters/SwarmSocFieldsParameter'
        - $ref: '#/components/parameters/SwarmCacheWrappedChunkParameter'
        - $ref: '#/components/parameters/SwarmSocFieldsQueryParameter'
        - $ref: '#/components/parameters/SwarmCacheWrappedChunkQueryParameter'
      responses:
        '200':
          description: >
            Establishes a WebSocket subscription for incoming messages on the
            Single Owner Chunk address. Each message is the binary serialization
            of the Single Owner Chunk fields requested through the
            swarm-soc-fields header or query parameter (defaults to the wrapped
            chunk payload). Pending messages are buffered per subscription up to
            a fixed limit; a client that does not keep up with the incoming rate
            misses the oldest of them, as they are discarded in favor of the
            newest ones.
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /soc/{owner}/{id}:
    post:
      summary: Upload a Single Owner Chunk
      tags:
        - Single owner chunk
      parameters:
        - in: path
          name: owner
          schema:
            $ref: '#/components/schemas/EthereumAddress'
          required: true
          description: Ethereum address of the chunk owner
        - in: path
          name: id
          schema:
            $ref: '#/components/schemas/HexString'
          required: true
          description: Unique identifier for the chunk
        - in: query
          name: sig
          schema:
            $ref: '#/components/schemas/HexString'
          required: true
          description: Signature
        - in: header
          name: swarm-postage-batch-id
          schema:
            $ref: '#/components/schemas/SwarmPostageBatchId'
          required: false
          description: >-
            ID of the postage batch to use. Either this or `swarm-postage-stamp`
            must be supplied.
        - $ref: '#/components/parameters/SwarmPostageStamp'
        - $ref: '#/components/parameters/SwarmTagParameter'
        - $ref: '#/components/parameters/SwarmPinParameter'
        - $ref: '#/components/parameters/SwarmDeferredUpload'
      requestBody:
        required: true
        description: >-
          The SOC binary data, composed of the span (8 bytes) and up to 4KB of
          payload.
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceResponse'
          headers:
            swarm-tag:
              description: >-
                Tag UID, returned when an upload session is in use (either
                because `swarm-tag` was supplied, `swarm-deferred-upload`
                requested deferred mode, or `swarm-pin` was set).
              schema:
                $ref: '#/components/schemas/Uid'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    get:
      summary: Retrieve Single Owner Chunk data
      tags:
        - Single owner chunk
      parameters:
        - in: path
          name: owner
          schema:
            $ref: '#/components/schemas/EthereumAddress'
          required: true
          description: Ethereum address of the Owner of the SOC
        - in: path
          name: id
          schema:
            $ref: '#/components/schemas/HexString'
          required: true
          description: Unique identifier for the chunk data
        - $ref: '#/components/parameters/SwarmOnlyRootChunkParameter'
        - $ref: '#/components/parameters/SwarmCache'
        - $ref: '#/components/parameters/SwarmRedundancyStrategyParameter'
        - $ref: '#/components/parameters/SwarmRedundancyFallbackModeParameter'
        - $ref: '#/components/parameters/SwarmChunkRetrievalTimeoutParameter'
      responses:
        '200':
          description: Related Single Owner Chunk data
          headers:
            swarm-soc-signature:
              $ref: '#/components/headers/SwarmSocSignature'
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /feeds/{owner}/{topic}:
    post:
      summary: Create a feed root manifest
      tags:
        - Feed
      parameters:
        - in: path
          name: owner
          schema:
            $ref: '#/components/schemas/EthereumAddress'
          required: true
          description: Ethereum address of the feed owner
        - in: path
          name: topic
          schema:
            $ref: '#/components/schemas/HexString'
          required: true
          description: Topic identifier for the feed
        - in: query
          name: type
          schema:
            $ref: '#/components/schemas/FeedType'
          required: false
          description: 'Feed indexing scheme (default: sequence)'
        - $ref: '#/components/parameters/SwarmPinParameter'
        - $ref: '#/components/parameters/SwarmPostageBatchId'
        - $ref: '#/components/parameters/SwarmAct'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmRedundancyLevelParameter'
          name: swarm-redundancy-level
          required: false
          description: >-
            Redundancy level for the feed manifest upload pipeline and ACT
            encryption
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceResponse'
          headers:
            swarm-act-history-address:
              $ref: '#/components/headers/SwarmActHistoryAddress'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    get:
      summary: Retrieve the latest feed update
      tags:
        - Feed
      parameters:
        - in: path
          name: owner
          schema:
            $ref: '#/components/schemas/EthereumAddress'
          required: true
          description: Ethereum address of the feed owner
        - in: path
          name: topic
          schema:
            $ref: '#/components/schemas/HexString'
          required: true
          description: Topic identifier for the feed
        - in: query
          name: at
          schema:
            type: integer
          required: false
          description: 'Timestamp of the update (default: now)'
        - in: query
          name: after
          schema:
            type: integer
          required: false
          description: 'Start index (default: 0)'
        - in: query
          name: type
          schema:
            $ref: '#/components/schemas/FeedType'
          required: false
          description: 'Feed indexing scheme (default: sequence)'
        - $ref: '#/components/parameters/SwarmOnlyRootChunkParameter'
        - $ref: '#/components/parameters/SwarmCache'
        - $ref: '#/components/parameters/SwarmRedundancyStrategyParameter'
        - $ref: '#/components/parameters/SwarmRedundancyFallbackModeParameter'
        - $ref: '#/components/parameters/SwarmChunkRetrievalTimeoutParameter'
      responses:
        '200':
          description: Latest feed update
          headers:
            swarm-soc-signature:
              $ref: '#/components/headers/SwarmSocSignature'
            swarm-feed-index:
              $ref: '#/components/headers/SwarmFeedIndex'
            swarm-feed-index-next:
              $ref: '#/components/headers/SwarmFeedIndexNext'
            swarm-feed-resolved-version:
              $ref: '#/components/headers/SwarmFeedResolvedVersion'
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stewardship/{address}:
    get:
      summary: Check content availability
      tags:
        - Stewardship
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmReference'
          required: true
          description: 'Root hash of content (can be of any type: collection, file, chunk)'
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmRedundancyLevelParameter'
          name: swarm-redundancy-level
          required: false
      responses:
        '200':
          description: Returns if the content is retrievable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IsRetrievableResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    put:
      summary: Re-upload content by reference
      tags:
        - Stewardship
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmReference'
          required: true
          description: >-
            Re-uploads content for specified root hash (can be of any type:
            collection, file, chunk, etc.)
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmPostageBatchId'
          name: swarm-postage-batch-id
          required: true
          description: >-
            Postage batch to use for re-upload. The chunks are re-stamped with
            this batch.
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmRedundancyLevelParameter'
          name: swarm-redundancy-level
          required: false
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /addresses:
    get:
      summary: Get overlay and underlay addresses of the node
      tags:
        - Connectivity
      responses:
        '200':
          description: Own node underlay and overlay addresses
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Addresses'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /health:
    get:
      summary: Get the overall health status of the node
      description: |
        Health Status will indicate node healthiness.

        If node is unhealthy please check node logs for errors.
      tags:
        - Status
      responses:
        '200':
          description: Health Status of node
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthStatus'
        default:
          description: Default response
  /readiness:
    get:
      summary: Check if the node is ready to accept traffic
      tags:
        - Status
      responses:
        '200':
          description: Indicates that node is ready
          $ref: '#/components/responses/200'
        '400':
          description: Indicates that node is not ready
          $ref: '#/components/responses/400'
        default:
          description: Default response
  /balances:
    get:
      summary: Get balances with all known peers
      tags:
        - Balance
      responses:
        '200':
          description: Own balances with all known peers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balances'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /balances/{peer}:
    get:
      summary: Get the balance with a specific peer
      tags:
        - Balance
      parameters:
        - in: path
          name: peer
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
      responses:
        '200':
          description: Balance with the specific peer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /blocklist:
    get:
      summary: Get a list of blocklisted peers
      tags:
        - Connectivity
      responses:
        '200':
          description: Returns overlay addresses of blocklisted peers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockListedPeers'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /consumed:
    get:
      summary: Get past due consumption balances with all known peers
      tags:
        - Balance
      responses:
        '200':
          description: Own past due consumption balances with all known peers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balances'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /consumed/{peer}:
    get:
      summary: Get past due consumption balance with a specific peer
      tags:
        - Balance
      parameters:
        - in: path
          name: peer
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
      responses:
        '200':
          description: Past-due consumption balance with the specific peer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chequebook/address:
    get:
      summary: Get the chequebook contract address
      tags:
        - Chequebook
      responses:
        '200':
          description: Ethereum address of chequebook contract
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChequebookAddress'
  /chequebook/balance:
    get:
      summary: Get the balance of the chequebook
      tags:
        - Chequebook
      responses:
        '200':
          description: Balance of the chequebook
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChequebookBalance'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chunks/{address}:
    get:
      summary: Retrieve a chunk
      tags:
        - Chunk
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmReference'
          required: true
          description: Swarm address of chunk
        - in: header
          schema:
            $ref: '#/components/schemas/SwarmCache'
          name: swarm-cache
          required: false
        - $ref: '#/components/parameters/SwarmActTimestamp'
        - $ref: '#/components/parameters/SwarmActPublisher'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      responses:
        '200':
          description: Retrieved chunk content
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    head:
      summary: Check if a chunk exists locally
      tags:
        - Chunk
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of chunk
        - $ref: '#/components/parameters/SwarmActTimestamp'
        - $ref: '#/components/parameters/SwarmActPublisher'
        - $ref: '#/components/parameters/SwarmActHistoryAddress'
      responses:
        '200':
          description: Chunk exists
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        default:
          description: Default response
  /envelope/{address}:
    post:
      summary: Create a postage stamp for a chunk
      tags:
        - Envelope
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of the chunk to stamp
        - in: header
          name: swarm-postage-batch-id
          schema:
            $ref: '#/components/schemas/SwarmPostageBatchId'
          required: true
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostEnvelopeResponse'
        '400':
          $ref: '#/components/responses/400'
        '402':
          $ref: '#/components/responses/402'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /connect/{multi-address}:
    post:
      summary: Connect to a peer address
      tags:
        - Connectivity
      parameters:
        - in: path
          allowReserved: true
          name: multi-address
          schema:
            $ref: '#/components/schemas/MultiAddress'
          required: true
          description: Underlay address of peer
      responses:
        '200':
          description: Returns overlay address of connected peer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Address'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /reservestate:
    get:
      summary: Get the reserve state
      tags:
        - Status
      responses:
        '200':
          description: Reserve State
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReserveState'
        default:
          description: Default response
  /chainstate:
    get:
      summary: Get the chain state
      tags:
        - Status
      responses:
        '200':
          description: Chain State
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChainState'
        default:
          description: Default response
  /debugstore:
    get:
      summary: Get a snapshot of local storage debug info
      tags:
        - Status
      responses:
        '200':
          description: Local storage debug info
          content:
            application/json:
              schema:
                type: object
                properties:
                  Upload:
                    type: object
                    properties:
                      TotalUploaded:
                        type: integer
                      TotalSynced:
                        type: integer
                      PendingUpload:
                        type: integer
                  Pinning:
                    type: object
                    properties:
                      TotalCollections:
                        type: integer
                      TotalChunks:
                        type: integer
                  Cache:
                    type: object
                    properties:
                      Size:
                        type: integer
                      Capacity:
                        type: integer
                  Reserve:
                    type: object
                    properties:
                      SizeWithinRadius:
                        type: integer
                      TotalSize:
                        type: integer
                      Capacity:
                        type: integer
                      LastBinIDs:
                        type: array
                        items:
                          type: integer
                      Epoch:
                        type: integer
                  ChunkStore:
                    type: object
                    properties:
                      TotalChunks:
                        type: integer
                      SharedSlots:
                        type: integer
                      ReferenceCount:
                        type: integer
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /node:
    get:
      summary: Get node information
      tags:
        - Status
      responses:
        '200':
          description: Information about the node
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Node'
        default:
          description: Default response
  /peers:
    get:
      summary: Get the list of connected peers
      tags:
        - Connectivity
      responses:
        '200':
          description: Returns overlay addresses of connected peers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Peers'
        default:
          description: Default response
  /peers/{address}:
    delete:
      summary: Disconnect from a peer
      tags:
        - Connectivity
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
      responses:
        '200':
          description: Peer has been disconnected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /pingpong/{address}:
    post:
      summary: Ping a peer to measure latency
      tags:
        - Connectivity
      parameters:
        - in: path
          name: address
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
      responses:
        '200':
          description: Returns round trip time for given peer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RttMs'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /settlements/{peer}:
    get:
      summary: Get settlement amounts sent and received with a peer
      tags:
        - Settlements
      parameters:
        - in: path
          name: peer
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
      responses:
        '200':
          description: Settlement amounts sent and received with the peer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Settlement'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /settlements:
    get:
      summary: Get settlements with all known peers and totals
      tags:
        - Settlements
      responses:
        '200':
          description: Settlements with all known peers and total amount sent or received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Settlements'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /timesettlements:
    get:
      summary: Get time-based settlements with all known peers and totals
      tags:
        - Settlements
      responses:
        '200':
          description: >-
            Time based settlements with all known peers and total amount sent or
            received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Settlements'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /topology:
    get:
      summary: Get the network topology
      tags:
        - Connectivity
      responses:
        '200':
          description: Swarm topology of the bee node
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BzzTopology'
  /welcome-message:
    get:
      summary: Get the P2P welcome message
      tags:
        - Connectivity
      responses:
        '200':
          description: Welcome message
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WelcomeMessage'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    post:
      summary: Set the P2P welcome message
      tags:
        - Connectivity
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WelcomeMessage'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthStatus'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chequebook/cashout/{peer}:
    get:
      summary: Get the last cashout status for a peer
      parameters:
        - in: path
          name: peer
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
      tags:
        - Chequebook
      responses:
        '200':
          description: Cashout status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SwapCashoutStatus'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    post:
      summary: Cash out the last cheque for a peer
      parameters:
        - in: path
          name: peer
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
        - $ref: '#/components/parameters/GasPriceParameter'
        - $ref: '#/components/parameters/GasLimitParameter'
      tags:
        - Chequebook
      responses:
        '201':
          description: Cheque has been cashed out
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '404':
          $ref: '#/components/responses/404'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chequebook/cheque/{peer}:
    get:
      summary: Get the last cheques for a peer
      parameters:
        - in: path
          name: peer
          schema:
            $ref: '#/components/schemas/SwarmAddress'
          required: true
          description: Swarm address of peer
      tags:
        - Chequebook
      responses:
        '200':
          description: The last cheques for the peer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChequePeerResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chequebook/cheque:
    get:
      summary: Get the last cheques for all peers
      tags:
        - Chequebook
      responses:
        '200':
          description: The last cheques for all peers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChequeAllPeersResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chequebook/deposit:
    post:
      summary: Deposit tokens into the chequebook
      parameters:
        - in: query
          name: amount
          schema:
            type: integer
          required: true
          description: Amount of tokens to deposit
        - $ref: '#/components/parameters/GasPriceParameter'
      tags:
        - Chequebook
      responses:
        '200':
          description: Transaction hash of the deposit transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /chequebook/withdraw:
    post:
      summary: Withdraw tokens from the chequebook
      parameters:
        - in: query
          name: amount
          schema:
            type: integer
          required: true
          description: Amount of tokens to withdraw
        - $ref: '#/components/parameters/GasPriceParameter'
      tags:
        - Chequebook
      responses:
        '200':
          description: Transaction hash of the withdraw transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /transactions:
    get:
      summary: Get list of pending transactions
      tags:
        - Transaction
      responses:
        '200':
          description: List of pending transactions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingTransactionsResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /transactions/{hash}:
    get:
      summary: Retrieve transaction information
      parameters:
        - in: path
          name: hash
          schema:
            $ref: '#/components/schemas/TransactionHash'
          required: true
          description: Hash of the transaction
      tags:
        - Transaction
      responses:
        '200':
          description: Transaction information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionInfo'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    post:
      summary: Rebroadcast a transaction
      parameters:
        - in: path
          name: hash
          schema:
            $ref: '#/components/schemas/TransactionHash'
          required: true
          description: Hash of the transaction
      tags:
        - Transaction
      responses:
        '200':
          description: Hash of the transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    delete:
      summary: Cancel existing transaction
      parameters:
        - in: path
          name: hash
          schema:
            $ref: '#/components/schemas/TransactionHash'
          required: true
          description: Hash of the transaction
        - $ref: '#/components/parameters/GasPriceParameter'
      tags:
        - Transaction
      responses:
        '200':
          description: Hash of the transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stamps:
    get:
      summary: Get postage stamps for this node
      tags:
        - Postage Stamps
      responses:
        '200':
          description: An array of postage stamps
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DebugPostageBatchesResponse'
        '404':
          $ref: '#/components/responses/404'
        default:
          description: Default response
  /stamps/{batch_id}:
    parameters:
      - in: path
        name: batch_id
        schema:
          $ref: '#/components/schemas/BatchID'
        required: true
        description: Swarm address of the stamp
    get:
      summary: Get an individual postage batch status
      tags:
        - Postage Stamps
      responses:
        '200':
          description: Returns an individual postage batch state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DebugPostageBatch'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        default:
          description: Default response
    patch:
      summary: Update the label of an existing postage batch
      tags:
        - Postage Stamps
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                  description: New label for the postage batch
              required:
                - label
      responses:
        '200':
          description: Label updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stamps/{batch_id}/buckets:
    parameters:
      - in: path
        name: batch_id
        schema:
          $ref: '#/components/schemas/BatchID'
        required: true
        description: Swarm address of the stamp
    get:
      summary: Get extended bucket data of a batch
      tags:
        - Postage Stamps
      responses:
        '200':
          description: Returns extended bucket data of the provided batch ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostageStampBuckets'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        default:
          description: Default response
  /stamps/{amount}/{depth}:
    post:
      summary: Buy a new postage batch.
      description: >
        Be aware, this endpoint creates an on-chain transaction and transfers
        BZZ from the node's Ethereum account, directly affecting the wallet
        balance!
      tags:
        - Postage Stamps
      parameters:
        - in: path
          name: amount
          schema:
            $ref: '#/components/schemas/BigInt'
          required: true
          description: Amount of BZZ added that the postage batch will have.
        - in: path
          name: depth
          schema:
            type: integer
          required: true
          description: >-
            Batch depth (logarithm) specifying the maximum number of chunks this
            stamp can cover. Must be greater than the default bucket depth (16)
        - in: query
          name: label
          schema:
            type: string
          required: false
          description: An optional label for this batch
        - in: header
          name: immutable
          schema:
            type: boolean
          required: false
        - $ref: '#/components/parameters/GasPriceParameter'
        - $ref: '#/components/parameters/GasLimitParameter'
      responses:
        '201':
          description: Returns the newly created postage batch ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchIDResponse'
        '400':
          $ref: '#/components/responses/400'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stamps/topup/{batch_id}/{amount}:
    patch:
      summary: Top up an existing postage batch.
      description: >
        Be aware, this endpoint creates an on-chain transaction and transfers
        BZZ from the node's Ethereum account, directly affecting the wallet
        balance!
      tags:
        - Postage Stamps
      parameters:
        - in: path
          name: batch_id
          schema:
            $ref: '#/components/schemas/BatchID'
          required: true
          description: Batch ID to top up
        - in: path
          name: amount
          schema:
            type: integer
          required: true
          description: Amount of BZZ per chunk to top up to an existing postage batch.
        - $ref: '#/components/parameters/GasPriceParameter'
        - $ref: '#/components/parameters/GasLimitParameter'
      responses:
        '202':
          description: Returns the postage batch ID that was topped up
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchIDResponse'
        '400':
          $ref: '#/components/responses/400'
        '402':
          $ref: '#/components/responses/402'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stamps/dilute/{batch_id}/{depth}:
    patch:
      summary: Dilute an existing postage batch.
      description: >
        Be aware, this endpoint creates an on-chain transaction and transfers
        BZZ from the node's Ethereum account, directly affecting the wallet
        balance!
      tags:
        - Postage Stamps
      parameters:
        - in: path
          name: batch_id
          schema:
            $ref: '#/components/schemas/BatchID'
          required: true
          description: Batch ID to dilute
        - in: path
          name: depth
          schema:
            type: integer
          required: true
          description: The new batch depth, which must be greater than the current depth
        - $ref: '#/components/parameters/GasPriceParameter'
        - $ref: '#/components/parameters/GasLimitParameter'
      responses:
        '202':
          description: Returns the postage batch ID that was diluted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchIDResponse'
        '400':
          $ref: '#/components/responses/400'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /batches:
    get:
      summary: Get all globally available postage batches
      tags:
        - Postage Stamps
      responses:
        '200':
          description: An array of all available and valid postage batches
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DebugPostageAllBatchesResponse'
        default:
          description: Default response
  /batches/{batch_id}:
    parameters:
      - in: path
        name: batch_id
        schema:
          $ref: '#/components/schemas/BatchID'
        required: true
        description: ID of the postage batch
    get:
      summary: Get a single globally available postage batch by ID
      tags:
        - Postage Stamps
      responses:
        '200':
          description: The postage batch state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostageBatchShort'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        default:
          description: Default response
  /rchash/{depth}/{anchor1}/{anchor2}:
    get:
      summary: Get reserve commitment hash with sample proofs
      tags:
        - RChash
      parameters:
        - in: path
          name: depth
          schema:
            type: integer
            minimum: 0
            default: 0
          required: true
          description: The storage depth.
        - in: path
          name: anchor1
          schema:
            $ref: '#/components/schemas/HexString'
          required: true
          description: The first anchor.
        - in: path
          name: anchor2
          schema:
            $ref: '#/components/schemas/HexString'
          required: true
          description: The second anchor.
      responses:
        '200':
          description: Reserve sample response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiRCHashResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /accounting:
    get:
      summary: Get accounting values for all known peers
      tags:
        - Balance
      responses:
        '200':
          description: Own accounting associated values with all known peers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeerAccountingData'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /redistributionstate:
    get:
      summary: Get the node's redistribution game status
      tags:
        - RedistributionState
      responses:
        '200':
          description: Redistribution status info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedistributionStatusResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    patch:
      summary: Enable or disable participation in new redistribution rounds
      description: >
        Controls whether the node will commit in a new redistribution round.
        Sampling still runs while disabled so that a later re-enable can commit
        in the following commit phase. Disabling does not abort an in-flight
        commit and does not skip reveal or claim for a round that already
        committed. Re-enabling during a commit phase that was already skipped
        does not retry that round. After a node restart participation is enabled
        again.
      tags:
        - RedistributionState
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedistributionEnableRequest'
      responses:
        '200':
          description: Participation flag updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedistributionEnableResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /wallet:
    get:
      summary: Get wallet balance for BZZ and xDAI
      tags:
        - Wallet
      responses:
        '200':
          description: Wallet balance info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /wallet/withdraw/{coin}:
    post:
      summary: Withdraw BZZ or xDAI to a whitelisted address
      tags:
        - Wallet
      parameters:
        - in: query
          name: amount
          required: true
          schema:
            $ref: '#/components/schemas/BigInt'
        - in: query
          name: address
          required: true
          schema:
            $ref: '#/components/schemas/EthereumAddress'
        - in: path
          name: coin
          required: true
          schema:
            $ref: '#/components/schemas/WithdrawCoin'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletTxResponse'
          description: OK
        '400':
          $ref: '#/components/responses/400'
          description: Amount greater than balance or coin is other than BZZ/xDAI
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stake/withdrawable:
    get:
      summary: Get the withdrawable staked amount.
      description: >-
        This endpoint fetches any amount that is possible to withdraw as
        surplus.
      tags:
        - Staking
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWithdrawableResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    delete:
      summary: Withdraw the extra withdrawable staked amount.
      description: >-
        This endpoint withdraws any amount that is possible to withdraw as
        surplus.
      tags:
        - Staking
      parameters:
        - $ref: '#/components/parameters/GasPriceParameter'
        - $ref: '#/components/parameters/GasLimitParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StakeTransactionResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stake/{amount}:
    post:
      summary: Deposit an amount for staking.
      description: >-
        Be aware, this endpoint creates an on-chain transaction and transfers
        BZZ from the node's Ethereum account, directly affecting the wallet
        balance.
      tags:
        - Staking
      parameters:
        - in: path
          name: amount
          schema:
            type: string
          required: true
          description: Amount of BZZ added that will be deposited for staking.
        - $ref: '#/components/parameters/GasPriceParameter'
        - $ref: '#/components/parameters/GasLimitParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StakeTransactionResponse'
        '400':
          description: Deposit amount is below the required minimum.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StakeDepositErrorResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /stake:
    get:
      summary: Get the staked amount.
      description: >-
        This endpoint fetches the total staked amount and the minimum additional
        deposit from the blockchain. The first deposit is at least 10 BZZ times
        2^height. Subsequent deposits are at least 1 PLUR, or more if the price
        oracle has increased since the last deposit.
      tags:
        - Staking
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStakeResponse'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
    delete:
      summary: Withdraw all previously staked amounts.
      description: >-
        Be aware, this endpoint can only be called when the contract is paused
        and undergoing migration to a new contract.
      tags:
        - Staking
      parameters:
        - $ref: '#/components/parameters/GasPriceParameter'
        - $ref: '#/components/parameters/GasLimitParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StakeTransactionResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
        default:
          description: Default response
  /loggers:
    get:
      summary: Get all available loggers.
      tags:
        - Logging
      responses:
        '200':
          description: >-
            Returns an array of all available loggers, also represented in short
            form in a tree.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoggerResponse'
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response
  /loggers/{exp}:
    get:
      summary: Get all available loggers that match the specified expression.
      parameters:
        - in: path
          name: exp
          schema:
            $ref: '#/components/schemas/LoggerExp'
          required: true
          description: Regular expression or a subsystem that matches the logger(s).
      tags:
        - Logging
      responses:
        '200':
          description: >-
            Returns an array of all available loggers that matches given
            expression, also represented in short form in a tree.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoggerResponse'
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response
  /loggers/{exp}/{verbosity}:
    put:
      summary: Set logger(s) verbosity level.
      parameters:
        - in: path
          name: exp
          schema:
            $ref: '#/components/schemas/LoggerExp'
          required: true
          description: Regular expression or a subsystem that matches the logger(s).
        - in: path
          name: verbosity
          schema:
            type: string
            enum:
              - none
              - error
              - warning
              - info
              - debug
              - all
          required: true
          description: Verbosity level to apply to the matching logger(s).
      tags:
        - Logging
      responses:
        '200':
          description: The verbosity was changed successfully.
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response
  /status:
    get:
      summary: Get the current status snapshot of this node.
      tags:
        - Node Status
      responses:
        '200':
          description: Returns the current node status snapshot.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusSnapshotResponse'
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response.
  /status/peers:
    get:
      summary: Get the current status snapshot of this node connected peers.
      tags:
        - Node Status
      responses:
        '200':
          description: Returns the status snapshot of this node connected peers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusPeersResponse'
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response.
  /status/neighborhoods:
    get:
      summary: Get the current neighborhoods status of this node.
      tags:
        - Node Status
      responses:
        '200':
          description: Returns the neighborhoods status of this node
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusNeighborhoodsResponse'
        '400':
          $ref: '#/components/responses/400'
        default:
          description: Default response.
components:
  schemas:
    SwarmPostageBatchId: &ref_0
      in: header
      name: swarm-postage-batch-id
      description: ID of Postage Batch that is used to upload data with
      required: true
      schema:
        $ref: '#/components/schemas/SwarmAddress'
    SwarmTagParameter: &ref_1
      in: header
      name: swarm-tag
      schema:
        $ref: '#/components/schemas/Uid'
      required: false
      description: Associate upload with an existing Tag UID
    SwarmPinParameter: &ref_2
      in: header
      name: swarm-pin
      schema:
        type: boolean
      required: false
      description: >
        Indicates whether the uploaded data should also be locally pinned on
        this node
    SwarmDeferredUpload: &ref_3
      in: header
      name: swarm-deferred-upload
      schema:
        type: boolean
        default: 'true'
      required: false
      description: >
        Indicates whether the uploaded data should be sent to the network
        immediately or deferred. Default: deferred (true)
    SwarmActHistoryAddress: &ref_5
      in: header
      name: swarm-act-history-address
      schema:
        $ref: '#/components/schemas/SwarmAddress'
      required: false
      description: ACT history reference address
    SwarmRedundancyLevelParameter: &ref_4
      in: header
      name: swarm-redundancy-level
      schema:
        type: integer
        enum:
          - 0
          - 1
          - 2
          - 3
          - 4
      required: false
      description: >
        Add redundancy to the data being uploaded so that downloaders can
        download it with better UX. 0 value is default and does not add any
        redundancy to the file.
    PublicKey:
      type: string
      pattern: ^[A-Fa-f0-9]{66}$
      example: 02ab7473879005929d10ce7d4f626412dad9fe56b0a6622038931d26bd79abf0a4
    ActGranteesCreateRequest:
      type: object
      properties:
        grantees:
          type: array
          items:
            $ref: '#/components/schemas/PublicKey'
    SwarmEncryptedReference:
      type: string
      pattern: ^[A-Fa-f0-9]{128}$
      example: >-
        36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f2d2810619d29b5dbefd5d74abce25d58b81b251baddb9c3871cf0d6967deaae2
    ActGranteesOperationResponse:
      type: object
      properties:
        ref:
          $ref: '#/components/schemas/SwarmEncryptedReference'
        historyref:
          $ref: '#/components/schemas/SwarmEncryptedReference'
    ProblemDetails:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        reasons:
          type: array
          nullable: true
          description: List of reasons for the error message.
          items:
            type: string
    ActGranteesPatchRequest:
      type: object
      properties:
        add:
          type: array
          items:
            $ref: '#/components/schemas/PublicKey'
          description: List of grantees to add
        revoke:
          type: array
          items:
            $ref: '#/components/schemas/PublicKey'
          description: List of grantees to revoke future access from
    SwarmAddress:
      type: string
      pattern: ^[A-Fa-f0-9]{64}$
      example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f
    Uid:
      type: integer
    DomainName:
      type: string
      pattern: ^[A-Za-z0-9]+\.[A-Za-z0-9]+$
      example: swarm.eth
    SwarmReference:
      oneOf:
        - $ref: '#/components/schemas/SwarmAddress'
        - $ref: '#/components/schemas/SwarmEncryptedReference'
        - $ref: '#/components/schemas/DomainName'
    ReferenceResponse:
      type: object
      properties:
        reference:
          $ref: '#/components/schemas/SwarmReference'
    Duration:
      description: Time duration in Go time.Duration format (e.g., 5.0018ms)
      type: string
      example: 5.0018ms
    HexString:
      type: string
      pattern: ^([A-Fa-f0-9]+)$
      example: cf880b8eeac5093fa27b0825906c600685
    FileName:
      type: string
    DateTime:
      type: string
      format: date-time
      example: '2020-06-11T11:26:42.6969797+02:00'
    NewTagResponse:
      type: object
      properties:
        uid:
          $ref: '#/components/schemas/Uid'
        address:
          $ref: '#/components/schemas/SwarmAddress'
          description: >-
            Root reference associated with the tag once the upload is finalized;
            zero value before that.
        startedAt:
          $ref: '#/components/schemas/DateTime'
        split:
          type: integer
          description: Number of chunks created by the splitter.
        seen:
          type: integer
          description: >-
            Number of chunks that are already uploaded with same reference and
            same postage batch. These don't need to be synced again.
        stored:
          type: integer
          description: >-
            Number of chunks that were stored locally as they lie in the
            uploader node's neighborhood. This is only applicable for full
            nodes.
        sent:
          type: integer
          description: >-
            Number of chunks sent on the network to peers as a part of the
            upload. Chunks could be sent multiple times because of failures or
            replication.
        synced:
          type: integer
          description: >-
            Number of chunks that were pushed with a valid receipt. The receipt
            will also show if they were stored at the correct depth.
    TagsList:
      type: object
      properties:
        tags:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/NewTagResponse'
    Address:
      type: object
      properties:
        address:
          $ref: '#/components/schemas/SwarmAddress'
    Response:
      type: object
      properties:
        message:
          type: string
        code:
          type: integer
    SwarmOnlyReference:
      oneOf:
        - $ref: '#/components/schemas/SwarmAddress'
        - $ref: '#/components/schemas/SwarmEncryptedReference'
    SwarmOnlyReferencesList:
      type: object
      properties:
        references:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/SwarmOnlyReference'
    PinCheckResponse:
      type: object
      properties:
        reference:
          $ref: '#/components/schemas/SwarmOnlyReference'
        total:
          type: integer
        missing:
          type: integer
        invalid:
          type: integer
    PssTopic:
      type: string
    PssTargets:
      pattern: ^[0-9a-fA-F]{1,6}(,[0-9a-fA-F]{1,6})*$
      description: >-
        List of hex string targets that are comma separated and can have maximum
        length of 6
      type: string
    PssRecipient:
      type: string
    EthereumAddress:
      type: string
      pattern: ^[A-Fa-f0-9]{40}$
      example: 36b7efd913ca4cf880b8eeac5093fa27b0825906
    FeedType:
      type: string
      pattern: ^(sequence|epoch)$
    IsRetrievableResponse:
      type: object
      properties:
        isRetrievable:
          type: boolean
    P2PUnderlay:
      type: string
      example: >-
        /ip4/127.0.0.1/tcp/1634/p2p/16Uiu2HAmTm17toLDaPYzRyjKn27iCB76yjKnJ5DjQXneFmifFvaX
    Addresses:
      type: object
      properties:
        overlay:
          $ref: '#/components/schemas/SwarmAddress'
        underlay:
          type: array
          items:
            $ref: '#/components/schemas/P2PUnderlay'
        ethereum:
          $ref: '#/components/schemas/EthereumAddress'
        chain_address:
          $ref: '#/components/schemas/EthereumAddress'
        publicKey:
          $ref: '#/components/schemas/PublicKey'
        pssPublicKey:
          $ref: '#/components/schemas/PublicKey'
    HealthStatus:
      type: object
      properties:
        status:
          type: string
          enum:
            - ok
            - nok
            - unknown
          description: >
            Indicates health state of node * `ok` - node is healthy * `nok` -
            node is not healthy * `unknown` - health status is unknown
        version:
          type: string
        apiVersion:
          type: string
          default: 0.0.0
          description: >-
            The default value is set in case the bee binary was not build
            correctly.
    BigInt:
      description: >-
        Numeric string representing an integer that may exceed
        `Number.MAX_SAFE_INTEGER` (2^53-1)
      type: string
      example: '1000000000000000000'
    Balance:
      type: object
      properties:
        peer:
          $ref: '#/components/schemas/SwarmAddress'
        balance:
          $ref: '#/components/schemas/BigInt'
        thresholdreceived:
          $ref: '#/components/schemas/BigInt'
        thresholdgiven:
          $ref: '#/components/schemas/BigInt'
    Balances:
      type: object
      properties:
        balances:
          type: array
          items:
            $ref: '#/components/schemas/Balance'
    BlockListedPeers:
      type: object
      properties:
        peers:
          type: array
          nullable: false
          items:
            type: object
            properties:
              address:
                $ref: '#/components/schemas/SwarmAddress'
              fullNode:
                type: boolean
              reason:
                type: string
              duration:
                type: integer
                description: Block duration in seconds
    ChequebookAddress:
      type: object
      properties:
        chequebookAddress:
          $ref: '#/components/schemas/EthereumAddress'
    ChequebookBalance:
      type: object
      properties:
        totalBalance:
          $ref: '#/components/schemas/BigInt'
        availableBalance:
          $ref: '#/components/schemas/BigInt'
    SwarmCache: &ref_6
      in: header
      name: swarm-cache
      schema:
        type: boolean
        default: 'true'
      required: false
      description: >-
        Indicates whether downloaded data should be cached on the node. Default:
        cached (true)
    Hex8Bytes:
      description: Hexadecimal string representation of 8 bytes
      type: string
      pattern: ^([0-9a-fA-F]{16})$
      example: 1a2b3c4d5e6f7a8b
    Signature:
      description: Hexadecimal string representation of cryptographic signature
      type: string
      pattern: ^([0-9a-fA-F]{130})$
      example: >-
        1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e
    PostEnvelopeResponse:
      type: object
      properties:
        issuer:
          $ref: '#/components/schemas/EthereumAddress'
        index:
          $ref: '#/components/schemas/Hex8Bytes'
        timestamp:
          $ref: '#/components/schemas/Hex8Bytes'
        signature:
          $ref: '#/components/schemas/Signature'
    MultiAddress:
      type: string
    ReserveState:
      type: object
      properties:
        radius:
          type: integer
        storageRadius:
          type: integer
        commitment:
          type: integer
        reserveCapacityDoubling:
          type: integer
    ChainState:
      type: object
      properties:
        chainTip:
          type: integer
        block:
          type: integer
        totalAmount:
          $ref: '#/components/schemas/BigInt'
        currentPrice:
          $ref: '#/components/schemas/BigInt'
        minimumValidityBlocks:
          type: integer
    Node:
      type: object
      properties:
        beeMode:
          type: string
          enum:
            - light
            - full
            - ultra-light
            - unknown
          description: >
            Gives back in what mode the Bee client has been started. The modes
            are mutually exclusive * `light` - light node; does not participate
            in forwarding or storing chunks * `full` - full node * `ultra-light`
            - ultra-light node; a light node with chain disabled * `unknown` -
            unknown mode
        chequebookEnabled:
          type: boolean
        swapEnabled:
          type: boolean
    Peers:
      type: object
      properties:
        peers:
          type: array
          nullable: false
          items:
            type: object
            properties:
              address:
                $ref: '#/components/schemas/SwarmAddress'
              fullNode:
                type: boolean
    RttMs:
      type: object
      properties:
        rtt:
          $ref: '#/components/schemas/Duration'
    Settlement:
      type: object
      properties:
        peer:
          $ref: '#/components/schemas/SwarmAddress'
        received:
          $ref: '#/components/schemas/BigInt'
        sent:
          $ref: '#/components/schemas/BigInt'
    Settlements:
      type: object
      properties:
        totalReceived:
          $ref: '#/components/schemas/BigInt'
        totalSent:
          $ref: '#/components/schemas/BigInt'
        settlements:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/Settlement'
    PeerMetricsView:
      type: object
      properties:
        lastSeenTimestamp:
          type: integer
          nullable: false
        sessionConnectionRetry:
          type: integer
          nullable: false
        connectionTotalDuration:
          type: number
          nullable: false
        sessionConnectionDuration:
          type: number
          nullable: false
        sessionConnectionDirection:
          type: string
          nullable: false
        latencyEWMA:
          type: integer
          nullable: false
        reachability:
          type: string
        healthy:
          type: boolean
    BzzTopology:
      type: object
      properties:
        baseAddr:
          $ref: '#/components/schemas/SwarmAddress'
        population:
          type: integer
        connected:
          type: integer
        timestamp:
          type: string
        nnLowWatermark:
          type: integer
        depth:
          type: integer
        reachability:
          type: string
          enum:
            - Unknown
            - Public
            - Private
        networkAvailability:
          type: string
          enum:
            - Unknown
            - Available
            - Unavailable
        bins:
          type: object
          additionalProperties:
            type: object
            properties:
              population:
                type: integer
              connected:
                type: integer
              disconnectedPeers:
                type: array
                items:
                  type: object
                  properties:
                    address:
                      $ref: '#/components/schemas/SwarmAddress'
                    metrics:
                      $ref: '#/components/schemas/PeerMetricsView'
              connectedPeers:
                type: array
                items:
                  type: object
                  properties:
                    address:
                      $ref: '#/components/schemas/SwarmAddress'
                    metrics:
                      $ref: '#/components/schemas/PeerMetricsView'
    WelcomeMessage:
      type: object
      properties:
        welcomeMessage:
          type: string
    Cheque:
      type: object
      properties:
        beneficiary:
          $ref: '#/components/schemas/EthereumAddress'
        chequebook:
          $ref: '#/components/schemas/EthereumAddress'
        payout:
          $ref: '#/components/schemas/BigInt'
    TransactionHash:
      type: string
      pattern: ^0x[A-Fa-f0-9]{64}$
      example: '0x780cb6a37d1946978087896e1e489c37e30fe3e329510fff8d97360f73529f5a'
    SwapCashoutResult:
      type: object
      properties:
        recipient:
          $ref: '#/components/schemas/EthereumAddress'
        lastPayout:
          $ref: '#/components/schemas/BigInt'
        bounced:
          type: boolean
    SwapCashoutStatus:
      type: object
      properties:
        peer:
          $ref: '#/components/schemas/SwarmAddress'
        lastCashedCheque:
          $ref: '#/components/schemas/Cheque'
        transactionHash:
          $ref: '#/components/schemas/TransactionHash'
        result:
          $ref: '#/components/schemas/SwapCashoutResult'
        uncashedAmount:
          $ref: '#/components/schemas/BigInt'
    GasPrice:
      description: >-
        Gas price refers to the amount you’re willing to pay for every unit of
        gas.
      type: integer
    GasLimit:
      description: >-
        Gas limit refers to the maximum amount of gas you’re willing to spend on
        a particular transaction.
      type: integer
      minimum: 0
      maximum: 18446744073709552000
    TransactionResponse:
      type: object
      properties:
        transactionHash:
          $ref: '#/components/schemas/TransactionHash'
    ChequePeerResponse:
      type: object
      properties:
        peer:
          $ref: '#/components/schemas/SwarmAddress'
        lastreceived:
          $ref: '#/components/schemas/Cheque'
        lastsent:
          $ref: '#/components/schemas/Cheque'
    ChequeAllPeersResponse:
      type: object
      properties:
        lastcheques:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/ChequePeerResponse'
    TransactionInfo:
      type: object
      properties:
        transactionHash:
          $ref: '#/components/schemas/TransactionHash'
        to:
          $ref: '#/components/schemas/EthereumAddress'
        nonce:
          type: integer
        gasPrice:
          $ref: '#/components/schemas/BigInt'
        gasLimit:
          type: integer
        gasTipCap:
          $ref: '#/components/schemas/BigInt'
        gasTipBoost:
          type: integer
        gasFeeCap:
          $ref: '#/components/schemas/BigInt'
        data:
          type: string
        created:
          $ref: '#/components/schemas/DateTime'
        description:
          type: string
        value:
          $ref: '#/components/schemas/BigInt'
    PendingTransactionsResponse:
      type: object
      properties:
        pendingTransactions:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/TransactionInfo'
    BatchID:
      type: string
      pattern: ^[A-Fa-f0-9]{64}$
      example: 36b7efd913ca4cf880b8eeac5093fa27b0825906c600685b6abdd6566e6cfe8f
    PostageBatch:
      type: object
      properties:
        batchID:
          $ref: '#/components/schemas/BatchID'
        utilization:
          type: integer
          description: >
            Raw batch fullness indicator: the highest write count among the
            `2^bucketDepth` collision buckets of the batch. This is **not** a
            percentage; one unit corresponds to one chunk written into the
            fullest bucket. Total batch capacity is `2^depth` chunks, while the
            fullest bucket caps at `2^(depth - bucketDepth)` chunks, so the
            fractional usage of the batch is `utilization / 2^(depth -
            bucketDepth)` (also exposed directly as `utilizationRatio`). When
            the value reaches `2^(depth - bucketDepth)` the batch is effectively
            full and any further write to the fullest bucket would overflow it.
        utilizationRatio:
          type: number
          format: double
          minimum: 0
          maximum: 1
          description: >
            Fractional batch fullness in the range `[0, 1]`, computed as
            `utilization / 2^(depth - bucketDepth)`. A value of `1` means the
            fullest bucket has reached its capacity and the batch can no longer
            accept writes that would land in that bucket.
        usable:
          description: >-
            Indicates whether the batch was discovered by the Bee node and has
            received sufficient on-chain confirmations
          type: boolean
        label:
          type: string
        depth:
          type: integer
        amount:
          $ref: '#/components/schemas/BigInt'
        bucketDepth:
          type: integer
        blockNumber:
          type: integer
        immutableFlag:
          type: boolean
        exists:
          type: boolean
        batchTTL:
          type: integer
    PostageBatchNoIssuer:
      type: object
      properties:
        batchID:
          $ref: '#/components/schemas/BatchID'
        exists:
          type: boolean
        batchTTL:
          type: integer
    DebugPostageBatch:
      anyOf:
        - $ref: '#/components/schemas/PostageBatch'
        - $ref: '#/components/schemas/PostageBatchNoIssuer'
    DebugPostageBatchesResponse:
      type: object
      properties:
        stamps:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/DebugPostageBatch'
    StampBucketData:
      type: object
      properties:
        bucketID:
          type: integer
        collisions:
          type: integer
    PostageStampBuckets:
      type: object
      properties:
        depth:
          type: integer
        bucketDepth:
          type: integer
        bucketUpperBound:
          type: integer
        buckets:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/StampBucketData'
    BatchIDResponse:
      type: object
      properties:
        batchID:
          $ref: '#/components/schemas/BatchID'
        txHash:
          $ref: '#/components/schemas/TransactionHash'
    PostageBatchShort:
      type: object
      properties:
        batchID:
          $ref: '#/components/schemas/BatchID'
        value:
          $ref: '#/components/schemas/BigInt'
        start:
          type: integer
        owner:
          $ref: '#/components/schemas/EthereumAddress'
        depth:
          type: integer
        bucketDepth:
          type: integer
        immutable:
          type: boolean
        batchTTL:
          type: integer
    DebugPostageAllBatchesResponse:
      type: object
      properties:
        batches:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/PostageBatchShort'
    Seconds:
      description: Time duration in seconds (Go time.Duration format)
      type: number
      example: 30.5
    ApiPostageProof:
      type: object
      properties:
        index:
          type: string
        postageId:
          type: string
        signature:
          type: string
        timeStamp:
          type: string
    ApiSOCProof:
      type: object
      properties:
        chunkAddr:
          type: string
        identifier:
          type: string
        signature:
          type: string
        signer:
          type: string
    ApiChunkInclusionProof:
      type: object
      properties:
        chunkSpan:
          minimum: 0
          type: integer
        postageProof:
          $ref: '#/components/schemas/ApiPostageProof'
        proofSegments:
          items:
            type: string
          nullable: true
          type: array
        proofSegments2:
          items:
            type: string
          nullable: true
          type: array
        proofSegments3:
          items:
            type: string
          nullable: true
          type: array
        proveSegment:
          type: string
        proveSegment2:
          type: string
        socProof:
          items:
            $ref: '#/components/schemas/ApiSOCProof'
          nullable: true
          type: array
    ApiChunkInclusionProofs:
      type: object
      properties:
        proof1:
          $ref: '#/components/schemas/ApiChunkInclusionProof'
        proof2:
          $ref: '#/components/schemas/ApiChunkInclusionProof'
        proofLast:
          $ref: '#/components/schemas/ApiChunkInclusionProof'
    ApiRCHashResponse:
      type: object
      properties:
        durationSeconds:
          $ref: '#/components/schemas/Seconds'
        hash:
          $ref: '#/components/schemas/SwarmAddress'
        proofs:
          $ref: '#/components/schemas/ApiChunkInclusionProofs'
    AccountingInfo:
      type: object
      properties:
        balance:
          $ref: '#/components/schemas/BigInt'
        consumedBalance:
          $ref: '#/components/schemas/BigInt'
        thresholdReceived:
          $ref: '#/components/schemas/BigInt'
        thresholdGiven:
          $ref: '#/components/schemas/BigInt'
        currentThresholdReceived:
          $ref: '#/components/schemas/BigInt'
        currentThresholdGiven:
          $ref: '#/components/schemas/BigInt'
        surplusBalance:
          $ref: '#/components/schemas/BigInt'
        reservedBalance:
          $ref: '#/components/schemas/BigInt'
        shadowReservedBalance:
          $ref: '#/components/schemas/BigInt'
        ghostBalance:
          $ref: '#/components/schemas/BigInt'
    PeerAccountingData:
      type: object
      properties:
        peerData:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AccountingInfo'
    RedistributionStatusResponse:
      type: object
      properties:
        minimumGasFunds:
          $ref: '#/components/schemas/BigInt'
        hasSufficientFunds:
          type: boolean
        isFrozen:
          type: boolean
        isFullySynced:
          type: boolean
        isHealthy:
          type: boolean
        enabled:
          type: boolean
          description: >-
            Whether the node will commit in new redistribution rounds. Sampling
            still runs while disabled. A disabled node still finishes a round
            that already has an on-chain commit. Re-enabling during a commit
            phase that was already skipped does not retry that round.
        hasCommittedThisRound:
          type: boolean
          description: >-
            Whether the node has already committed in the current round.
            Operators can shut down without freeze risk when this is false.
        hasRevealedThisRound:
          type: boolean
          description: >-
            Whether the node has revealed in the current round. After a commit,
            the node must reveal before it is safe to shut down.
        phase:
          type: string
        round:
          type: integer
        lastWonRound:
          type: integer
        lastPlayedRound:
          type: integer
        lastFrozenRound:
          type: integer
        lastSelectedRound:
          type: integer
        lastSampleDurationSeconds:
          type: number
        block:
          type: integer
        reward:
          $ref: '#/components/schemas/BigInt'
        fees:
          $ref: '#/components/schemas/BigInt'
    RedistributionEnableRequest:
      type: object
      required:
        - enabled
      properties:
        enabled:
          type: boolean
          description: >-
            Whether the node should commit in new redistribution rounds.
            Sampling still runs while disabled.
    RedistributionEnableResponse:
      type: object
      properties:
        enabled:
          type: boolean
    WalletResponse:
      type: object
      properties:
        bzzBalance:
          $ref: '#/components/schemas/BigInt'
        nativeTokenBalance:
          $ref: '#/components/schemas/BigInt'
        chainID:
          type: integer
        chequebookContractAddress:
          $ref: '#/components/schemas/EthereumAddress'
        walletAddress:
          $ref: '#/components/schemas/EthereumAddress'
    WithdrawCoin:
      type: string
      enum:
        - bzz
        - nativetoken
    WalletTxResponse:
      type: object
      properties:
        transactionHash:
          $ref: '#/components/schemas/TransactionHash'
    GetWithdrawableResponse:
      type: object
      properties:
        withdrawableAmount:
          $ref: '#/components/schemas/BigInt'
    StakeTransactionResponse:
      type: object
      properties:
        txHash:
          $ref: '#/components/schemas/TransactionHash'
    StakeDepositErrorResponse:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        minimumDeposit:
          $ref: '#/components/schemas/BigInt'
    GetStakeResponse:
      type: object
      properties:
        stakedAmount:
          $ref: '#/components/schemas/BigInt'
        minimumDeposit:
          description: >-
            Absent (null) when the stake is known but the price oracle cannot be
            read, so the commitment gap is unknown.
          nullable: true
          allOf:
            - $ref: '#/components/schemas/BigInt'
    LoggerTreeNode:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/LoggerTreeData'
    LoggerTreeData:
      type: object
      nullable: true
      properties:
        /:
          $ref: '#/components/schemas/LoggerTreeNode'
        +:
          type: array
          items:
            type: string
          description: >-
            The combination of the logger verbosity and its subsystem separated
            by |.
          example: warning|one/name[0][]>>824634860360
    Logger:
      type: object
      properties:
        logger:
          type: string
        verbosity:
          type: string
        subsystem:
          type: string
        id:
          type: string
    LoggerResponse:
      type: object
      properties:
        tree:
          $ref: '#/components/schemas/LoggerTreeNode'
        loggers:
          type: array
          items:
            $ref: '#/components/schemas/Logger'
    LoggerExp:
      type: string
      description: Base64-encoded regular expression or subsystem string
      pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
      example: b25lL25hbWU=
    StatusSnapshotResponse:
      type: object
      properties:
        overlay:
          $ref: '#/components/schemas/SwarmAddress'
        proximity:
          type: integer
        beeMode:
          type: string
          enum:
            - light
            - full
            - ultra-light
            - unknown
        reserveSize:
          type: integer
        reserveSizeWithinRadius:
          type: integer
        pullsyncRate:
          type: number
        storageRadius:
          type: integer
        connectedPeers:
          type: integer
        neighborhoodSize:
          type: integer
        requestFailed:
          nullable: true
          type: boolean
        batchCommitment:
          type: integer
        isReachable:
          type: boolean
        lastSyncedBlock:
          type: integer
        committedDepth:
          type: integer
        isWarmingUp:
          type: boolean
    StatusPeersResponse:
      type: object
      properties:
        snapshots:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/StatusSnapshotResponse'
    Neighborhood:
      type: string
      description: >-
        Swarm address of a neighborhood in string binary format, usually limited
        to as many bits as the current storage radius.
      example: '011010111'
    StatusNeighborhoodResponse:
      type: object
      properties:
        neighborhood:
          $ref: '#/components/schemas/Neighborhood'
        reserveSizeWithinRadius:
          type: integer
        proximity:
          type: integer
    StatusNeighborhoodsResponse:
      type: object
      properties:
        neighborhoods:
          type: array
          nullable: false
          items:
            $ref: '#/components/schemas/StatusNeighborhoodResponse'
  responses:
    '200':
      description: Success
    '204':
      description: The resource was deleted successfully.
    '400':
      description: Bad request
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    '401':
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    '402':
      description: Payment Required
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    '404':
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    '429':
      description: Too many requests
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    '500':
      description: Internal Server Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
  parameters:
    SwarmPostageBatchId: *ref_0
    SwarmTagParameter: *ref_1
    SwarmPinParameter: *ref_2
    SwarmDeferredUpload: *ref_3
    SwarmEncryptParameter:
      in: header
      name: swarm-encrypt
      schema:
        type: boolean
      required: false
      description: |
        Indicates whether the file should be encrypted
    SwarmRedundancyLevelParameter: *ref_4
    SwarmAct:
      in: header
      name: swarm-act
      schema:
        type: boolean
        default: 'false'
      required: false
      description: Determines if the uploaded data should be treated as ACT content
    SwarmActHistoryAddress: *ref_5
    SwarmCache: *ref_6
    SwarmRedundancyStrategyParameter:
      in: header
      name: swarm-redundancy-strategy
      schema:
        type: integer
        enum:
          - 0
          - 1
          - 2
          - 3
      required: false
      description: >
        Specify the retrieval strategy for redundant data. Values represent:
        NONE (0), DATA (1), PROX (2), RACE (3). NONE: no prefetching. DATA:
        prefetch only data chunks. PROX: prefetch chunks near this node. RACE:
        prefetch all chunks and use the first n to arrive. Multiple strategies
        can be cascaded if fallback mode is enabled. Default: NONE > DATA > PROX
        > RACE
    SwarmRedundancyFallbackModeParameter:
      in: header
      name: swarm-redundancy-fallback-mode
      schema:
        type: boolean
      required: false
      description: >
        Specify if the retrieve strategies (chunk prefetching on redundant data)
        are used in a fallback cascade. The default is true.
    SwarmChunkRetrievalTimeoutParameter:
      in: header
      name: swarm-chunk-retrieval-timeout
      schema:
        $ref: '#/components/schemas/Duration'
      required: false
      description: |
        Specify the timeout for chunk retrieval. The default is 30 seconds.
    SwarmLookaheadBufferSizeParameter:
      in: header
      name: swarm-lookahead-buffer-size
      schema:
        type: integer
      required: false
      description: >
        Override the lookahead buffer size used during retrieval, in bytes. When
        unset the node picks 8x or 16x the io.Copy default buffer (32 kB)
        depending on file size.
    SwarmActTimestamp:
      in: header
      name: swarm-act-timestamp
      schema:
        type: integer
        format: int64
      required: false
      description: ACT history Unix timestamp
    SwarmActPublisher:
      in: header
      name: swarm-act-publisher
      schema:
        $ref: '#/components/schemas/PublicKey'
      required: false
      description: ACT content publisher's public key
    SwarmPostageStamp:
      in: header
      name: swarm-postage-stamp
      description: |
        Postage stamp for the corresponding chunk in the request. \
        It is required if Swarm-Postage-Batch-Id header is missing \
        It consists of: \
        - batch ID - 0:32 bytes \
        - postage index (bucket and bucket index) - 32:40 bytes \
        - timestamp - 40:48 bytes \
        - signature - 48:113 bytes
      schema:
        $ref: '#/components/schemas/HexString'
    ContentTypePreserved:
      in: header
      name: Content-Type
      schema:
        type: string
      description: >-
        Single file: trimmed Content-Type is stored as-is or, if omitted or
        empty, inferred from the first bytes without validating against the
        body; tar (`swarm-collection`) and multipart collection uploads still
        need a full-body Content-Type (e.g. `application/x-tar` or
        `multipart/form-data` with boundary) so the request can be parsed.
    SwarmCollection:
      in: header
      name: swarm-collection
      schema:
        type: boolean
      required: false
      description: Upload file/files as a collection
    SwarmIndexDocumentParameter:
      in: header
      name: swarm-index-document
      schema:
        type: string
        example: index.html
      required: false
      description: Default file to serve when a directory path is accessed
    SwarmErrorDocumentParameter:
      in: header
      name: swarm-error-document
      schema:
        type: string
        example: error.html
      required: false
      description: >-
        Custom error document to return when a path is not found in the
        collection
    SwarmSocFieldsParameter:
      in: header
      name: swarm-soc-fields
      schema:
        type: string
        default: payload
      required: false
      description: >
        Comma separated list of Single Owner Chunk fields to be serialized and
        channeled on every incoming GSOC message, in the given order. Allowed
        values are: address, recoveredPubKey, identifier, signature,
        wrappedAddress, span, payload. When omitted it defaults to "payload". In
        order to have random access on the response bytes define payload as the
        last field in the list since it has variable length.
    SwarmCacheWrappedChunkParameter:
      in: header
      name: swarm-cache-wrapped-chunk
      schema:
        type: boolean
      required: false
      description: >
        Indicates whether the wrapped chunk of every incoming GSOC message
        should be cached locally so that it can be resolved through the bytes
        endpoint (useful when the single owner chunk wraps a root chunk larger
        than 4KB).
    SwarmSocFieldsQueryParameter:
      in: query
      name: swarm-soc-fields
      schema:
        type: string
      required: false
      description: >
        Same as the swarm-soc-fields header, for clients that cannot set request
        headers (e.g. browser WebSocket). Takes precedence over the header when
        both are given.
    SwarmCacheWrappedChunkQueryParameter:
      in: query
      name: swarm-cache-wrapped-chunk
      schema:
        type: boolean
      required: false
      description: >
        Same as the swarm-cache-wrapped-chunk header, for clients that cannot
        set request headers (e.g. browser WebSocket). Takes precedence over the
        header when both are given.
    SwarmOnlyRootChunkParameter:
      in: header
      name: swarm-only-root-chunk
      schema:
        type: boolean
      required: false
      description: Returns only the root chunk of the content
    GasPriceParameter:
      in: header
      name: gas-price
      schema:
        $ref: '#/components/schemas/GasPrice'
      required: false
      description: Gas price for transaction
    GasLimitParameter:
      in: header
      name: gas-limit
      schema:
        $ref: '#/components/schemas/GasLimit'
      required: false
      description: Gas limit for transaction
  headers:
    SwarmTag:
      description: Tag UID
      schema:
        $ref: '#/components/schemas/Uid'
    ETag:
      description: |
        The RFC7232 ETag header field in a response provides the current entity-
        tag for the selected resource. An entity-tag is an opaque identifier for
        different versions of a resource over time, regardless whether multiple
        versions are valid at the same time. An entity-tag consists of an opaque
        quoted string, possibly prefixed by a weakness indicator.
      schema:
        type: string
    SwarmActHistoryAddress:
      description: Swarm address reference to the new ACT history entry
      schema:
        $ref: '#/components/schemas/SwarmAddress'
      required: false
    SwarmFeedResolvedVersion:
      schema:
        type: string
      required: false
      description: Indicates which feed version was resolved (v1 or v2)
    SwarmSocSignature:
      description: Attached digital signature of the Single Owner Chunk
      schema:
        $ref: '#/components/schemas/HexString'
    SwarmFeedIndex:
      description: The index of the found update
      schema:
        $ref: '#/components/schemas/HexString'
    SwarmFeedIndexNext:
      description: The index of the next possible update
      schema:
        $ref: '#/components/schemas/HexString'
