Skip to main content
Package: com.coinbase.cdp.auth
Generates Wallet Auth JWT tokens for authenticating with wallet-specific endpoints. Wallet JWTs are required for write operations (POST, PUT, DELETE) on account and spend-permission endpoints. They include a hash of the request body for integrity verification. Example usage:

Method Details

generateWalletJwt

Generates a wallet authentication JWT. Parameters: options (WalletJwtOptions) - the wallet JWT configuration options Returns: String - the generated JWT string Throws: [JwtGenerationException](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/auth/exceptions/JwtGenerationException "class in com.coinbase.cdp.auth.exceptions") - if token generation fails