Skip to main content
GET
Reads the contract again and compares it with what the import record holds. This is the only endpoint that refreshes the chain-read half of a record. Name, symbol, decimals, supply and metadata are otherwise frozen at import time. It is a GET that writes. The refreshed values are persisted when the framework still matches, which is why it counts against the write rate limit rather than the read one.

Path Parameters

string
required
The imported contract address.

Response Fields

object

When the framework has changed

A contract can start answering for a different standard than it did at import, usually because it was upgraded behind a proxy. When that happens frameworkMatches is false and persisted is false. The record is left exactly as it was, and onchain shows what the contract says now. Nothing is silently rewritten, because a framework change alters what the token is and what can be done with it, and that is a decision rather than a sync. Compare onchain.framework against storedFramework to see it. To act on it, remove the import and add it again.
A market already deployed against this token is not affected by anything here. It reads the chain directly and holds its own record of the collateral. Refreshing an import does not reconcile a live lending market, and a framework change under a deployed market is a situation to handle deliberately.

Error Codes