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