Uniswap · Capability

Token Trading — Wallet

Token Trading — Wallet. 1 operations. Lead operation: Encode ERC-4337 UserOperation. Self-contained Naftiko capability covering one Uniswap business surface.

Run with Naftiko UniswapWallet

What You Can Do

POST
Encode4337 — Encode ERC-4337 UserOperation
/v1/wallet/encode-4337

MCP Tools

encode-erc-4337-useroperation

Encode ERC-4337 UserOperation

Capability Spec

trading-wallet.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Token Trading — Wallet
  description: 'Token Trading — Wallet. 1 operations. Lead operation: Encode ERC-4337 UserOperation. Self-contained Naftiko
    capability covering one Uniswap business surface.'
  tags:
  - Uniswap
  - Wallet
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNISWAP_API_KEY: UNISWAP_API_KEY
capability:
  consumes:
  - type: http
    namespace: trading-wallet
    baseUri: https://trade-api.gateway.uniswap.org/v1
    description: Token Trading — Wallet business capability. Self-contained, no shared references.
    resources:
    - name: wallet-encode_4337
      path: /wallet/encode_4337
      operations:
      - name: encode4337
        method: POST
        description: Encode ERC-4337 UserOperation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: x-api-key
      value: '{{env.UNISWAP_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: trading-wallet-rest
    port: 8080
    description: REST adapter for Token Trading — Wallet. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/wallet/encode-4337
      name: wallet-encode-4337
      description: REST surface for wallet-encode_4337.
      operations:
      - method: POST
        name: encode4337
        description: Encode ERC-4337 UserOperation
        call: trading-wallet.encode4337
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trading-wallet-mcp
    port: 9090
    transport: http
    description: MCP adapter for Token Trading — Wallet. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: encode-erc-4337-useroperation
      description: Encode ERC-4337 UserOperation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: trading-wallet.encode4337
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.