Skip to content

CustomPath

Defined in: packages/agent/src/canisterStatus/index.ts:76

Interface to define a custom path. Nested paths will be represented as individual buffers, and can be created from text using TextEncoder.

the key to use to access the returned value in the canisterStatus map

the path to the desired value, represented as an array of buffers

the strategy to use to decode the returned value

  • CustomPath

new CustomPath(key, path, decodeStrategy): CustomPath

Defined in: packages/agent/src/canisterStatus/index.ts:80

string

string | Uint8Array<ArrayBufferLike>[]

"cbor" | "hex" | "leb128" | "utf-8" | "raw"

CustomPath

decodeStrategy: "cbor" | "hex" | "leb128" | "utf-8" | "raw"

Defined in: packages/agent/src/canisterStatus/index.ts:79

CustomPath.decodeStrategy


key: string

Defined in: packages/agent/src/canisterStatus/index.ts:77

CustomPath.key


path: string | Uint8Array<ArrayBufferLike>[]

Defined in: packages/agent/src/canisterStatus/index.ts:78

CustomPath.path