v1
latestOpenAPI 3.0.32026-07-1320201.0 MBEstimate Paymaster Fees
This endpoint is used to estimate the fees for a paymaster request.
With the creation of a paymaster request you need to pay for the energy and bandwidth that is needed to process the transaction. To simplify the process of calculating the fees, we provide this endpoint to estimate the fees for a transaction. The ressouces wich a transaction needs to be procesed are energy and bandwidth. Bandwidth is needed to send the transaction to the network and energy is needed to execute the transaction.
Therefore it differs between the transaction types and the smart contracts how much energy and bandwidth is needed.
After setteling yor paymaster request the fees will be deducted from your credit balance. If you don't have enough funds on your balance, the request will fail.
Headers
Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.
Bearer token for authorization. Required for authenticated endpoints.
The MIME type of the request body.
Request body
Example request
{
"type": "TRC20",
"from": "TLkkCeNdJKPNUwucdro84WjswkzM62LCTH",
"to": "TUwmZghA7u2GxGxKaxM1mkCmsTF4wHs4vp",
"contractaddress": "0x708c419d1b9ae123047f70787a503b6ba51e048a27966e0220cc5feXXXXXXXXX",
"tokenid": 1,
"amount": "1",
"password": "your_password",
"privatekey": "708c419d1b9ae123047f70787a503b6ba51e048a27966e0220cc5feXXXXXXXXX",
"callback_url": "https://example.com/callback"
}Response
Successfully estimated the fees
Example response
{
"status": 200,
"ok": true,
"message": "Successfully estimated the fees",
"data": {
"energy_consumption": 32000,
"bandwidth_consumption": 368,
"paymaster_fee": 0.15
}
}