Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update endpoints not used by myWitWallet to use new api #58

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions example/explorer_example.dart
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import 'package:witnet/explorer.dart';

String explorerUrl = 'witscan.xyz';
String explorerUrl = 'witnet.network';
ExplorerClient explorer =
ExplorerClient(url: explorerUrl, mode: ExplorerMode.production);
void main() async {
try {
dynamic status = await explorer.address(
tab: "value_transfers",
value: "wit174la8pevl74hczcpfepgmt036zkmjen4hu8zzs",
page: 1,
pageSize: 1);
print("Status: ${status}");
String address = 'wit174la8pevl74hczcpfepgmt036zkmjen4hu8zzs';
dynamic valueTransfers = await explorer.address(
tab: "value_transfers", value: address, page: 1, pageSize: 1);
print("List of Vtts from address ${address}: ${valueTransfers}");
} on ExplorerException catch (e) {
print(e.message);
}
Expand Down
52 changes: 33 additions & 19 deletions lib/explorer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,46 @@ export 'src/crypto/address.dart' show Address;

export 'src/network/explorer/explorer_api.dart'
show
AddressBlocks,
AddressDataRequestsSolved,
AddressDetails,
AddressInfo,
AddressLabel,
AddressMintInfo,
AddressMints,
AddressValueTransferInfo,
AddressValueTransfers,
BlockDetails,
BlockInfo,
Blockchain,
BurnRate,
DrComposition,
DrHistory,
DrLieRate,
DrSolver,
ExplorerException,
HashInfo,
Home,
InputMerged,
InputUtxo,
Mempool,
MempoolTransactionType,
Miner,
MintInfo,
NetworkStats,
NodePool,
PrioritiesEstimate,
PriorityEstimate,
Rollback,
StatisticsParams,
Status,
SupplyInfo,
SupplyParams,
TallyTxn,
Tapi,
TapiInfo,
Blockchain,
AddressDetails,
AddressDataRequestsSolved,
InputUtxo,
AddressValueTransfers,
AddressBlocks,
BlockInfo,
BlockDetails,
MintInfo,
HashInfo,
TallyTxn,
ValueTransferInfo,
TransactionStatus,
TransactionType,
TransactionUtxo,
InputMerged,
AddressValueTransferInfo,
TxStatusLabel,
TransactionType,
TransactionStatus,
PrioritiesEstimate,
PriorityEstimate,
Mempool;
ValueTransferInfo;
Loading