Coinbase · Capability

Coinbase Prime API — Transactions

Coinbase Prime API — Transactions. 3 operations. Lead operation: List transactions. Self-contained Naftiko capability covering one Coinbase business surface.

Run with Naftiko CoinbaseTransactions

What You Can Do

GET
Listtransactions — List transactions
/v1/portfolios/{portfolio-id}/transactions
GET
Gettransaction — Get transaction
/v1/portfolios/{portfolio-id}/transactions/{transaction-id}
POST
Createwithdrawal — Create withdrawal
/v1/portfolios/{portfolio-id}/wallets/{wallet-id}/transactions

MCP Tools

list-transactions

List transactions

read-only idempotent
get-transaction

Get transaction

read-only idempotent
create-withdrawal

Create withdrawal

Capability Spec

prime-transactions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coinbase Prime API — Transactions
  description: 'Coinbase Prime API — Transactions. 3 operations. Lead operation: List transactions. Self-contained Naftiko
    capability covering one Coinbase business surface.'
  tags:
  - Coinbase
  - Transactions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COINBASE_API_KEY: COINBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: prime-transactions
    baseUri: https://api.prime.coinbase.com/v1
    description: Coinbase Prime API — Transactions business capability. Self-contained, no shared references.
    resources:
    - name: portfolios-portfolio_id-transactions
      path: /portfolios/{portfolio_id}/transactions
      operations:
      - name: listtransactions
        method: GET
        description: List transactions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: symbols
          in: query
          type: string
          description: Filter by currency symbols
        - name: types
          in: query
          type: array
          description: Filter by transaction types
        - name: start_time
          in: query
          type: string
          description: Start time filter
        - name: end_time
          in: query
          type: string
          description: End time filter
    - name: portfolios-portfolio_id-transactions-transaction_id
      path: /portfolios/{portfolio_id}/transactions/{transaction_id}
      operations:
      - name: gettransaction
        method: GET
        description: Get transaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: transaction_id
          in: path
          type: string
          description: Transaction identifier
          required: true
    - name: portfolios-portfolio_id-wallets-wallet_id-transactions
      path: /portfolios/{portfolio_id}/wallets/{wallet_id}/transactions
      operations:
      - name: createwithdrawal
        method: POST
        description: Create withdrawal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: wallet_id
          in: path
          type: string
          description: Wallet identifier
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-CB-ACCESS-KEY
      value: '{{env.COINBASE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: prime-transactions-rest
    port: 8080
    description: REST adapter for Coinbase Prime API — Transactions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/portfolios/{portfolio-id}/transactions
      name: portfolios-portfolio-id-transactions
      description: REST surface for portfolios-portfolio_id-transactions.
      operations:
      - method: GET
        name: listtransactions
        description: List transactions
        call: prime-transactions.listtransactions
        with:
          symbols: rest.symbols
          types: rest.types
          start_time: rest.start_time
          end_time: rest.end_time
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/portfolios/{portfolio-id}/transactions/{transaction-id}
      name: portfolios-portfolio-id-transactions-transaction-id
      description: REST surface for portfolios-portfolio_id-transactions-transaction_id.
      operations:
      - method: GET
        name: gettransaction
        description: Get transaction
        call: prime-transactions.gettransaction
        with:
          transaction_id: rest.transaction_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/portfolios/{portfolio-id}/wallets/{wallet-id}/transactions
      name: portfolios-portfolio-id-wallets-wallet-id-transactions
      description: REST surface for portfolios-portfolio_id-wallets-wallet_id-transactions.
      operations:
      - method: POST
        name: createwithdrawal
        description: Create withdrawal
        call: prime-transactions.createwithdrawal
        with:
          wallet_id: rest.wallet_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prime-transactions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coinbase Prime API — Transactions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-transactions
      description: List transactions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prime-transactions.listtransactions
      with:
        symbols: tools.symbols
        types: tools.types
        start_time: tools.start_time
        end_time: tools.end_time
      outputParameters:
      - type: object
        mapping: $.
    - name: get-transaction
      description: Get transaction
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prime-transactions.gettransaction
      with:
        transaction_id: tools.transaction_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-withdrawal
      description: Create withdrawal
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: prime-transactions.createwithdrawal
      with:
        wallet_id: tools.wallet_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.