Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.48 KB

File metadata and controls

27 lines (18 loc) · 1.48 KB

CDP SDK Examples

Setup

Follow these steps to get started:

  1. Get a CDP API key and wallet secret from the CDP Portal
  2. Fill in your API key and wallet secret in .env.example, then run mv .env.example .env
  3. In the root typescript/ folder, run pnpm install && pnpm build. You only need to do this once
  4. In the examples/typescript folder, run pnpm install to install the dependencies

Usage

To run an example, use pnpm tsx followed by the path to the example file, for example:

pnpm tsx evm/createAccount.ts

x402 Payment Protocol

Examples for paying for and gating x402-protected APIs with CDP-managed wallets live in x402/. See the x402 examples README for setup, funding, and environment variables.