Skip to main content
function generateWalletJwt(options: WalletJwtOptions): Promise<string>;
Defined in: utils/jwt.ts:187 Generates a wallet authentication JWT for the given API endpoint URL. Used for authenticating with specific endpoints that require wallet authentication.

Parameters

options

WalletJwtOptions The configuration options for generating the JWT

Returns

Promise<string> The generated JWT (Bearer token) string

Throws

If the Wallet Secret is not defined.

Throws

If the private key is not in the correct format or signing fails.