Skip to main content

Interfaces

GetAuthHeadersOptions

Defined in: utils/http.ts:12 Options for generating authentication headers for API requests.

Properties

apiKeyId
apiKeyId: string;
Defined in: utils/http.ts:20 The API key ID Examples: ‘xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx’ ‘organizations/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/apiKeys/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx’
apiKeySecret
apiKeySecret: string;
Defined in: utils/http.ts:29 The API key secret Examples: ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==’ (Edwards key (Ed25519)) ‘-----BEGIN EC PRIVATE KEY-----\n…\n…\n…==\n-----END EC PRIVATE KEY-----\n’ (EC key (ES256))
requestMethod
requestMethod: string;
Defined in: utils/http.ts:34 The HTTP method for the request (e.g. ‘GET’, ‘POST’)
requestHost
requestHost: string;
Defined in: utils/http.ts:39 The host for the request (e.g. ‘api.cdp.coinbase.com’)
requestPath
requestPath: string;
Defined in: utils/http.ts:44 The path for the request (e.g. ‘/platform/v1/wallets’)
requestBody?
optional requestBody: unknown;
Defined in: utils/http.ts:49 Optional request body data
walletSecret?
optional walletSecret: string;
Defined in: utils/http.ts:54 The Wallet Secret for wallet authentication
source?
optional source: string;
Defined in: utils/http.ts:59 The source identifier for the request
sourceVersion?
optional sourceVersion: string;
Defined in: utils/http.ts:64 The version of the source making the request
expiresIn?
optional expiresIn: number;
Defined in: utils/http.ts:69 Optional expiration time in seconds (defaults to 120)
audience?
optional audience: string[];
Defined in: utils/http.ts:74 Optional audience claim for the JWT

Functions