Moralis Utils API

The Utils API from Moralis — 4 operation(s) for utils.

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /{address}/function Read a contract function · Run contract function #
Ask an LLM
“How do I call a read-only function on a smart contract?”
“Can I pass parameters to a contract function and get its return value?”
Tell an agent
Run {function_name} on {address} with ABI {abi}.
Call {function_name} on {address} with ABI {abi} and params {params}.
GET /web3/version Check the Web3 API version · Get API version #
Ask an LLM
“Which version of the Moralis Web3 API is currently live?”
“Is there a way to check the API version before sending requests?”
Tell an agent
Get the current Web3 API version.
Check which version of the Moralis Web3 API I am using.
GET /info/endpointWeights View endpoint cost and rate limits · Get weights of endpoints #
Ask an LLM
“What do the rate limits and costs look like for each Moralis API endpoint?”
“Which endpoints are the most expensive to call?”
Tell an agent
Show the endpoint weights and rate limits.
List the cost and rate limit for every API endpoint.
POST /contracts-review Classify contracts as spam or legitimate · Review contracts #
Ask an LLM
“How do I report a suspicious contract as spam?”
“Can I check whether a contract is legitimate before interacting with it?”
Tell an agent
Review contracts {contracts}.
Classify {contracts} as spam or legitimate.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/moralis:moralis-utils-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

moralis-utils-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EVM Utils API
  version: '2.2'
servers:
- url: https://deep-index.moralis.io/api/v2.2
security:
- ApiKeyAuth: []
tags:
- name: Utils
paths:
  /{address}/function:
    post:
      security:
      - ApiKeyAuth: []
      summary: Run contract function
      description: Execute a read-only function from a contract’s ABI to retrieve data from the blockchain.
      tags:
      - Utils
      x-tag-sdk: utils
      operationId: runContractFunction
      requestBody:
        description: Body
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunContractDto'
      parameters:
      - in: query
        name: chain
        description: The chain to query
        required: false
        schema:
          $ref: '#/components/schemas/chainList'
      - in: path
        name: address
        description: The address of the contract
        required: true
        schema:
          type: string
          example: '0xdac17f958d2ee523a2206206994597c13d831ec7'
      - in: query
        name: function_name
        description: The function name of the contract
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Returns response of the function executed
          content:
            application/json:
              schema:
                type: string
      x-mcp-prompt: Enter the contract address, function name, and parameters to run the contract function. Use this when users want to query a smart contract or retrieve on-chain data.
  /web3/version:
    get:
      security:
      - ApiKeyAuth: []
      summary: Get API version
      description: Check the current version of the Moralis Web3 API.
      operationId: web3ApiVersion
      tags:
      - Utils
      x-tag-sdk: utils
      responses:
        '200':
          description: Get the current version of the Moralis Web3 API.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/web3version'
      x-mcp-prompt: Request the current Moralis Web3 API version. Use this when users ask about the API version or need to verify compatibility.
  /info/endpointWeights:
    get:
      security:
      - ApiKeyAuth: []
      summary: Get weights of endpoints
      description: View the cost and rate limits for each Moralis API endpoint.
      operationId: endpointWeights
      tags:
      - Utils
      x-tag-sdk: utils
      responses:
        '200':
          description: The cost and rate limit for each API endpoint.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/endpointWeights'
      x-mcp-prompt: Request the cost and rate limit details for Moralis API endpoints. Use this when users ask about API usage limits or need to optimize their requests.
  /contracts-review:
    post:
      security:
      - ApiKeyAuth: []
      summary: Review contracts
      description: Classify contracts as spam or legitimate based on their characteristics.
      tags:
      - Utils
      x-tag-sdk: utils
      operationId: reviewContracts
      requestBody:
        description: Body
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContractsReviewDto'
      parameters:
      - in: query
        name: chain
        description: The chain to query
        required: false
        schema:
          $ref: '#/components/schemas/chainList'
      responses:
        '200':
          description: Returns a message acknowledging the report
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Submission successful
      x-mcp-prompt: Provide the contract address to review its spam status. Use this when users ask if a contract is safe or want to verify a contract’s legitimacy.
