formo contracts command group lets you manage the smart contracts tracked by your project. Register new contracts, update their ABIs and event configurations, and remove contracts you no longer need.
formo contracts list
List all tracked contracts for the project.
Requires
contracts:read scope on your API key.formo contracts create
Register a new smart contract to track.
Requires
contracts:write scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--address | string | ✅ | Contract address (0x…) |
--chain | number | ✅ | Chain ID (e.g. 1 for Ethereum, 137 for Polygon) |
--name | string | ✅ | Human-readable contract name |
--abi | string | ✅ | Contract ABI as a JSON string |
--events | string | ✅ | Events configuration as a JSON string |
Examples
formo contracts update
Update a tracked contract. The contract is identified by chain ID and address.
Requires
contracts:write scope on your API key.Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
chain | string | ✅ | Chain ID |
address | string | ✅ | Contract address (0x…) |
Options
| Option | Type | Required | Description |
|---|---|---|---|
--name | string | ✅ | Updated contract name |
--abi | string | ✅ | Updated ABI as a JSON string |
--events | string | ✅ | Updated events configuration as a JSON string |
Examples
formo contracts delete
Remove a tracked contract. The contract is identified by chain ID and address.
Requires
contracts:write scope on your API key.Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
chain | string | ✅ | Chain ID |
address | string | ✅ | Contract address (0x…) |