Skip to content

Conversation

altitude
Copy link
Member

@altitude altitude commented Sep 8, 2025

Introduce the Coinbase Prime connector with account, balance, payment syncing, and wallet-to-wallet transfer support.

Implemented capabilities

  • CAPABILITY_FETCH_ACCOUNTS
  • CAPABILITY_FETCH_BALANCES
  • CAPABILITY_FETCH_PAYMENTS
  • CAPABILITY_CREATE_TRANSFER

What’s included

  • Accounts sync:
    • Portfolios and wallets discovered via Prime SDK.
    • Metadata per account:
      • spec.coinbase.com/type: portfolio or wallet
      • spec.coinbase.com/portfolio_id: portfolio UUID
      • spec.coinbase.com/wallet_type: wallet kind (for wallets)
  • Balances:
    • Portfolio balances (by portfolio ID).
    • Wallet balances (by portfolio ID + wallet ID).
  • Payments:
    • Transactions listing for portfolios and for wallets (paged).
    • Status mapping to internal PaymentStatus.
    • Amount parsing with crypto precision overrides (BTC/8, ETH/8, SOL/9, USDC/6).
  • Transfers:
    • Wallet-to-wallet transfers using CreateWalletTransfer.
    • Enforces wallet-only transfers via metadata.
    • Uses connector idempotency keys.
    • Converts minor units to decimal string per currency precision.

Notes and constraints

  • Transfers currently supported only for accounts with spec.coinbase.com/wallet_type: wallet.

feat: adding a connector development server with direct access to connectors functions

Signed-off-by: Clément Salaün <[email protected]>
Signed-off-by: Clément Salaün <[email protected]>
Copy link
Contributor

coderabbitai bot commented Sep 8, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/coinbase-connector

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@altitude altitude changed the title Coinbase Prime Connector feat: add coinbase prime connector Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant