private void OrganizeTransaction(Transaction transaction, Action <ErrorCode> handler) { GCHandle handlerHandle = GCHandle.Alloc(handler); IntPtr handlerPtr = (IntPtr)handlerHandle; ChainNative.kth_chain_async_organize_transaction(nativeInstance_, handlerPtr, transaction.NativeInstance, internalResultHandler_); }