Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 1.16 KB

useWalletClient.md

File metadata and controls

80 lines (52 loc) · 1.16 KB

@divvi/mobile


@divvi/mobile / useWalletClient

Function: useWalletClient()

function useWalletClient(__namedParameters): object

Defined in: packages/@divvi/mobile/src/public/hooks/useWalletClient.ts:8

Parameters

__namedParameters

networkId

NetworkId

Returns

object

data

data:
  | undefined
  | {
  unlockAccount: (passphrase, duration) => Promise<boolean>;
 } = asyncCallback.result;

error

error: undefined | Error = asyncCallback.error;

refresh()

refresh: (...args) =>
  (Promise<{
    unlockAccount: (passphrase, duration) => Promise<boolean>
  }> = asyncCallback.execute)

Parameters

args

...[{ networkId: NetworkId; }]

Returns

Promise<{ unlockAccount: (passphrase, duration) => Promise<boolean>; }>

reset()

reset: () => void = asyncCallback.reset;

Returns

void

status

status: AsyncStatus