Home

Get contract metadata.

GET
https://ethw-blockbook.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 (PR #1477): single-contract lookup endpoint /api/v2/contract/{contract}, so clients can refresh ERC-4626 vault data (protocols=erc4626, PRs #1431/#1502) and fiat pricing without reloading full account info. The endpoint did not exist in 0.5.0. EVM chains only - applicable on EthereumPoW. Live-verified on the ETHW gateway, which load-balances two pre-0.6.0 builds: the newer instance (devel 039346c, built 2026-05-30) answers real indexed ERC20 metadata (the Tether USD contract captured live), while the dominant 2022 build (devel 89431f5) does not route the path and falls through to the /api/ index handler, returning the status body (observed for ~11 of 12 consecutive calls).

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; applicable on EthereumPoW). Live on the deployed pre-0.6.0 build: the path falls through to the /api/ index handler and returns the status body.

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 EthereumPoW Blockbook response for getContractInfo.

400Bad Request

Domain or validation error. live-verified: JSON body {"error": "..."} (unknown block/transaction, invalid address, malformed broadcast hex, missing filter parameters).

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 (and for the v1 GET broadcast route on this instance).

500Internal Server Error

Internal Server Error. live-verified on the deployed instance: JSON body {"error":"Internal server error"} (observed on /api/rawtx and invalid XPUB lookups).