\mainlanguage[en]

\def\moduleid{TEST}

\def\transaction{\dodoubleempty\dotransaction}
\def\dotransaction[#1][#2]{%
    \getparameters[tr][module=\moduleid,#2]%
    \global\def\refname{tr:\trmodule:#1}%
    \doifreferencefoundelse{\refname}{}{\global\def\refname{tr::#1}}%
    \about[\refname] (I want to go to: \refname)%
}

\starttext

\section[tr::Name]{Testsection}

Test.

\section{Reference}

\transaction[Name]

\stoptext