0 purchases
decentrifi
A Future-based library for interacting with the Decentrifi Defi Hub.
Access data on ENS, lending, borrowing, vaults, farming and staking on multiple chains
easily with this library which is a wrapper around the Decentrifi API. It is
multi-platform, with limited dependencies for use in mobile, desktop, or browser apps.
This community package is designed to follow the Decentrifi API Documentation as closely
as possible.
Using #
The easiest way to use this library is via the top-level Decentrifi class.
import 'package:decentrifi/decentrifi.dart';
void main() async {
/// Initialize the main object
Decentrifi decentrifi = Decentrifi();
/// Get the ENS name of a user's wallet address
var ens = await decentrifi.getENSName(
address: '0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63',
);
/// Do stuff with the result
print('$ens');
/// Close the connection
decentrifi.close();
}
copied to clipboard
What is Decentri.fi? #
Decentrifi's Defi Hub is a defi aggregation API which serves
as a gateway to decentralized finance by abstracting common
principles and domains.
It unifies all concepts of lending, borrowing, vaults, farming
and staking into a single API for easy integration.
Getting Help #
Submit an issue on github.
How to contribute #
All feedback and suggestions for improvements are welcome:
Open a discussion on github
Discuss proposed changes
Submit a PR (optional)
Support my work #
This package is possible thanks to the people and companies
who donate money, services or time to keep the project running.
If you're interested in becoming a Sponsor, Backer or Contributor
to expand the project, check out my profile on Github Sponsors.
Or buy my coffee at 0xdir.near.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.