did_plc 0.0.22 did_plc: ^0.0.22 copied to clipboard
Support for DID PLC Directory endpoints used by atproto and other services.
// Copyright 2023 Shinya Kato. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided the conditions.
import 'package:did_plc/did_plc.dart' as plc;
Future<void> main(List<String> args) async {
try {
final client = plc.PLC();
final document = await client.findDocument(
did: 'did:plc:iijrtk7ocored6zuziwmqq3c',
);
print(document);
} on plc.HttpException catch (e) {
print(e);
}
}