function accountIDFromString(account) {
    let accountSplit = account.split('.')
    let accountID = new AccountID()
    if (
        isNaN(parseInt(accountSplit[0])) ||
        isNaN(parseInt(accountSplit[1])) ||
        isNaN(parseInt(accountSplit[2]))
    ) {
        throw new Error('AccountID contains invalid character(s)')
    }

    if (accountSplit.length !== 3) {
        throw new Error('AccountID is invalid')
    }
    accountID.setShardnum(parseInt(accountSplit[0]))
    accountID.setRealmnum(parseInt(accountSplit[1]))
    accountID.setAccountnum(parseInt(accountSplit[2]))
    return accountID
}
/**
 * accountIDFromString converts a string type AccountID into a Hedera AccountID object.
 * @param {string} account is a string delimited by dot, of the format 'shardNum.realmNum.accountNum'.
 * @returns {Object} returns a Hedera AccountID.
 */
accountIDFromString converts a string type AccountID into a Hedera AccountID object.
@param {string} account is a string delimited by dot, of the format 'shardNum.realmNum.accountNum'.
@returns {Object} returns a Hedera AccountID.
accountIDFromString converts a string type AccountID into a Hedera AccountID object . @param { string } account is a string delimited by dot of the format ' shardNum . realmNum . accountNum ' . @returns { Object } returns a Hedera AccountID .
function accountIDFromString(account) {
    let accountSplit = account.split('.')
    let accountID = new AccountID()
    if (
        isNaN(parseInt(accountSplit[0])) ||
        isNaN(parseInt(accountSplit[1])) ||
        isNaN(parseInt(accountSplit[2]))
    ) {
        throw new Error('AccountID contains invalid character(s)')
    }
    if (accountSplit.length !== 3) {
        throw new Error('AccountID is invalid')
    }
    accountID.setShardnum(parseInt(accountSplit[0]))
    accountID.setRealmnum(parseInt(accountSplit[1]))
    accountID.setAccountnum(parseInt(accountSplit[2]))
    return accountID
}
function accountIDFromString ( account ) { let accountSplit = account . split ( '.' ) let accountID = new AccountID ( ) if ( isNaN ( parseInt ( accountSplit [ 0 ] ) ) || isNaN ( parseInt ( accountSplit [ 1 ] ) ) || isNaN ( parseInt ( accountSplit [ 2 ] ) ) ) { throw new Error ( 'AccountID contains invalid character(s)' ) } if ( accountSplit . length !== 3 ) { throw new Error ( 'AccountID is invalid' ) } accountID . setShardnum ( parseInt ( accountSplit [ 0 ] ) ) accountID . setRealmnum ( parseInt ( accountSplit [ 1 ] ) ) accountID . setAccountnum ( parseInt ( accountSplit [ 2 ] ) ) return accountID }
accountIDFromString converts a string type AccountID into a Hedera AccountID object.
accountIDFromString converts a string type AccountID into a Hedera AccountID object .