GetEstimatedFee()

Summary

Route
Type
Example

Monitor/GetEstimatedFee

POST

http://176.113.80.7:62000/api/monitor/getestimatedfee

Description

Get transaction fee.

Request

Request Structure

{

// Parameters common for all requests

// Wallet address
  "networkAlias": string, // Mainnet or Testnet
  "transactionSize": <size>,
  "trType": a // (a = 0 - normal, 1 - token transfer, 2 - contract deploy, 3 - contract execute)

}

Request Parameters

int: transactionSize - Transaction size in bytes

int: trType- Transaction type. 0 - normal, 1 - token transfer, 2 - contract deploy, 3 - contract execute

Response

JSON output depends on the request type and its success.

If there’s an error, request returns to the node basic Result:

  • Success: False

  • Message:

If successful, requested information is returned.

Response Structure

Example Code

Python

Last updated