public static function isEnough(ConnectorInterface $connector, $accountName, $type, $trxJsonString = '')
    {
        $bandwidth = Bandwidth::getBandwidthByAccountName($accountName, $type, $connector);

        $bandwidth['needed'] = mb_strlen($trxJsonString, '8bit') + $bandwidth['used'];

        return $bandwidth['needed'] < $bandwidth['available'];
    }
public static function isEnough(ConnectorInterface $connector, $accountName, $type, $trxJsonString = '')
    {
        $bandwidth = Bandwidth::getBandwidthByAccountName($accountName, $type, $connector);

        $bandwidth['needed'] = mb_strlen($trxJsonString, '8bit') + $bandwidth['used'];

        return $bandwidth['needed'] < $bandwidth['available'];
    }
public static function isEnough ( ConnectorInterface $ connector , $ accountName , $ type , $ trxJsonString = '' ) { $ bandwidth = Bandwidth :: getBandwidthByAccountName ( $ accountName , $ type , $ connector ) ; $ bandwidth [ 'needed' ] = mb_strlen ( $ trxJsonString , '8bit' ) + $ bandwidth [ 'used' ] ; return $ bandwidth [ 'needed' ] < $ bandwidth [ 'available' ] ; }
Checking Bandwidth for Trx

@param ConnectorInterface $connector
@param                    $accountName
@param                    $type
@param string             $trxJsonString

@return bool
@throws \Exception
Checking Bandwidth for Trx