{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "The latest nonce values used by an account by inspecting the mempool, microblock transactions, and anchored transactions",
  "title": "AddressNonces",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "last_mempool_tx_nonce",
    "last_executed_tx_nonce",
    "possible_next_nonce",
    "detected_missing_nonces"
  ],
  "properties": {
    "last_mempool_tx_nonce": {
      "type": "integer",
      "nullable": true,
      "description": "The latest nonce found within mempool transactions sent by this address. Will be null if there are no current mempool transactions for this address."
    },
    "last_executed_tx_nonce": {
      "type": "integer",
      "nullable": true,
      "description": "The latest nonce found within transactions sent by this address, including unanchored microblock transactions. Will be null if there are no current transactions for this address."
    },
    "possible_next_nonce": {
      "type": "integer",
      "description": "The likely nonce required for creating the next transaction, based on the last nonces seen by the API. This can be incorrect if the API's mempool or transactions aren't fully synchronized, even by a small amount, or if a previous transaction is still propagating through the Stacks blockchain network when this endpoint is called."
    },
    "detected_missing_nonces": {
      "type": "array",
      "description": "Nonces that appear to be missing and likely causing a mempool transaction to be stuck.",
      "items": {
        "type": "integer"
      }
    }
  }
}
