Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 711 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 711 Bytes

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
  5. Run source .env to load the environment variables. You will need to do this every time you open a new terminal

Usage

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

pnpm tsx evm/createAccount.ts