Skip to content
Alchemy Logo

starknet_estimateFee

POST
/{apiKey}

Estimates the resources required by a given sequence of transactions when applied on a given state. If one of the transactions reverts or fails due to any reason (e.g., validation failure or an internal error), a TRANSACTION_EXECUTION_ERROR is returned. Fees for account transactions are expressed in fri.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

object[]required

The transaction to estimate

A sequence of transactions to estimate, running each transaction on the state resulting from applying all the previous ones

A transaction that has been broadcasted to the network

enum[]required

Describes what parts of the transaction should be executed

object or enumrequired

The hash of the requested block, or number (height) of the requested block, or a block tag, for the block referencing the state or call the transaction on.

Block hash, number or tag

Responses

200

The fee estimations

A sequence of fee estimations where the i'th estimate corresponds to the i'th transaction

Was this page helpful?