Atlas

Operations related to the Atlas global namespace.

Get attachment by hash

get
/v2/attachments/{hash}

Get an attachment by its hash. Attachments are content stored in the Atlas network.

The attachment hash is a 40-character hex string (SHA-1 hash).

Path parameters
hashstringRequired

Hex-encoded SHA-1 hash of the attachment (40 characters)

Pattern: ^[0-9a-f]{40}$
Responses
200

The attachment content

application/json
get
/v2/attachments/{hash}

Get attachment inventory

get
/v2/attachments/inv

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

Query parameters
index_block_hashstringRequired

Hex-encoded index block hash (64 characters)

Pattern: ^[0-9a-f]{64}$
pages_indexesstringRequired

max 8 pages per request

Example: 1,2,3Pattern: ^[0-9]+(,[0-9]+){0,7}$
Responses
200

Attachment inventory bitfield

application/json
get
/v2/attachments/inv

Last updated

Was this helpful?