Ankr · Arazzo Workflow

Ankr Wallet Portfolio Snapshot

Version 1.0.0

Read a wallet's token balances and then its recent ERC-20 transfer history.

1 workflow 1 source API 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

ankr

Workflows

wallet-portfolio-snapshot
Pull a wallet's balances and then its token transfer history.
Resolves the current token balances for a wallet, then retrieves the ERC-20 transfer history for the same wallet over the supplied block window.
2 steps inputs: blockchain, fromBlock, onlyWhitelisted, pageSize, toBlock, walletAddress outputs: assets, totalBalanceUsd, transfers
1
getBalances
Retrieve the native and ERC-20 balances held by the wallet across the supplied chains, including USD valuation.
2
getTransfers
Retrieve the ERC-20 transfer history for the same wallet over the supplied block window.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Ankr Wallet Portfolio Snapshot
  summary: Read a wallet's token balances and then its recent ERC-20 transfer history.
  description: >-
    Builds a portfolio snapshot for a wallet by first pulling its native and
    ERC-20 balances across the supplied chains with ankr_getAccountBalance, then
    pulling the wallet's recent ERC-20 transfer history with ankr_getTokenTransfers
    so a caller can see both current holdings and the movements that produced them.
    Each step is written out inline as a JSON-RPC call so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: tokenApi
  url: ../openapi/ankr-token-api-openapi.yml
  type: openapi
workflows:
- workflowId: wallet-portfolio-snapshot
  summary: Pull a wallet's balances and then its token transfer history.
  description: >-
    Resolves the current token balances for a wallet, then retrieves the ERC-20
    transfer history for the same wallet over the supplied block window.
  inputs:
    type: object
    required:
    - walletAddress
    - blockchain
    properties:
      walletAddress:
        type: string
        description: The wallet address to inspect (0x-prefixed EVM address).
      blockchain:
        type: array
        items:
          type: string
        description: One or more chain names (e.g. ["eth","polygon"]).
      onlyWhitelisted:
        type: boolean
        description: Restrict balances to whitelisted tokens only.
        default: true
      fromBlock:
        type: integer
        description: First block of the transfer history window.
      toBlock:
        type: integer
        description: Last block of the transfer history window.
      pageSize:
        type: integer
        description: Maximum number of transfers to return per page.
  steps:
  - stepId: getBalances
    description: >-
      Retrieve the native and ERC-20 balances held by the wallet across the
      supplied chains, including USD valuation.
    operationId: ankrGetAccountBalance
    requestBody:
      contentType: application/json
      payload:
        jsonrpc: "2.0"
        id: 1
        method: ankr_getAccountBalance
        params:
          walletAddress: $inputs.walletAddress
          blockchain: $inputs.blockchain
          onlyWhitelisted: $inputs.onlyWhitelisted
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      totalBalanceUsd: $response.body#/result/totalBalanceUsd
      assets: $response.body#/result/assets
  - stepId: getTransfers
    description: >-
      Retrieve the ERC-20 transfer history for the same wallet over the supplied
      block window.
    operationId: ankrGetTokenTransfers
    requestBody:
      contentType: application/json
      payload:
        jsonrpc: "2.0"
        id: 1
        method: ankr_getTokenTransfers
        params:
          blockchain: $inputs.blockchain
          address:
          - $inputs.walletAddress
          fromBlock: $inputs.fromBlock
          toBlock: $inputs.toBlock
          pageSize: $inputs.pageSize
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      result: $response.body#/result
  outputs:
    totalBalanceUsd: $steps.getBalances.outputs.totalBalanceUsd
    assets: $steps.getBalances.outputs.assets
    transfers: $steps.getTransfers.outputs.result

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/ankr-wallet-portfolio-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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