---
title: "Estimate Paymaster Fees"
method: POST
path: "/api/v2/tron/paymaster/estimate"
tags: ["Tron Paymaster"]
---

# Estimate Paymaster Fees

`POST /api/v2/tron/paymaster/estimate`

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

- `X-Network` 'testnet' | 'mainnet'
- `Authorization` string, required
- `Content-Type` 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data', required

## Request body

- object
  - `type` 'TRX' | 'TRC10' | 'TRC20' | 'TRC721', required — The type of transaction.
  - `from` string, required — The address to send the transaction from.
  - `to` string, required — The address to send the transaction to.
  - `contractaddress` string — The contract address of the token. This field is required when <code>type</code> is <code>TRC20</code> or <code>TRC721</code>.
  - `tokenid` number — The token id of the token. This field is required when <code>type</code> is <code>TRC721</code> or <code>TRC10</code>.
  - `amount` string, required — The amount to send.
  - `password` string — The password for the address. This field is required when <code>privatekey</code> is not present.
  - `privatekey` string — The private key of the sender.
  - `callback_url` string — The callback url to send the response to.

## Response `200`

Successfully estimated the fees

- object
  - `status` integer
  - `ok` boolean
  - `message` string
  - `data` object
    - `energy_consumption` integer
    - `bandwidth_consumption` integer
    - `paymaster_fee` number

---

[API](https://skmtc.net/chaingateway/apis/chaingateway-api-documentation.md) · [All operations](https://skmtc.net/chaingateway/apis/chaingateway-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaingateway/chaingateway-api-documentation/revisions/ddb709b4ade7/schema)
