> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/products/agentic-wallet/manual/llms.txt
> Use this file to discover all available pages before exploring further.

# Estimate contract call fee

> This operation estimates the network fee for a contract call without submitting a transaction. You can use the returned `recommended`, `slow`, and `fast` fee options when constructing the contract call request.



## OpenAPI

````yaml post /api/v1/wallets/{wallet_uuid}/estimate-contract-call-fee
openapi: 3.1.0
info:
  title: Cobo Agentic Wallet Service
  description: Unified wallet engine for human and agent principals
  version: 1.3.0
servers: []
security: []
paths:
  /api/v1/wallets/{wallet_uuid}/estimate-contract-call-fee:
    post:
      tags:
        - Transactions
      summary: Estimate contract call fee
      description: >-
        This operation estimates the network fee for a contract call without
        submitting a transaction. You can use the returned `recommended`,
        `slow`, and `fast` fee options when constructing the contract call
        request.
      operationId: estimate_contract_call_fee
      parameters:
        - name: wallet_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: >-
              The UUID of the wallet for which to estimate the contract call
              fee. Retrieve this value from the `id` field returned when the
              wallet was created.
            title: Wallet Uuid
          description: >-
            The UUID of the wallet for which to estimate the contract call fee.
            Retrieve this value from the `id` field returned when the wallet was
            created.
        - name: X-API-Key
          in: header
          required: false
          schema:
            title: X-Api-Key
            type: string
            nullable: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EstimateContractCallFeeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse_EstimateTransferFeeRead_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedValidationError'
