export type * from '../common/types.js'; export type * from './IExecConfig.js'; import IExecConfig from './IExecConfig.js'; import IExecModule from './IExecModule.js'; import { Address, NRLCAmount, TxHash, WeiAmount, BN } from '../common/types.js'; /** * module exposing wallet methods */ export default class IExecWalletModule extends IExecModule { /** * **SIGNER REQUIRED** * * get the connected wallet address * * example: * ```js * const userAddress = await getAddress(); * console.log('user address:', userAddress); * ``` */ getAddress(): Promise
; /** * check the wallet balances (native and iExec token) of specified address * * example: * ```js * const { wei, nRLC } = await checkBalances(address); * console.log('iExec nano RLC:', nRLC.toString()); * console.log('ethereum wei:', wei.toString()); * ``` */ checkBalances(address: Address): Promise<{ wei: BN; nRLC: BN; }>; /** * **SIGNER REQUIRED** * * send some wei to the specified address * * example: * ```js * const txHash = await sendETH(amount, receiverAddress); * console.log('transaction hash:', txHash); * ``` */ sendETH(WeiAmount: WeiAmount, to: Address): Promise