components:
  schemas:
    chainList:
      type: string
      example: eth
      default: eth
      enum:
      - eth
      - '0x1'
      - sepolia
      - '0xaa36a7'
      - polygon
      - '0x89'
      - bsc
      - '0x38'
      - bsc testnet
      - '0x61'
      - avalanche
      - '0xa86a'
      - fantom
      - '0xfa'
      - cronos
      - '0x19'
      - arbitrum
      - '0xa4b1'
      - chiliz
      - '0x15b38'
      - chiliz testnet
      - '0x15b32'
      - gnosis
      - '0x64'
      - gnosis testnet
      - '0x27d8'
      - base
      - '0x2105'
      - base sepolia
      - '0x14a34'
      - optimism
      - '0xa'
      - polygon amoy
      - '0x13882'
      - linea
      - '0xe708'
      - moonbeam
      - '0x504'
      - moonriver
      - '0x505'
      - moonbase
      - '0x507'
      - linea sepolia
      - '0xe705'
      - flow
      - '0x2eb'
      - flow-testnet
      - '0x221'
      - ronin
      - '0x7e4'
      - ronin-testnet
      - '0x31769'
      - lisk
      - '0x46f'
      - lisk-sepolia
      - '0x106a'
      - pulse
      - '0x171'
      - sei-testnet
      - '0x530'
      - sei
      - '0x531'
      - monad
      - '0x8f'
    contractsReviewItem:
      required:
      - contract_address
      - reason
      - report_type
      - contract_type
      properties:
        contract_address:
          type: string
          description: The contract address
          example: '0x06012c8cf97bead5deae237070f9587f8e7a266d'
        reason:
          type: string
          description: The reason for the contract being spam
          example: 100
        report_type:
          type: string
          enum:
          - spam
          - not_spam
          description: This can be spam or not_spam
          example: spam
        contract_type:
          type: string
          enum:
          - ERC20
          - NFT
          description: This can be ERC20, or NFT
          example: ERC20
    RunContractDto:
      required:
      - abi
      properties:
        abi:
          type: array
          items:
            type: object
          description: The contract ABI
          example: []
        params:
          type: object
          description: The params for the given function
          example: {}
    web3version:
      required:
      - version
      properties:
        version:
          type: string
          description: The version of the API
          example: 1.0.0
    endpointWeights:
      required:
      - endpoint
      - path
      - price
      - rateLimitCost
      properties:
        endpoint:
          type: string
          description: endpoint
          example: endpointWeights
        path:
          type: string
          description: The path to the endpoint
          example: /info/endpointWeights
        rateLimitCost:
          type: string
          description: The number of hits the request counts towards rate limiting
          example: 1
        price:
          type: string
          description: The number of compute units the request counts towards billing
          example: 0
    ContractsReviewDto:
      required:
      - contracts
      properties:
        contracts:
          type: array
          maxItems: 25
          description: The contracts to be reported
          example:
          - contract_address: '0xa4991609c508b6d4fb7156426db0bd49fe298bd8'
            report_type: spam
            contract_type: ERC20
            reason: The contract contains shady code
          items:
            $ref: '#/components/schemas/contractsReviewItem'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      x-default: test
x-samples-languages:
- node
- javascript
- csharp
- curl
- python
x-mcp-blacklist:
- getNFTTraitsByCollectionPaginate
- getNFTContractMetadata
- getTokenPrice
- getNativeBalance
- getTokenAnalytics
- resyncNFTRarity
- syncNFTContract
- reSyncMetadata
- runContractFunction
- web3ApiVersion
- endpointWeights
- getWalletTokenBalances
- getTokenMetadataBySymbol
- getWalletTransactions
- getWalletTransactionsVerbose
- getTransaction
- getPairPrice
- reviewContracts
- getTrendingTokens
- getWalletTokenTransfers
- getWalletNFTTransfers
- getPairReserves
- getPairAddress
- getTokenStats
- resolveAddressToDomain
- resolveDomain
- getNFTFloorPriceByToken
- getBlockStats
- getNewTokensByExchange
- getBondingTokensByExchange
- getGraduatedTokensByExchange
- getTokenBondingStatus
- getAggregatedTokenPairStats
- getTokenCategories
- getRisingLiquidityTokens
- getBuyingPressureTokens
- getSolidPerformersTokens
- getExperiencedBuyersTokens
- getRiskyBetsTokens
- getBlueChipTokens
- getNFTOwners
- getNFTTokenIdOwners
- getContractNFTs
- getNFTTradesByToken
- getNFTTransfers