multiversx_api 0.1.5
multiversx_api: ^0.1.5 copied to clipboard
A strongly-typed MultiversX API client for Dart, ensuring type safety while interacting with blockchain endpoints.
import 'package:multiversx_api/multiversx_api.dart';
import 'package:http/io_client.dart';
void main() async {
final api = MultiverXApi(
client: IOClient(),
baseUrl: mainnetApiBaseUrl,
);
try {
final result = await api.hello();
print('result = $result');
} on ApiException catch (e) {
print(e.toJson());
} finally {
api.client.close();
}
}
copied to clipboard