Sandbox uses the same API endpoints, authentication, and response formats as production. Behavior is simulated (no real transactions), making it easy to transition your code when ready.
Key concepts in Sandbox
| Resource | Direction | Description |
|---|---|---|
| Account | - | Your asset balance within Coinbase that you fund with test amounts (e.g., your USD balance with $1000 test funds) |
| Deposit destination | Incoming crypto | Placeholder addresses for receiving crypto. Simulate deposits via Portal UI |
| Payment method | Outgoing fiat | External bank accounts for fiat withdrawals. Three pre-configured test banks shared across all accounts (Fedwire JPMorgan, Fedwire Bank of America, SWIFT Deutsche Bank) |
| Transfer | Both | Move funds to crypto addresses, emails, or payment methods. All simulated |
Sandbox vs. Production
Sandbox and production offer the same endpoints and functionality, but with different data and behavior.Operational differences
| Sandbox | Production | |
|---|---|---|
| Base URL | sandbox.cdp.coinbase.com | api.cdp.coinbase.com |
| API keys | Sandbox-specific credentials | Production credentials |
| Rate limits | Same as production | Standard production limits |
| Data persistence | Permanent | Permanent |
| Performance | Response times may vary | Standard production performance |
| Third-party services | Mocked responses | Real integrations |
| Compliance checks | Simplified (no real KYC/AML) | Full compliance flows |
Resource differences
| Sandbox | Production | |
|---|---|---|
| Accounts | Create via Sandbox UI (funding only via UI) | Link existing Prime portfolio or Coinbase Business account |
| Deposit destinations | Placeholder addresses; simulate deposits via Sandbox UI | Real blockchain addresses |
| Payment methods | Three test methods: Fedwire (active), Fedwire (inactive), SWIFT (active) | Automatically linked from Prime/Business |
| Transfers | Simulated (webhooks fire, no blockchain activity) | Real blockchain transactions |
| Webhooks | Supported | Supported |
Fully simulated - no blockchain connectivity. All transactions are simulated within Sandbox—no mainnet or testnet. This allows faster, more reliable testing.
Best practices
Isolate Sandbox configuration
Isolate Sandbox configuration
Keep Sandbox configuration completely separate from production:
Test error handling
Test error handling
Use Sandbox to thoroughly test error scenarios:
- Invalid authentication
- Malformed requests
- Rate limiting
- Network timeouts
- Insufficient funds
- Invalid account details
Automate integration tests
Automate integration tests
Create automated test suites that run against Sandbox:
Monitor API usage
Monitor API usage
Track your API usage patterns in Sandbox to understand production requirements:
- Request volumes
- Response times
- Error rates
- Rate limit consumption