components:
  schemas:
    EstimateContractCallFeeRequest:
      properties:
        chain_id:
          type: string
          maxLength: 100
          minLength: 1
          title: Chain Id
          description: >-
            The Cobo chain ID for this contract call (for example, `SETH`,
            `BASE_ETH`, `SOL`).
        contract_addr:
          title: Contract Addr
          description: The EVM contract address to call. Required for EVM chains.
          type: string
          maxLength: 255
          nullable: true
        value:
          type: string
          maxLength: 100
          minLength: 1
          title: Value
          description: >-
            The ETH value to send with the call, in whole token units (not wei),
            as a decimal string. Defaults to `0`.
          default: '0'
        calldata:
          title: Calldata
          description: The ABI-encoded calldata as a hex string.
          type: string
          maxLength: 8192
          nullable: true
        instructions:
          title: Instructions
          description: Solana instructions for this call. Required for Solana chains.
          items:
            $ref: '#/components/schemas/SolInstruction'
          type: array
          nullable: true
        address_lookup_table_accounts:
          title: Address Lookup Table Accounts
          description: Optional Solana address lookup table accounts.
          items:
            $ref: '#/components/schemas/SolAddressLookupTableAccount'
          type: array
          nullable: true
        src_addr:
          title: Src Addr
          description: >-
            The source address. If omitted, the wallet's most recently created
            address for this chain is used.
          type: string
          maxLength: 255
          nullable: true
      type: object
      required:
        - chain_id
      title: EstimateContractCallFeeRequest
      description: Request payload for contract-call fee estimation.
    StandardResponse_EstimateTransferFeeRead_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        result:
          $ref: '#/components/schemas/EstimateTransferFeeRead'
        suggestion:
          type: string
          title: Suggestion
          default: ''
        message:
          type: string
          title: Message
          default: ''
        meta:
          $ref: '#/components/schemas/PaginationMeta'
          nullable: true
      type: object
      required:
        - result
      title: StandardResponse[EstimateTransferFeeRead]
    WrappedValidationError:
      title: WrappedValidationError
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
          default: false
          title: Success
        error:
          type: object
          title: Error
          required:
            - detail
          properties:
            detail:
              type: array
              title: Detail
              items:
                $ref: '#/components/schemas/ValidationError'
    SolInstruction:
      properties:
        program_id:
          type: string
          minLength: 1
          title: Program Id
          description: The Solana program ID to invoke.
        accounts:
          items:
            $ref: '#/components/schemas/SolInstructionAccount'
          type: array
          title: Accounts
          description: The accounts involved in this instruction.
        data:
          type: string
          minLength: 1
          title: Data
          description: The instruction data as a base64-encoded string.
      type: object
      required:
        - program_id
        - accounts
        - data
      title: SolInstruction
      description: Solana contract call instruction.
    SolAddressLookupTableAccount:
      properties:
        alt_account_key:
          type: string
          minLength: 1
          title: Alt Account Key
          description: The address lookup table's public key.
        addresses:
          items:
            type: string
          type: array
          title: Addresses
          description: The list of addresses in this lookup table.
      type: object
      required:
        - alt_account_key
        - addresses
      title: SolAddressLookupTableAccount
      description: Solana address lookup table account.
    EstimateTransferFeeRead:
      properties:
        fee_type:
          title: Fee Type
          description: The fee model type (for example, `EVM_EIP_1559`, `SOL`).
          type: string
          nullable: true
        token_id:
          title: Token Id
          description: The token used to pay fees.
          type: string
          nullable: true
        recommended:
          $ref: '#/components/schemas/FeeEstimateRead'
          description: The recommended fee estimate, balancing speed and cost.
        slow:
          $ref: '#/components/schemas/FeeEstimateRead'
          description: A lower-cost fee estimate with slower confirmation.
        fast:
          $ref: '#/components/schemas/FeeEstimateRead'
          description: A higher-cost fee estimate with faster confirmation.
      type: object
      title: EstimateTransferFeeRead
      description: Fee estimation response payload.
    PaginationMeta:
      properties:
        total:
          title: Total
          type: integer
          nullable: true
        offset:
          title: Offset
          type: integer
          nullable: true
        limit:
          title: Limit
          type: integer
          nullable: true
        has_more:
          title: Has More
          type: boolean
          nullable: true
        after:
          title: After
          type: string
          nullable: true
        before:
          title: Before
          type: string
          nullable: true
      type: object
      title: PaginationMeta
      description: |-
        Pagination metadata for list responses.

        Supports both legacy offset-based and cursor-based pagination.
        Cursor fields (``has_more``, ``after``, ``before``) are populated for
        cursor-paginated endpoints.  Legacy fields (``offset``, ``limit``) are
        populated when the caller uses the deprecated ``offset`` parameter.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    SolInstructionAccount:
      properties:
        pubkey:
          type: string
          minLength: 1
          title: Pubkey
          description: The account's public key.
        is_signer:
          type: boolean
          title: Is Signer
          description: Whether this account must sign the transaction.
        is_writable:
          type: boolean
          title: Is Writable
          description: Whether this account will be modified by the instruction.
      type: object
      required:
        - pubkey
        - is_signer
        - is_writable
      title: SolInstructionAccount
      description: Solana instruction account.
    FeeEstimateRead:
      properties:
        max_fee_per_gas:
          title: Max Fee Per Gas
          description: The maximum total fee per gas for EIP-1559 transactions, in wei.
          type: string
          nullable: true
        max_priority_fee_per_gas:
          title: Max Priority Fee Per Gas
          description: >-
            The maximum priority fee (tip) per gas for EIP-1559 transactions, in
            wei.
          type: string
          nullable: true
        gas_limit:
          title: Gas Limit
          description: The estimated gas limit for EIP-1559 transactions.
          type: string
          nullable: true
        compute_unit_price:
          title: Compute Unit Price
          description: >-
            The price per compute unit for Solana transactions, in
            microlamports.
          type: string
          nullable: true
        compute_unit_limit:
          title: Compute Unit Limit
          description: The maximum compute units for Solana transactions.
          type: string
          nullable: true
        fee_amount:
          title: Fee Amount
          description: The total estimated fee amount as a decimal string.
          type: string
          nullable: true
      type: object
      title: FeeEstimateRead
      description: Standardized fee estimate view (supports both EVM and SOL fields).

````