decentrifi 0.1.0
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.
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();
}