hypesdk
Version:
A powerful SDK for interacting with the Hype blockchain, featuring advanced routing and token swap capabilities
23 lines (22 loc) • 730 B
TypeScript
import { ethers } from "ethers";
/**
* Creates a new wallet
* @returns {object} Object containing the wallet's address and private key
*/
export declare function createWallet(): {
address: string;
privateKey: string;
};
/**
* Get token information and balance for an address
* @param provider Ethers provider instance
* @param tokenAddress The token contract address
* @param walletAddress The wallet address to check balance for
* @returns Token information including decimals, balance, and symbol
*/
export declare function getTokenInfo(provider: ethers.Provider, tokenAddress: string, walletAddress: string): Promise<{
decimals: any;
rawBalance: any;
symbol: any;
formattedBalance: string;
}>;