blub-sdk
Version:
A modular SDK for interacting with the BLUB ecosystem on the Sui blockchain.
54 lines (53 loc) • 1.25 kB
TypeScript
/**
* Hook to fetch the BLUB token balance for a given wallet address.
*
* @param address - Wallet address to query.
* @returns { balance, isLoading, error }
*/
export declare function useBlubBalance(address?: string): {
balance: bigint | undefined;
isLoading: boolean;
error: any;
};
/**
* Hook to retrieve the current estimated circulating supply of BLUB.
*
* @returns { supply, isLoading, error }
*/
export declare function useBlubCirculatingSupply(): {
supply: bigint | undefined;
error: any;
};
/**
* Hook to retrieve the fixed total supply of BLUB.
*
* @returns { totalSupply }
*/
export declare function useBlubTotalSupply(): {
totalSupply: bigint | undefined;
error: any;
};
/**
* Hook to fetch the current BLUB price in USD.
*/
export declare function useBlubPrice(): {
price: number | undefined;
isLoading: boolean;
error: any;
};
/**
* Hook to fetch the current SUI price in USD.
*/
export declare function useSuiPrice(): {
price: number | undefined;
isLoading: boolean;
error: any;
};
/**
* Hook to fetch the current BLUB market cap in USD.
*/
export declare function useBlubMarketCap(): {
marketCap: number | undefined;
isLoading: boolean;
error: any;
};