Contracts

Update contract

put/v0/contracts/{chain}/{address}

Request

  • Base URL: https://api.formo.so
  • URL: https://api.formo.so/v0/contracts/{chain}/{address}
  • Auth: HTTP bearer

Path parameters

chainstring required
addressstring required

Headers

Idempotency-Keystring

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.

Request body

addressstring required
chaininteger required
namestring required
abistring required
eventsobject[] required
start_blockinteger

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.

include_in_pipelineboolean

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

namestring required
chaininteger required
addressstring required
start_blockinteger
abistring required
include_in_pipelineboolean 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.

Changes

No recorded changes to this operation across all 1 revision of this API.