The readyState read-only property of the IDBRequest interface returns the state of the request.
readyState
MDN Reference