Skip to content

@oona/vlo / host / BlobStore

Interface: BlobStore ​

Defined in: sdk/ts/sdk/src/blob/types.ts:5

Content-addressed storage for anything too big to inline in the journal (payloads and checkpoints over 256 KB).

Methods ​

get() ​

get(sha256Hex): Promise<Uint8Array<ArrayBufferLike>>

Defined in: sdk/ts/sdk/src/blob/types.ts:9

The bytes stored under that digest. Rejects when there are none.

Parameters ​

sha256Hex ​

string

Returns ​

Promise<Uint8Array<ArrayBufferLike>>


put() ​

put(bytes): Promise<string>

Defined in: sdk/ts/sdk/src/blob/types.ts:7

Stores the bytes and returns their sha256, lowercase hex. Idempotent.

Parameters ​

bytes ​

Uint8Array

Returns ​

Promise<string>