Coinbase Developer Platform (CDP) Toolkit.

Security Note: This toolkit contains tools that can read and modify the state of a service; e.g., by creating, deleting, or updating, reading underlying data.

For example, this toolkit can be used to create wallets, transactions, and smart contract invocations on CDP supported blockchains.

Setup: You will need to set the following environment variables:

export CDP_API_KEY_NAME="cdp-api-key-name"
export CDP_API_KEY_PRIVATE_KEY="cdp-api-key-private-key"
export NETWORK_ID="network-id"

Example usage:

const agentkit = await CdpAgentkit.configureWithWallet();
const toolkit = new CdpToolkit(agentkit);
const tools = toolkit.getTools();

// Available tools include:
// - get_wallet_details
// - get_balance
// - request_faucet_funds
// - transfer
// - trade
// - deploy_token
// - mint_nft
// - deploy_nft
// - register_basename
// - wow_create_token
// - wow_buy_token
// - wow_sell_token
// - wrap_eth

Hierarchy

  • BaseToolkit
    • CdpToolkit

Constructors

Properties

Methods

Constructors

Properties

tools: StructuredToolInterface<ZodObjectAny>[]

Methods

  • Returns StructuredToolInterface<ZodObjectAny>[]