Moralis · Capability

EVM API — Get Balance

EVM API — Get Balance. 1 operations. Lead operation: Get ERC20 token balances by wallet. Self-contained Naftiko capability covering one Moralis business surface.

Run with Naftiko MoralisGet Balance

What You Can Do

GET
Getwallettokenbalances — Get ERC20 token balances by wallet
/v1/{address}/erc20

MCP Tools

get-erc20-token-balances-wallet

Get ERC20 token balances by wallet

read-only idempotent

Capability Spec

evm-get-balance.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: EVM API — Get Balance
  description: 'EVM API — Get Balance. 1 operations. Lead operation: Get ERC20 token balances by wallet. Self-contained Naftiko
    capability covering one Moralis business surface.'
  tags:
  - Moralis
  - Get Balance
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MORALIS_API_KEY: MORALIS_API_KEY
capability:
  consumes:
  - type: http
    namespace: evm-get-balance
    baseUri: https://deep-index.moralis.io/api/v2.2
    description: EVM API — Get Balance business capability. Self-contained, no shared references.
    resources:
    - name: address-erc20
      path: /{address}/erc20
      operations:
      - name: getwallettokenbalances
        method: GET
        description: Get ERC20 token balances by wallet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: chain
          in: query
          type: string
          description: The chain to query
        - name: address
          in: path
          type: string
          description: The address from which token balances will be checked
          required: true
        - name: to_block
          in: query
          type: number
          description: The block number up to which the balances will be checked.
        - name: token_addresses
          in: query
          type: array
          description: The addresses to get balances for (optional)
        - name: exclude_spam
          in: query
          type: boolean
          description: Exclude spam tokens from the result
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.MORALIS_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: evm-get-balance-rest
    port: 8080
    description: REST adapter for EVM API — Get Balance. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/{address}/erc20
      name: address-erc20
      description: REST surface for address-erc20.
      operations:
      - method: GET
        name: getwallettokenbalances
        description: Get ERC20 token balances by wallet
        call: evm-get-balance.getwallettokenbalances
        with:
          chain: rest.chain
          address: rest.address
          to_block: rest.to_block
          token_addresses: rest.token_addresses
          exclude_spam: rest.exclude_spam
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: evm-get-balance-mcp
    port: 9090
    transport: http
    description: MCP adapter for EVM API — Get Balance. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-erc20-token-balances-wallet
      description: Get ERC20 token balances by wallet
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: evm-get-balance.getwallettokenbalances
      with:
        chain: tools.chain
        address: tools.address
        to_block: tools.to_block
        token_addresses: tools.token_addresses
        exclude_spam: tools.exclude_spam
      outputParameters:
      - type: object
        mapping: $.