@ponziland/account
Version:
Account management library for Starknet with wallet modal and connection state
13 lines (12 loc) • 465 B
TypeScript
import { type AccountInterface } from 'starknet';
import { type AccountConfig } from './consts.js';
export declare const accountState: {
isConnected: boolean;
address?: string;
sessionAccount?: AccountInterface;
walletAccount?: AccountInterface;
providerName?: string;
};
export declare function refresh(): Promise<void>;
export declare function setup(config?: Partial<AccountConfig>): Promise<typeof accountState>;
export default accountState;