n8n-nodes-coinbase-cdp
v0.9.18
Published
n8n community node for Coinbase CDP (Developer Platform) with Advanced Trade API v3 and Server Wallet API v2
Maintainers
Readme
n8n-nodes-coinbase-cdp
This is an n8n community node for Coinbase CDP (Developer Platform) with two powerful nodes:
- Coinbase CDP (Advanced Trade API v3) - For trading, portfolios, and market data
- Coinbase Server Wallet (API v2) - For wallet operations, deposits, withdrawals, and blockchain interactions (EVM & Solana)
Installation
Community Nodes (Recommended)
Install directly from n8n:
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-coinbase-cdp - Click Install
Manual Installation
For local development or self-hosted n8n:
npm install n8n-nodes-coinbase-cdpIn n8n, search for "Coinbase" to find both nodes.
Features
- 🔐 Secure Authentication: Dual credential system for Advanced Trade and Server Wallet APIs
- 📊 Complete API Coverage: Generated from official Coinbase OpenAPI specifications
- 🌐 Multi-Environment: Supports both Production and Sandbox environments
- ⚡ Two Powerful Nodes:
- Coinbase CDP: Trading, portfolios, orders, market data
- Coinbase Server Wallet: EVM & Solana wallets, deposits, withdrawals, smart accounts
- 🔗 Blockchain Support: Ethereum, Base, Arbitrum, Polygon, Solana networks
Authentication
Coinbase CDP API (Advanced Trade)
This node uses Coinbase Developer Platform (CDP) API keys with ES256 JWT authentication.
Getting Your API Keys
- Go to Coinbase Developer Platform
- Create a new API key
- Download the private key (
.pemfile) - Copy the API Key Name (format:
organizations/{org_id}/apiKeys/{key_id})
Setting Up Credentials in n8n
- In n8n, create new credentials: Coinbase CDP API
- Enter your CDP API Key Name
- Paste your EC Private Key (see formats below)
- Select Environment (Production or Sandbox)
- Click Save and test the connection
Private Key Format
The private key can be provided in two formats:
Multi-line format (recommended):
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg...
-----END PRIVATE KEY-----.env format (single-line with literal \n):
-----BEGIN PRIVATE KEY-----\nMIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg...\n-----END PRIVATE KEY-----Both SEC1 (BEGIN EC PRIVATE KEY) and PKCS8 (BEGIN PRIVATE KEY) formats are supported.
Coinbase Server Wallet API (Wallet Operations)
This node uses two-layer JWT authentication with Secret API Key and Wallet Secret.
Getting Your API Keys
- Go to Coinbase Developer Platform
- Create a Secret API Key for Server Wallet
- Download the Secret API Key private key (
.pemfile) - Create or export your Wallet Secret private key
- Copy the Secret API Key Name
Setting Up Credentials in n8n
- In n8n, create new credentials: Coinbase Server Wallet API
- Enter your Secret API Key Name
- Paste your Secret API Key (Private Key)
- Paste your Wallet Secret (Private Key)
- Click Save and test the connection
Note: Both private keys support multi-line and .env format (with literal \n).
Available Operations
Coinbase CDP Node (Advanced Trade API)
Full-featured node with all Coinbase Advanced Trade API operations:
- Portfolio: View balances, portfolios, and portfolio breakdown
- Accounts: List and manage trading accounts
- Orders: Create, cancel, and query orders
- Products: Get product information, candles, and market data
- Transactions: View transaction history
- Fees: Query transaction and fee summaries
Coinbase Server Wallet Node (Wallet API v2)
Comprehensive wallet operations for EVM and Solana blockchains:
EVM Operations (Ethereum, Base, Arbitrum, Polygon)
- Accounts: Create accounts, get balances, list accounts
- Transactions: Send transactions, sign transactions, get transaction status
- Smart Accounts: Create and manage smart contract accounts
- Token Operations: Token balances, token swaps
- Faucet: Request testnet tokens
Solana Operations
- Accounts: Create Solana accounts, get balances
- Transactions: Sign and send Solana transactions
- Token Operations: SPL token management
Additional Features
- Payments: Payment processing and confirmations
- Data: Blockchain data queries
- Onramp: Fiat-to-crypto onramp integration
- Policy Engine: Transaction policy management
- X402: Advanced wallet features
Example Workflows
Advanced Trade: Check Account Balance
- Add Coinbase CDP node
- Select Resource: Portfolio
- Select Operation: List Portfolios
- Execute to see all your portfolios
Advanced Trade: Place a Market Order
- Add Coinbase CDP node
- Select Resource: Orders
- Select Operation: Create Order
- Fill in order parameters (product, side, amount)
- Execute to place the order
Server Wallet: Create EVM Account
- Add Coinbase Server Wallet node
- Select Resource: EVM Accounts
- Select Operation: Create Account
- Specify network (e.g., "base-sepolia")
- Execute to create a new wallet account
Server Wallet: Send Transaction
- Add Coinbase Server Wallet node
- Select Resource: EVM Transactions
- Select Operation: Send Transaction
- Fill in: account address, recipient, amount, token
- Execute to send the transaction
Server Wallet: Get Token Balance
- Add Coinbase Server Wallet node
- Select Resource: EVM Token Balances
- Select Operation: Get Token Balances
- Specify network and address
- Execute to see all token balances
Troubleshooting
"Authorization failed" or 401 errors
- Verify your API Key Name is correct (should include
organizations/andapiKeys/) - Ensure your private key is complete (includes
-----BEGINand-----ENDlines) - Check that your API key has the required permissions
- Test the credential connection using the "Test" button in the credential modal
Private key format issues
If you get "Failed to parse EC private key":
- Make sure there are no extra spaces or characters
- If copying from a file, include the full key with header/footer
- Try converting literal
\nto actual newlines or vice versa
Development
Local Development Setup
# Clone repository
git clone <your-repo-url>
cd n8n-nodes-coinbase-cdp
# Install dependencies
npm install
# Build
npm run build
# Link for local testing
npm link
cd ~/.n8n/custom
npm init -y
npm link n8n-nodes-coinbase-cdp
# Start n8n
n8n startCommands
npm run build # Build TypeScript and copy icons
npm run dev # Watch mode for development
npm test # Run tests
npm run format # Format code with Prettier
npm run lint # Lint code
npm run lintfix # Fix linting issuesTech Stack
- Built with TypeScript
- Generated from Coinbase Advanced Trade OpenAPI specification
- Uses
@devlikeapro/n8n-openapi-nodefor OpenAPI integration - JWT authentication with ES256 algorithm
Resources
- Coinbase Developer Platform Documentation
- Advanced Trade API Reference
- n8n Community Nodes Documentation
License
Support
For issues, questions, or contributions:
- Open an issue on GitHub
- Check existing issues for solutions
- Contribute via pull requests
Changelog
See CHANGELOG.md for version history and updates.
