Skip to main content
The 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


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

Boolean flags do not read a following value. Write --include-in-pipeline to enable, and --include-in-pipeline=false or --no-include-in-pipeline to disable. --include-in-pipeline false sets it to true and leaves false as a stray argument.

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

--include-in-pipeline is a boolean flag: pass --include-in-pipeline=false or --no-include-in-pipeline to disable it. See boolean flags above.

formo contracts delete <chain> <address>

Remove a tracked contract.
Requires contracts:write scope on your API key.
Removing a tracked contract is permanent. Historical events already captured are not deleted, but new events will no longer be tracked.