aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/address.ts
blob: 97ed30a0069e94c5c440cf4baedd9be30aca160e (plain) (blame)
1
2
3
4
5
6
import { web3Wrapper } from '../util/web3_wrapper';

export const getBestAddress = async (): Promise<string> => {
    const addresses = await web3Wrapper.getAvailableAddressesAsync();
    return addresses[0];
};