Parameters
- requestarrayREQUIRED
The request object which contains one of the following objects:
- BROADCASTED_INVOKE_TXN_V3object
The broadcasted invoke transaction v3 object which contains the following fields:
- typestringREQUIRED
The type of declare. It can take only one value - 'INVOKE'
- sender_addressstringREQUIRED
The sender address
- calldataarrayREQUIRED
The parameters passed to the constructor
- versionstringREQUIRED
The version of the transaction scheme
- signaturestringREQUIRED
The signature associated with the transaction
- noncestringREQUIRED
The nonce value
- resource_boundsobjectREQUIRED
The resource bounds for the transaction execution
- l1_gasobjectREQUIRED
The max amount and max price per unit of L1 gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- l1_data_gasobjectREQUIRED
The max amount and max price per unit of L1 data gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- l2_gasobjectREQUIRED
The max amount and max price per unit of L2 gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- tipstringREQUIRED
The tip for the transaction
- paymaster_dataarrayREQUIRED
The data needed to allow the paymaster to pay for the transaction in native tokens
- account_deployment_dataarrayREQUIRED
The data needed to deploy the account contract from which this tx will be initiated
- nonce_data_availability_modestringREQUIRED
The storage domain of the account's nonce (an account has a nonce per DA mode). It can be one of 'L1' or 'L2'
- fee_data_availability_modestringREQUIRED
The storage domain of the account's balance from which fee will be charged. It can be one of 'L1' or 'L2'
- BROADCASTED_DECLARE_TXN_V3object
The broadcasted declare transaction v3 object which contains the following fields:
- typestringREQUIRED
The type of declare. It can take only one value - 'DECLARE'
- sender_addressstringREQUIRED
The address of the account contract sending the declaration transaction
- compiled_class_hashstringREQUIRED
The hash of the Cairo assembly resulting from the Sierra compilation
- versionstringREQUIRED
The version of the transaction scheme
- signaturestringREQUIRED
The signature associated with the transaction
- noncestringREQUIRED
The nonce value
- contract_classobjectREQUIRED
The class to be declared
- sierra_programarrayREQUIRED
The list of Sierra instructions of which the program consists
- contract_class_versionstringREQUIRED
The version of the contract class object. Currently, the Starknet OS supports version 0.1.0
- entry_points_by_typeobjectREQUIRED
The entry points by type object which contains the following fields:
- CONSTRUCTORarrayREQUIRED
The list of Sierra instructions of which the program consists
- selectorstringREQUIRED
A unique identifier of the entry point (function) in the program
- function_idxintegerREQUIRED
The index of the function in the program
- EXTERNALarrayREQUIRED
The list of Sierra instructions of which the program consists
- selectorstringREQUIRED
A unique identifier of the entry point (function) in the program
- function_idxintegerREQUIRED
The index of the function in the program
- L1_HANDLERarrayREQUIRED
The list of Sierra instructions of which the program consists
- selectorstringREQUIRED
A unique identifier of the entry point (function) in the program
- function_idxintegerREQUIRED
The index of the function in the program
- abistring
The class ABI, as supplied by the user declaring the class
- resource_boundsobjectREQUIRED
The resource bounds for the transaction execution
- l1_gasobjectREQUIRED
The max amount and max price per unit of L1 gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- l1_data_gasobjectREQUIRED
The max amount and max price per unit of L1 data gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- l2_gasobjectREQUIRED
The max amount and max price per unit of L2 gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- tipstringREQUIRED
The tip for the transaction
- paymaster_dataarrayREQUIRED
The data needed to allow the paymaster to pay for the transaction in native tokens
- account_deployment_dataarrayREQUIRED
The data needed to deploy the account contract from which this tx will be initiated
- nonce_data_availability_modestringREQUIRED
The storage domain of the account's nonce (an account has a nonce per DA mode). It can be one of 'L1' or 'L2'
- fee_data_availability_modestringREQUIRED
The storage domain of the account's balance from which fee will be charged. It can be one of 'L1' or 'L2'
- BROADCASTED_DEPLOY_ACCOUNT_TXN_V3object
The broadcasted deploy account transaction v3 object which contains the following fields:
- typestringREQUIRED
The type of declare. It can take only one value - 'DEPLOY_ACCOUNT'
- versionstringREQUIRED
The version of the transaction scheme
- signaturestringREQUIRED
The signature associated with the transaction
- noncestringREQUIRED
The nonce value
- contract_address_saltstringREQUIRED
The salt for the address of the deployed contract
- constructor_calldataarrayREQUIRED
The parameters passed to the constructor
- class_hashstringREQUIRED
The hash of the deployed contract's class
- resource_boundsobjectREQUIRED
The resource bounds for the transaction execution
- l1_gasobjectREQUIRED
The max amount and max price per unit of L1 gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- l1_data_gasobjectREQUIRED
The max amount and max price per unit of L1 data gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- l2_gasobjectREQUIRED
The max amount and max price per unit of L2 gas used in this tx
- max_amountstringREQUIRED
The max amount of the resource that can be used in the tx
- max_price_per_unitstringREQUIRED
The max price per unit of this resource for this tx
- tipstringREQUIRED
The tip for the transaction
- paymaster_dataarrayREQUIRED
The data needed to allow the paymaster to pay for the transaction in native tokens
- nonce_data_availability_modestringREQUIRED
The storage domain of the account's nonce (an account has a nonce per DA mode). It can be one of 'L1' or 'L2'
- fee_data_availability_modestringREQUIRED
The storage domain of the account's balance from which fee will be charged. It can be one of 'L1' or 'L2'
- simulation_flagsarrayREQUIRED
It describes what parts of the transaction should be executed. It can take a value as 'SKIP_VALIDATE'
- block_idstringREQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)
Returns
- resultarray
Array of fee estimation results
- l1_data_gas_consumedstring
The amount of Layer 1 data gas consumed by the transaction
- l1_data_gas_pricestring
The price per unit of Layer 1 data gas (in WEI)
- l1_gas_consumedstring
The amount of Layer 1 execution gas consumed by the transaction
- l1_gas_pricestring
The price per unit of Layer 1 execution gas (in WEI)
- l2_gas_consumedstring
The amount of Layer 2 gas consumed by the transaction
- l2_gas_pricestring
The price per unit of Layer 2 gas (in WEI)
- overall_feestring
The total estimated fee for the transaction in WEI, computed using all gas consumed and respective prices
- unitstring
The unit in which the overall fee is expressed