Home

Returns fee estimates for block targets.

POST
wss://bsc-blockbook.nownodes.io/wss/{apiKey}

Returns one fee estimate per requested confirmation target (in blocks): feePerTx and feePerUnit in wei and the gas feeLimit.

Body

application/json

Blockbook WebSocket request for estimateFee, sent as a text message over the WebSocket connection.

idstringrequired

Request identifier. Subscription notifications are delivered with the same id as the subscribe request.

methodstringrequired
paramsobjectrequired
Show child attributes
blocksArray<integer>required

Confirmation targets in blocks.

Parameters

apiKeystringrequiredpath

NOWNodes API key. Connect to wss://bsc.nownodes.io/wss/{apiKey}. The WebSocket handshake returns HTTP 403 when the key is missing or invalid.

Response

200OK

Response delivered over the WebSocket connection as {"id": ..., "data": ...}. Errors are returned inside data.error; see BlockbookError.

403Forbidden

Forbidden. The WebSocket handshake was rejected: the API key is missing or invalid (verified live: wrong and missing keys both return HTTP 403).