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();
}
3
likes
160
pub points
0%
popularity

Publisher

verified publisher0xdir.com

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)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on decentrifi