Classes
CdpClient
Defined in: client/cdp.ts:27 The main client for interacting with the CDP API.Extends
VendoredClient
Constructors
Constructor
- CDP Secret API Key (
apiKeyId&apiKeySecret): These are used to authenticate requests to the entire suite of APIs offered on Coinbase Developer Platform. Read more about CDP API keys. - Wallet Secret (
walletSecret): This secret is used specifically to authenticate requests toPOST, andDELETEendpoints in the EVM and Solana Account APIs.
evm or solana.
As an example, to create a new EVM account, use cdp.evm.createAccount().
To create a new Solana account, use cdp.solana.createAccount().
The CDP Secret API Key is not required to call public (unauthenticated) endpoints, such as
the x402 Bazaar discovery endpoints. A CdpClient may be constructed without credentials for
this purpose; calling an authenticated endpoint without credentials will raise a clear error.
Parameters
options?
CdpClientOptions = {}
Configuration options for the CdpClient.
Returns
CdpClient
Overrides
Properties
_accounts
Inherited from
_depositDestinations
Inherited from
_options
Inherited from
_paymentMethods
Inherited from
_transfers
Inherited from
endUser
evm
policies
solana
webhooks
Accessors
accounts
Get Signature
Returns
AccountsClient
Inherited from
depositDestinations
Get Signature
Returns
DepositDestinationsClient
Inherited from
paymentMethods
Get Signature
Returns
PaymentMethodsClient
Inherited from
transfers
Get Signature
Returns
TransfersClient
Inherited from
Methods
fetch()
Parameters
input
The URL, path, or Request object.string | Request | URL
init?
RequestInit
Standard fetch RequestInit options.
requestOptions?
RequestOptions
Per-request overrides (timeout, retries, headers, abort signal).
Returns
Promise<Response>
A standard Response object.