Return a pointer to the current state if it is of type T, otherwise nullptr.
Declared in <wallet/transaction.h>
<wallet/transaction.h>
template<typename T> T const* state() const;
A pointer to the state if it holds type T, otherwise nullptr.