decentrifi 0.1.0 copy "decentrifi: ^0.1.0" to clipboard
decentrifi: ^0.1.0 copied to clipboard

A Future-based library for interacting with the Decentrifi Defi Hub. Access data on ENS, lending, borrowing, vaults, farming and staking on multiple chains.

example/example.dart

import 'package:decentrifi/decentrifi.dart';

void main() async {
  /// Initialize the main object
  Decentrifi decentrifi = Decentrifi();

  /// Call the api
  String? data = await decentrifi.getENSName(
    address: '0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63',
  );

  /// Do stuff with the result
  if (data != null) {
    print(data);
  } else {
    print('Nothing found');
  }

  /// Close the connection
  decentrifi.close();
}
4
likes
160
points
22
downloads

Publisher

verified publisher0xdir.com

Weekly Downloads

A Future-based library for interacting with the Decentrifi Defi Hub. Access data on ENS, lending, borrowing, vaults, farming and staking on multiple chains.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on decentrifi