formo contracts command group manages smart contracts tracked by your project for decoding and event ingestion.
formo contracts list
List tracked contracts for the project.
Requires
contracts:read scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--page | number | ❌ | Page number, 1-indexed |
--size | number | ❌ | Page size |
formo contracts recommendations
List contracts your project already interacts with but has not added yet.
Requires
contracts:read scope on your API key.formo contracts get <chain> <address>
Get a tracked contract by chain ID and address.
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, for example 1 for Ethereum |
--name | string | ✅ | Human-readable contract name |
--abi | string | ✅ | Contract ABI as a JSON array string |
--events | string | ✅ | JSON array of ABI event objects to monitor, max 10 |
--start-block | number | ❌ | Optional start block |
--include-in-pipeline | boolean | ❌ | Whether to include this contract in the events pipeline |
Example
--abi is sent to the API as an ABI JSON string. --events is sent as an array of ABI event objects.formo contracts update <chain> <address>
Update a tracked contract.
Requires
contracts:write scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--name | string | ✅ | Updated contract name |
--abi | string | ✅ | Updated ABI as a JSON array string |
--events | string | ✅ | Updated JSON array of ABI event objects to monitor |
--start-block | number | ❌ | Optional start block |
--include-in-pipeline | boolean | ❌ | Whether to include this contract in the events pipeline |
formo contracts pipeline <chain> <address>
Toggle whether a tracked contract is included in the project events pipeline without resending its ABI.
Requires
contracts:write scope on your API key.| Option | Type | Required | Description |
|---|---|---|---|
--include-in-pipeline | boolean | ✅ | true to include the contract, false to exclude it |
formo contracts delete <chain> <address>
Remove a tracked contract.
Requires
contracts:write scope on your API key.