private void GetBlockHeight(byte[] blockHash, Action <ErrorCode, UInt64> handler) { var managedHash = new hash_t { hash = blockHash }; IntPtr contextPtr = CreateContext(handler, managedHash); ChainNative.kth_chain_async_block_height(nativeInstance_, contextPtr, managedHash, internalGetBlockHeightHandler_); }