- createWallet<WalClient>(state, id, ip?): {
accounts: Account[];
client: null | WalClient;
connect: ((p?) => Promise<Account[]>);
connecting: boolean;
disconnect: (() => Promise<void>);
id: W_ID;
initParams: boolean | ClientInitParams;
inited: boolean;
initing: boolean;
isActive: boolean;
isConnected: boolean;
loadClient: (() => Promise<boolean>);
metadata: ClientMetadata;
reconnect: (() => Promise<void>);
removeAccounts: (() => void);
setAsActiveWallet: (() => void);
signTransactions: ((transactions) => Promise<Uint8Array[]>);
signing: boolean;
unloadClient: (() => Promise<void>);
}
-
Returns {
accounts: Account[];
client: null | WalClient;
connect: ((p?) => Promise<Account[]>);
connecting: boolean;
disconnect: (() => Promise<void>);
id: W_ID;
initParams: boolean | ClientInitParams;
inited: boolean;
initing: boolean;
isActive: boolean;
isConnected: boolean;
loadClient: (() => Promise<boolean>);
metadata: ClientMetadata;
reconnect: (() => Promise<void>);
removeAccounts: (() => void);
setAsActiveWallet: (() => void);
signTransactions: ((transactions) => Promise<Uint8Array[]>);
signing: boolean;
unloadClient: (() => Promise<void>);
}
-
Readonly
accounts: Account[]
-
client: null | WalClient
-
connect: ((p?) => Promise<Account[]>)
-
connecting: boolean
-
disconnect: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
-
-
inited: boolean
-
initing: boolean
-
Readonly
isActive: boolean
-
Readonly
isConnected: boolean
-
loadClient: (() => Promise<boolean>)
-
- (): Promise<boolean>
-
Returns Promise<boolean>
-
-
reconnect: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
removeAccounts: (() => void)
-
setAsActiveWallet: (() => void)
-
signTransactions: ((transactions) => Promise<Uint8Array[]>)
-
- (transactions): Promise<Uint8Array[]>
-
Parameters
-
transactions: Uint8Array[]
Returns Promise<Uint8Array[]>
-
signing: boolean
-
unloadClient: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>