history method
Get transaction history for this script
Implementation
Future<HistoryResponse> history({int page = 0, int pageSize = 10}) async {
if (pageSize <= 0) throw ValidationException('pageSize must be positive');
final data = await proxy.get(
'/script/$scriptType/$scriptPayload/history?page=$page&page_size=$pageSize',
);
final historyPage = _decodeProto(data, () => pb.TxHistoryPage());
return HistoryResponse(
page: page,
pageSize: pageSize,
txs: historyPage.txs,
);
}