network

Estimate network fees

Given a HAPI transaction, estimate the network fees in tinycents.

post/api/v1/network/fees

Query parameters

mode'INTRINSIC' | 'STATE'

Estimate solely based on the transaction's inherent properties or use network state.

Estimate solely based on the transaction's inherent properties or use network state.

Response

OK

totalinteger required

The sum of the network, node, and service subtotals in tinycents.

Example response

{
  "network": {
    "multiplier": 2,
    "subtotal": 1200
  },
  "node": {
    "base": 1000,
    "extras": [
      {
        "charged": 1,
        "count": 2,
        "fee_per_unit": 100,
        "included": 1,
        "name": "Signatures",
        "subtotal": 100
      }
    ]
  },
  "service": {
    "base": 1000,
    "extras": [
      {
        "charged": 1,
        "count": 2,
        "fee_per_unit": 100,
        "included": 1,
        "name": "Signatures",
        "subtotal": 100
      }
    ]
  },
  "total": 1000
}

Changes