Coinset
UsageFees

get_fee_estimate

Estimates the fee for a given spend_bundle.

POST
/get_fee_estimate
/get_fee_estimate

Request Body

application/jsonRequired

The spend bundle

curl -X POST "https://api.coinset.org/get_fee_estimate" \
  -H "Content-Type: application/json" \
  -d '{
    "spend_bundle": {
      "aggregated_signature": "0xa5e5ea1f5ae2335a72fe0a7ed7ca39e8f142e2e1f6e37a348482290e88eb9cea2d973acf6145e34d0afeee7ba22f99850641e21a549b2c092bb49aa393acd938825bccca9413c1a268ba44367bc8433cd0fc0eb82e87bebe23817aa695bdb566",
      "coin_spends": [
        {
          "coin": {
            "amount": 1750000000000,
            "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000004082",
            "puzzle_hash": "0x94c6db00186900418ef7c1f05e127ee1a647cbe6e514ec3bc57acb7bbe6dfb10"
          },
          "puzzle_reveal": "0xff02ffff01ff02ffff01ff02ffff03ff0bffff01ff02ffff03ffff09ff05ffff1dff0bffff1effff0bff0bffff02ff06ffff04ff02ffff04ff17ff8080808080808080ffff01ff02ff17ff2f80ffff01ff088080ff0180ffff01ff04ffff04ff04ffff04ff05ffff04ffff02ff06ffff04ff02ffff04ff17ff80808080ff80808080ffff02ff17ff2f808080ff0180ffff04ffff01ff32ff02ffff03ffff07ff0580ffff01ff0bffff0102ffff02ff06ffff04ff02ffff04ff09ff80808080ffff02ff06ffff04ff02ffff04ff0dff8080808080ffff01ff0bffff0101ff058080ff0180ff018080ffff04ffff01b0aec9c2e5984fe928406abca942d55ec6b56340af8315bfefa55889dbaade669b9fd3f330af2af44c2a0626d383e64757ff018080",
          "solution": "0xff80ffff01ffff33ffa03fa549a708302b401c45cf387f8f03b4f76b7c9eabf567bea974f61dedf721e0ff840098968080ffff33ffa055b9fe4c9ce0cef8ad574bf5a9158dc0db7848b96be1a98ab2806d8f0a376a08ff860197738845808080ff8080"
        }
      ]
    },
    "target_times": [
      0
    ],
    "spend_count": 1
  }'

OK

{
  "estimates": [
    0
  ],
  "target_times": [
    0
  ],
  "current_fee_rate": 0,
  "mempool_size": 0,
  "mempool_fees": 0,
  "mempool_max_size": 0,
  "num_spends": 0,
  "full_node_synced": true,
  "peak_height": 0,
  "last_peak_timestamp": 0,
  "last_block_cost": 0,
  "fees_last_block": 0,
  "fee_rate_last_block": 0,
  "last_tx_block_height": 0,
  "node_time_utc": 0,
  "success": true,
  "error": "string"
}