Atlas

Get attachment inventory

Changed on

Get inventory of attachments for a given index block hash and page range. This returns a bitfield indicating which attachments are available.

get/v2/attachments/inv

Request

  • Base URL
    http://localhost:20443
  • URL
    http://localhost:20443/v2/attachments/inv
  • Auth
    none required

Query parameters

index_block_hashstring required

Hex-encoded index block hash (64 characters)

pages_indexesstring required
Example:1,2,3

Comma-separated list of page indexes to query.

  • Maximum 8 pages per request
  • Each index must be 0-4294967295 (u32 range)
  • Values outside u32 range return 400 Bad Request

Response

Attachment inventory bitfield

AttachmentInventory required(unresolved $ref)

Changes

    • warning

      changed the pattern of the query request parameter pages_indexes from ^[0-9]+(,[0-9]+){0,7}$ to ^[0-9]{1,10}(,[0-9]{1,10}){0,7}$

    • warning

      changed the pattern of the query request parameter pages_indexes from ^[0-9]{1,10}(,[0-9]{1,10}){0,7}$ to ^[0-9]+(,[0-9]+){0,7}$