Skip to main content
PUT
Update contract

Authorizations

Authorization
string
header
required

Workspace API key (e.g. formo_xxx). Create one in the Formo dashboard under Team Settings > API.

Headers

Idempotency-Key
string

Optional unique value (e.g. a UUID v4) that lets you safely retry POST/PUT/PATCH/DELETE requests. The first request runs normally; subsequent requests with the same key replay the stored response (status + body) for 24 hours, so retries can never double-create or double-charge. Two concurrent requests with the same key return 409 IDEMPOTENCY_IN_PROGRESS. Generate a fresh key per logical operation.

Maximum string length: 255

Path Parameters

chain
string
required
address
string
required

Body

application/json
address
string
required
chain
integer
required
name
string
required
abi
string
required
events
object[]
required
Maximum array length: 10
start_block
integer

Block height recorded on the contract. Omit to preserve the stored value. Note: the events pipeline currently opens every source at the chain head, so this does not backfill historical events.

Required range: 0 <= x <= 9007199254740991
include_in_pipeline
boolean

Whether to include this contract in the project contract-events pipeline. Omit to preserve the stored value; send false to keep the ABI cached for transaction decoding without indexing events.

Response

Contract updated

name
string
required
chain
integer
required
address
string
required
abi
string
required
events
object[]
required
include_in_pipeline
boolean
required

Whether the contract is configured for the project contract-events pipeline. This is the desired membership, not live deployment state: use the deploy sidecar on the contract list to see what is currently deployed.

start_block
integer