Home

Estimate transaction fee

POST
https://zksync.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Sends a JSON-RPC request to estimate the fee for a transaction on zkSync.
The response includes gas-related values and fee estimation.

Body

application/json
jsonrpcstringrequired
methodstringrequired
paramsArray<object>required

Parameters:

  1. Call object with transaction details.
Show child attributes
fromstring

Sender address

tostring

Recipient address

datastring

Encoded transaction data

valuestring

Transaction value in hex

idintegerrequired

Response

200OK

Fee estimation successful

400Bad Request

Invalid parameters

500Internal Server Error

Internal server error