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

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