Skip to main contentFunction: sealAndStampRequestBody()
sealAndStampRequestBody(input): Promise<{ sealedBody: string; xStamp: string; }>
Defined in: base.ts:216
Seals and stamps the request body with your Turnkey API credentials.
You can either:
- Before calling
sealAndStampRequestBody(...), initialize with your Turnkey API credentials via init(...)
- Or, provide
apiPublicKey and apiPrivateKey here as arguments
Parameters
apiPrivateKey?
string
apiPublicKey?
string
body
Record<string, any>
Returns
Promise<{ sealedBody: string; xStamp: string; }>