@zerochain/sdk
Version:
The Züs JS SDK is a JavaScript client library that provides a convenient interface for interacting with the Züs Network. It allows developers to perform various operations such as creating and managing allocations, uploading and downloading files, executi
21 lines (20 loc) • 678 B
TypeScript
import type { NetworkDomain } from '@/types/wallet';
type TokenSymbol = 'zcn' | 'eth' | (string & {});
/** Retrieves the USD rate for a given token symbol. */
export declare const getUSDRate: ({ domain, symbol, }: {
domain: NetworkDomain;
/** Token symbol for which the USD rate is fetched. */
symbol?: TokenSymbol;
}) => Promise<number>;
type Balance = {
zcn: number;
usd: number;
nonce: number;
};
/** getWalletBalance retrieves the wallet balance of the client from the network */
export declare const getWalletBalance: ({ domain, clientId, }: {
domain: NetworkDomain;
/** Wallet ID */
clientId: string;
}) => Promise<Balance>;
export {};