Requirements
Make sure your developer environment satisfies all of the requirements before proceeding through the quickstart.
Node.js 18+The Coinbase server-side SDK requires Node.js version 18 or higher and npm version 9.7.2 or higher. To view your currently installed versions of Node.js, run the following from the command-line:We recommend installing and managing Node.js and npm versions with
nvm
. See Installing and Updating in the nvm
README for instructions on how to install nvm
.Once nvm
has been installed, you can install and use the latest versions of Node.js and npm by running the following commands:Installation
Clone CDP SDK quickstart template
The CDP SDK provides a quickstart template to get started with the SDK. Clone the repository and navigate to the quickstart template directory:Install the dependencies:The file
index.js
contains the code to perform your first transfer with the CDP SDK. Let’s break down the content of this file.Configure your CDP API Key as outlined here.