---
title: "estimateenergy"
method: POST
path: "/node/v1/tron/mainnet/{apiKey}/wallet/estimateenergy"
---

# estimateenergy

`POST /node/v1/tron/mainnet/{apiKey}/wallet/estimateenergy`

Estimate the energy required for the successful execution of smart contract transactions or deploying a contract.

## Path parameters

- `apiKey` string, required

## Request body

- object
  - `owner_address` string, required — Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.
  - `contract_address` string, required — Smart contract address. If visible=true, use base58check format, otherwise use hex format.
  - `function_selector` string — Function call, must not be left blank.
  - `parameter` string — Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.
  - `visible` boolean, required — Optional.Whehter the address is in base58 format.

## Response `200`

200

- object
  - `result` object
    - `result` boolean
  - `energy_required` integer

---

[API](https://skmtc.net/zan/apis/zan-getnftmetadata.md) · [All operations](https://skmtc.net/zan/apis/zan-getnftmetadata/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zan/zan-getnftmetadata/versions/be8fa2338895/schema)
