Constructors
Constructor
new CallerApi(Defined in: typescript/src/client/CallerApi.ts:15transport):CallerApi
Parameters
transport
Transport
Returns
CallerApi
Methods
me()
me():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.Promise<CallerIdentity>
Returns
Promise<CallerIdentity>
publicKey()
publicKey(Defined in: typescript/src/client/CallerApi.ts:37 Maps to GET /keys/. Records are signed with the keykeyId):Promise<PublicKeyInfo>
default.
Fetch it once, keep the PEM, and pass it to
verifyExecutionTrustRecordOffline() or verifyExecutionIntentOffline().
Needs no API key.
Parameters
keyId
string
Returns
Promise<PublicKeyInfo>