A simple TypeScript library that provides direct access to multiple protocols and standards deployed on various blockchain networks with support for smart contracts.
You can install the DeFiData
library via npm:
npm install defidata
The DeFiData
library exports the following classes representind multiple protocols and standards:
The Tokens
class provides the methods for fetching the information of any token that comply with the ERC-20
standard. It allows you to:
The PinkLock
class provides methods for retrieving token timelocks associated with user addresses and token addresses from different versions of PinkLock
's contracts. It allows you to:
The UniCrypt
class provides methods for retrieving tokens timelocks associated with user addresses and token addresses from different versions of UniCrypt
's contracts. It allows you to:
Here's an example of how to use DeFiData library:
// Import the `DeFiData` library
import { DeFiData } from 'defidata';
// Create an instance of `DeFiData`
const defiData = new DeFiData();
// Wait for the library to be ready
await defiData.ready();
// Use the `DeFiData` library...
For detailed documentation, including all available methods and their usage, please refer to the documentation.
These are the currently supported networks:
Network Name | Network ID |
---|---|
Ethereum | 1 |
BNB Smart Chain | 56 |
Contributions are welcome! If you have any bug reports, feature requests, or suggestions, please open an issue on the GitHub repository.
This project is licensed under the MIT License (including all dependencies).
Generated using TypeDoc