Get contract metadata.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Added in Blockbook v0.6.0: single-contract lookup endpoint /api/v2/contract/{contract} with optional ERC-4626 vault enrichment (protocols=erc4626) and fiat pricing, so clients can refresh contract data without reloading full account info; it did not exist in 0.5.0. Ethereum-type networks only - not applicable on the Komodo UTXO chain (live on KMD: the path falls through to the /api/ index handler and returns the status body).
Returns indexed token/contract metadata and optional current protocol enrichments such as ERC4626.
blockHeight reflects the indexer's best block at request time. ERC4626 fields under protocols.erc4626 are fetched through JSON-RPC calls pinned to that exact blockHeight, so the ERC4626 values are a consistent snapshot. If a vault is detected but the underlying asset metadata cannot be resolved, protocols.erc4626 contains error and omits asset; callers must not derive fiat rates or human-unit exchange rates from such a partial response.
Load estimate: Medium; indexed metadata is cheap, but optional protocol enrichment can add backend RPC calls and token metadata lookups.
live-verified behavior:
- Blockbook 0.6.0 endpoint (EVM chains only; not applicable on Komodo). Live on the deployed pre-0.6.0 build: the path falls through to the /api/ index handler and returns the status body.
Parameters
contractstringrequiredpathSmart contract address.
currencystringquerySecondary currency code for rates.
protocolsArray<string>queryOptional protocol enrichments, comma-separated or repeated.
Response
HTTP 200 Komodo Blockbook response for getContractInfo.
Domain or validation error. live-verified: JSON body {"error": "..."} (unknown block/transaction, invalid address, malformed broadcast hex, missing filter parameters).
Unauthorized: missing or invalid api-key header. The NOWNodes gateway returns the plain-text body "Unknown API_key".
Method Not Allowed: gateway-level response for unknown routes (and for the v1 GET broadcast route on this instance).
Internal Server Error. live-verified on the deployed instance: JSON body {"error":"Internal server error"} (observed on /api/rawtx and invalid XPUB lookups).