token_allowance

Pack: alchemy-eth · Endpoint: https://gateway.pipeworx.io/alchemy-eth/mcp

ERC-20 allowance.

Parameters

NameTypeRequiredDescription
contractstringyes
ownerstringyes
spenderstringyes
chainstringno

Example call

Arguments

{
  "contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "owner": "0x1234567890123456789012345678901234567890",
  "spender": "0x0987654321098765432109876543210987654321"
}

curl

curl -X POST https://gateway.pipeworx.io/alchemy-eth/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"token_allowance","arguments":{"contract":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","owner":"0x1234567890123456789012345678901234567890","spender":"0x0987654321098765432109876543210987654321"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('token_allowance', {
  "contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "owner": "0x1234567890123456789012345678901234567890",
  "spender": "0x0987654321098765432109876543210987654321"
});

Response shape

FieldTypeDescription
allowancestringAllowance amount in wei as hex string
Full JSON Schema
{
  "type": "object",
  "properties": {
    "allowance": {
      "type": "string",
      "description": "Allowance amount in wei as hex string"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "alchemy-eth": {
      "url": "https://gateway.pipeworx.io/alchemy-eth/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 9, 2026