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* state();
A pointer to the state if it holds type T, otherwise nullptr.