Query Transaction Avarage Fee

Query avarage blockchain fee within latest N blocks.

Request

POST /v1/sofa/wallets/{WALLET_ID}/autofee

Post Body

Field Type Note Description
block_num int optional, default 1, range 1~30 Get avarage blockchain fee within latest N blocks

Response Body

Field Type Description
auto_fee string Mining fee denominated in the smallest cryptocurrency unit

Sample Request

API

/v1/sofa/wallets/1/autofee

Post Body

{
  "block_num": 1
}

Response Body

{
  "auto_fee": "1"
}

Sample cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"block_num":1}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/autofee