Skip to content

const storage: object

Defined in: sdk/js/src/api.ts:53

The bot’s key-value storage (capability storage_bytes).

delete(key): void

string

void

get(key): Uint8Array<ArrayBufferLike>

string

Uint8Array<ArrayBufferLike>

getJSON<T>(key): T

A JSON value (bigints are not supported by JSON).

T = unknown

string

T

getString(key): string

string

string

keys(prefix?, options?): string[]

Keys starting with prefix, in order.

string = ''

string

number

string[]

set(key, value): void

string

Uint8Array

void

setJSON(key, value): void

string

unknown

void

setString(key, value): void

string

string

void