Skip to main content
Defined in: typescript/src/client/CallerApi.ts:14

Constructors

Constructor

new CallerApi(transport): CallerApi
Defined in: typescript/src/client/CallerApi.ts:15

Parameters

transport
Transport

Returns

CallerApi

Methods

me()

me(): Promise<CallerIdentity>
Defined in: typescript/src/client/CallerApi.ts:22 Maps to GET /callers/me. Useful to check a key before sending requests: which principal IDs it may act for and which capabilities it may request.

Returns

Promise<CallerIdentity>

publicKey()

publicKey(keyId): Promise<PublicKeyInfo>
Defined in: typescript/src/client/CallerApi.ts:37 Maps to GET /keys/. Records are signed with the key default. Fetch it once, keep the PEM, and pass it to verifyExecutionTrustRecordOffline() or verifyExecutionIntentOffline(). Needs no API key.

Parameters

keyId
string

Returns

Promise<PublicKeyInfo>