history method
Get transaction history for this script
Implementation
Future<TxHistoryPage> 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 TxHistoryPage.fromProto(historyPage);
}