web3mq_http 0.1.0-dev.1 copy "web3mq_http: ^0.1.0-dev.1" to clipboard
web3mq_http: ^0.1.0-dev.1 copied to clipboard

outdated

A Web3MQ JSON-RPC client based on the HTTP protocol.

example/web3mq_http_example.dart

import 'dart:typed_data';

import 'package:web3mq_core/models.dart';
import 'package:web3mq_http/src/model/pagination.dart';
import 'package:web3mq_http/web3mq_http.dart';

void main() async {
  final service = Web3MQService('{apiKey}');

  // If you want to execute the registration and login interfaces,
  // we strongly recommend that you use the web3mq package.
  // Once you have the login credential User, you can use the service like above

  final aUser = User('userId', DID('type', 'value'), Uint8List.fromList([]));
  await service.connectUser(aUser);

  // fetch chats:
  final chats = await service.chat.queryChannels(Pagination(size: 20));
  print(chats);
}
0
likes
0
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

A Web3MQ JSON-RPC client based on the HTTP protocol.

Homepage

License

unknown (license)

Dependencies

collection, cryptography, dio, equatable, json_annotation, logging, path, web3mq_core

More

Packages that depend on web3mq_http