Skip to content
Back to skills

Abi To Mcp Generator

ASecurity

Interact with Erc20 smart contract via read/write functions

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolstypescriptgit

Works with

  • mcp

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add Lord1Egypt/awesome-skill-forge --skill abi-to-mcp-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Abi To Mcp Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Abi To Mcp Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lord1egypt-abi-to-mcp-generator/badge)](https://www.skillsdirectory.com/skills/lord1egypt-abi-to-mcp-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: erc20-skill
version: "1.0.0"
description: Interact with Erc20 smart contract via read/write functions
---

## Workflow

1. **Setup**: Configure environment variables `RPC_URL`, `PRIVATE_KEY`, `CONTRACT_ADDRESS`
2. **Read**: Use read functions (view/pure) to query contract state
3. **Write**: Use write functions to modify contract state (requires gas)

## Constraints

| Constraint | Requirement |
|------------|-------------|
| RPC Provider | Any Ethereum JSON-RPC endpoint |
| Private Key | Must have contract permissions |
| Gas Limit | Adjust based on function complexity |
| Network | Must match contract deployment |

## Read Functions

### name

`name()`

**Returns:** string

**Example:**
```typescript
const result = await name({  });
```

### symbol

`symbol()`

**Returns:** string

**Example:**
```typescript
const result = await symbol({  });
```

### decimals

`decimals()`

**Returns:** uint8

**Example:**
```typescript
const result = await decimals({  });
```

### totalSupply

`totalSupply()`

**Returns:** uint256

**Example:**
```typescript
const result = await totalSupply({  });
```

### balanceOf

`balanceOf(address account)`

**Returns:** uint256

**Parameters:**

| `account` | address |

**Example:**
```typescript
const result = await balanceOf({ account: "0x... });
```

### allowance

`allowance(address owner, address spender)`

**Returns:** uint256

**Parameters:**

| `owner` | address |
| `spender` | address |

**Example:**
```typescript
const result = await allowance({ owner: "0x..., spender: "0x... });
```

## Write Functions

### transfer

`transfer(address to, uint256 amount)`

**Mutability:** nonpayable

**Parameters:**

| `to` | address |
| `amount` | uint256 |

**Example:**
```typescript
const tx = await transfer({ to: value, amount: value });
```

### approve

`approve(address spender, uint256 amount)`

**Mutability:** nonpayable

**Parameters:**

| `spender` | address |
| `amount` | uint256 |

**Example:**
```typescript
const tx = await approve({ spender: value, amount: value });
```

### transferFrom

`transferFrom(address from, address to, uint256 amount)`

**Mutability:** nonpayable

**Parameters:**

| `from` | address |
| `to` | address |
| `amount` | uint256 |

**Example:**
```typescript
const tx = await transferFrom({ from: value, to: value, amount: value });
```

### mint

`mint(address to, uint256 amount)`

**Mutability:** nonpayable

**Parameters:**

| `to` | address |
| `amount` | uint256 |

**Example:**
```typescript
const tx = await mint({ to: value, amount: value });
```

### burn

`burn(uint256 amount)`

**Mutability:** nonpayable

**Parameters:**

| `amount` | uint256 |

**Example:**
```typescript
const tx = await burn({ amount: value });
```

## Events

### Transfer

**Signature:** `Transfer([indexed] `address from`, [indexed] `address to`, `uint256 value`)`

### Approval

**Signature:** `Approval([indexed] `address owner`, [indexed] `address spender`, `uint256 value`)`

### Built with ❤️ by JustinXai ABI-to-MCP. Get the generator: https://github.com/JustinXai/abi-to-mcp

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…