BlockServiceBase constructor
BlockServiceBase()
Implementation
BlockServiceBase() {
$addMethod($grpc.ServiceMethod<$0.GetBlockByIdRequest, $0.BlockResponse>(
'getBlockById',
getBlockById_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.GetBlockByIdRequest.fromBuffer(value),
($0.BlockResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$0.GetBlockByHeightRequest, $0.BlockResponse>(
'getBlockByHeight',
getBlockByHeight_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.GetBlockByHeightRequest.fromBuffer(value),
($0.BlockResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetBlockByDepthRequest, $0.BlockResponse>(
'getBlockByDepth',
getBlockByDepth_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.GetBlockByDepthRequest.fromBuffer(value),
($0.BlockResponse value) => value.writeToBuffer()));
}