private void FetchBlockHeaderByHeight(UInt64 height, Action <ErrorCode, Header, UInt64> handler) { GCHandle handlerHandle = GCHandle.Alloc(handler); IntPtr handlerPtr = (IntPtr)handlerHandle; ChainNative.chain_fetch_block_header_by_height(nativeInstance_, handlerPtr, height, internalFetchBlockHeaderHandler_); }