CDP SDK TypeScript - v1.31.0
    Preparing search index...

    Interface GetAuthHeadersOptions

    Options for generating authentication headers for API requests.

    interface GetAuthHeadersOptions {
        apiKeyId: string;
        apiKeySecret: string;
        requestMethod: string;
        requestHost: string;
        requestPath: string;
        requestBody?: unknown;
        walletSecret?: string;
        source?: string;
        sourceVersion?: string;
        expiresIn?: number;
        audience?: string[];
    }
    Index

    Properties

    apiKeyId: string

    The API key ID

    Examples: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' 'organizations/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/apiKeys/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

    apiKeySecret: string

    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: string

    The HTTP method for the request (e.g. 'GET', 'POST')

    requestHost: string

    The host for the request (e.g. 'api.cdp.coinbase.com')

    requestPath: string

    The path for the request (e.g. '/platform/v1/wallets')

    requestBody?: unknown

    Optional request body data

    walletSecret?: string

    The Wallet Secret for wallet authentication

    source?: string

    The source identifier for the request

    sourceVersion?: string

    The version of the source making the request

    expiresIn?: number

    Optional expiration time in seconds (defaults to 120)

    audience?: string[]

    Optional audience claim for the JWT