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); it did not exist in 0.5.0. Contract indexing is an EVM-chains feature and is not applicable to the Verge UTXO chain. Documented as it exists in 0.6.0.
Returns indexed token/contract metadata and optional current protocol enrichments such as ERC4626.
Load estimate: Medium; indexed metadata is cheap, but optional protocol enrichment can add backend RPC calls and token metadata lookups (EVM chains only).
live-verified behavior:
- Live on the deployed 0.6.0 XVG build: the gateway does not route this path to the contract handler - /api/v2/contract/{anything} falls through to the index handler and answers HTTP 200 with the Blockbook status object (the same body served at /api/). The live capture below is that status body, shown with the corrected decimals value 6.
Parameters
contractstringrequiredpathSmart contract address.
currencystringquerySecondary currency code for rates.
protocolsArray<string>queryOptional protocol enrichments, comma-separated or repeated.
Response
HTTP 200 Verge 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).