Get the current fee

What one action costs right now. The price has two parts: a fixed base fee, and a moving part that follows what it currently costs the network to prove and settle work. Both are given in DUAL and in wei, alongside the token price they were worked out from. Quote this before committing a user to a price. The price moves, so read it fresh rather than caching it for long. Open to everyone. No sign-in needed.

GET
/public/network/fees

Response Body

application/json

application/json

application/json

curl -X GET "https://api.dual.network/public/network/fees"
{
  "token_price": "0.041233000000",
  "base_fee": "0.010000",
  "base_fee_wei": "242527830000000",
  "dynamic_fee": "0.004000",
  "dynamic_fee_wei": "97011130000000",
  "total_fee": "0.014000",
  "total_fee_wei": "339538960000000"
}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}
{
  "code": 13,
  "message": "internal error"
}