blockchain method
Implementation
Future<PaginatedRequest<Blockchain>> blockchain(
{int? page, int? pageSize}) async {
try {
PaginatedRequest<dynamic> result = await client.get(
api('network/blockchain', {'page': page, 'page_size': pageSize}));
return PaginatedRequest(
data: Blockchain.fromJson(result.data),
firstPage: result.firstPage,
lastPage: result.lastPage,
page: result.page,
total: result.total,
totalPages: result.totalPages,
);
} on ExplorerException catch (e) {
throw ExplorerException(
code: e.code, message: '{"blockchain": "${e.message}"}');
}
}