Home

Get contract metadata.

GET
https://maticbook.nownodes.io/api/v2/contract/{contract}

Authorizations

ApiKeyAuthApiKeyAuth

api-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}, so clients can refresh ERC-4626 vault data (protocols=erc4626) and fiat pricing without reloading full account info. The endpoint did not exist in 0.5.0. EVM chains only - applicable on Polygon.

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.

Parameters

contractstringrequiredpath

Smart contract address.

currencystringquery

Secondary currency code for rates.

protocolsArray<string>query

Optional protocol enrichments, comma-separated or repeated.

Response

200OK

HTTP 200 Polygon Blockbook response for getContractInfo.

400Bad Request

Domain or validation error. JSON body {"error": "..."}.

401Unauthorized

Unauthorized: missing or invalid api-key header. The NOWNodes gateway returns the plain-text body "Unknown API_key".

405Method Not Allowed

Method Not Allowed: gateway-level response for unknown routes.

500Internal Server Error

Internal Server Error. JSON body {"error":"Internal server error"}.