token_allowance
Pack: alchemy-eth · Endpoint: https://gateway.pipeworx.io/alchemy-eth/mcp
ERC-20 allowance.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contract | string | yes | |
owner | string | yes | |
spender | string | yes | |
chain | string | no |
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
| Field | Type | Description |
|---|---|---|
allowance | string | Allowance 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.