Skip to main content

/estimateFee REST API Endpoint

Estimate fees required for query processing. body, init-code and init-data accepted in serialized format (b64-encoded).

Updated on
Oct 23, 2024

/estimateFee REST API Endpoint

Body Parameters

address
string
REQUIRED
The address in any format
body
string
REQUIRED
A b64-encoded cell with message body
init_code
string
A b64-encoded cell with init-code
init_data
string
A b64-encoded cell with init-data
ignore_chksig
boolean
If true during test query processing assume that all chksig operations return true

Returns

ok
boolean
Indicates whether the response was successful
result
object
The result object which contains the following fields:
@type
string
Specifies the type of query result
source_fees
object
The source_fees object which contains the following fields:
@type
string
Specifies the type of fee information
in_fwd_fee
integer
The inbound forwarding fee for the transaction
storage_fee
integer
The storage fee associated with the transaction
gas_fee
integer
The gas fee for processing the transaction
fwd_fee
integer
The forwarding fee for the transaction
destination_fees
array
An array for fees at the destination
@extra
string
Additional metadata related to the query
Request
1
curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/estimateFee' \
2
--header 'accept: application/json' \
3
--header 'Content-Type: application/json' \
4
--data '{
5
"address": "EQDJlZqZfh1OQ4PY2ze4bSEBznjc8fGzkE2YiP5XLvDv1M6u",
6
"body": "te6ccgECEAEAAigAART/APSkE/S88sgLAQIBIAIDAgFIBAUB9vLUgwjXGNEh+QDtRNDT/9Mf9AT0BNM/0xXR+CMhoVIguY4SM234IySqAKESuZJtMt5Y+CMB3lQWdfkQ8qEG0NMf1NMH0wzTCdM/0xXRUWi68qJRWrrypvgjKqFSULzyowT4I7vyo1MEgA30D2+hmdAk1yHXCgDyZJEw4g4AeNAg10vAAQHAYLCRW+EB0NMDAXGwkVvg+kAw+CjHBbORMODTHwGCEK5C5aS6nYBA1yHXTPgqAe1V+wTgMAIBIAYHAgJzCAkCASAMDQARrc52omhrhf/AAgEgCgsAGqu27UTQgQEi1yHXCz8AGKo77UTQgwfXIdcLHwAbuabu1E0IEBYtch1wsVgA5bi/Ltou37IasJAoQJsO1E0IEBINch9AT0BNM/0xXRBY4b+CMloVIQuZ8ybfgjBaoAFaESuZIwbd6SMDPikjAz4lIwgA30D2+hntAh1yHXCgCVXwN/2zHgkTDiWYAN9A9voZzQAdch1woAk3/bMeCRW+JwgB/lMJgA30D2+hjhPQUATXGNIAAfJkyFjPFs+DAc8WjhAwyCTPQM+DhAlQBaGlFM9A4vgAyUA5gA30FwTIy/8Tyx/0ABL0ABLLPxLLFcntVPgPIdDTAAHyZdMCAXGwkl8D4PpAAdcLAcAA8qX6QDH6ADH0AfoAMfoAMYBg1yHTAAEPACDyZdIAAZPUMdGRMOJysfsA",
7
"ignore_chksig": true
8
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free