Get transaction fee priorities

Retrieves estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.

GET
/extended/v2/mempool/fees

Response Body

Default Response

TypeScript Definitions

Use the response body type in TypeScript.

allobject
token_transfer?object
contract_call?object
smart_contract?object

Default Response

TypeScript Definitions

Use the response body type in TypeScript.

errorstring
message?string
[key: string]any
curl -X GET "https://api.hiro.so//extended/v2/mempool/fees"
fetch("https://api.hiro.so//extended/v2/mempool/fees")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.hiro.so//extended/v2/mempool/fees"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.hiro.so//extended/v2/mempool/fees"

response = requests.request("GET", url)

print(response.text)
{
  "all": {
    "no_priority": 0,
    "low_priority": 0,
    "medium_priority": 0,
    "high_priority": 0
  },
  "token_transfer": {
    "no_priority": 0,
    "low_priority": 0,
    "medium_priority": 0,
    "high_priority": 0
  },
  "contract_call": {
    "no_priority": 0,
    "low_priority": 0,
    "medium_priority": 0,
    "high_priority": 0
  },
  "smart_contract": {
    "no_priority": 0,
    "low_priority": 0,
    "medium_priority": 0,
    "high_priority": 0
  }
}
{
  "error": "string",
  "message": "string"
}