TransactionServiceBase constructor
TransactionServiceBase()
Implementation
TransactionServiceBase() {
$addMethod($grpc.ServiceMethod<$0.GetTransactionByIdRequest,
$0.TransactionResponse>(
'getTransactionById',
getTransactionById_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.GetTransactionByIdRequest.fromBuffer(value),
($0.TransactionResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryByLockAddressRequest,
$0.TransactionResponse>(
'getTransactionByLockAddressStream',
getTransactionByLockAddressStream_Pre,
false,
true,
($core.List<$core.int> value) =>
$0.QueryByLockAddressRequest.fromBuffer(value),
($0.TransactionResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryByLockAddressRequest,
$0.TxoLockAddressResponse>(
'getTxosByLockAddress',
getTxosByLockAddress_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.QueryByLockAddressRequest.fromBuffer(value),
($0.TxoLockAddressResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryByLockAddressRequest,
$0.TxoLockAddressResponse>(
'getTxosByLockAddressStream',
getTxosByLockAddressStream_Pre,
false,
true,
($core.List<$core.int> value) =>
$0.QueryByLockAddressRequest.fromBuffer(value),
($0.TxoLockAddressResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryByAssetLabelRequest, $0.TxoResponse>(
'getTxosByAssetLabel',
getTxosByAssetLabel_Pre,
false,
true,
($core.List<$core.int> value) =>
$0.QueryByAssetLabelRequest.fromBuffer(value),
($0.TxoResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.CreateOnChainTransactionIndexRequest,
$0.CreateOnChainTransactionIndexResponse>(
'createOnChainTransactionIndex',
createOnChainTransactionIndex_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.CreateOnChainTransactionIndexRequest.fromBuffer(value),
($0.CreateOnChainTransactionIndexResponse value) =>
value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetExistingTransactionIndexesRequest,
$0.GetExistingTransactionIndexesResponse>(
'getExistingTransactionIndexes',
getExistingTransactionIndexes_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.GetExistingTransactionIndexesRequest.fromBuffer(value),
($0.GetExistingTransactionIndexesResponse value) =>
value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetIndexedTransactionsRequest,
$0.TransactionResponse>(
'getIndexedTransactions',
getIndexedTransactions_Pre,
false,
true,
($core.List<$core.int> value) =>
$0.GetIndexedTransactionsRequest.fromBuffer(value),
($0.TransactionResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DropIndexRequest, $0.DropIndexResponse>(
'dropIndex',
dropIndex_Pre,
false,
false,
($core.List<$core.int> value) => $0.DropIndexRequest.fromBuffer(value),
($0.DropIndexResponse value) => value.writeToBuffer()));
}