function addressMessage(e, p, adr) {
    msgs+=1;
    if((ads.enabled==true && Math.floor(msgs/ads.frequency)*ads.frequency == msgs) || msgs == 1){
        addMessage(timeStamp(),"info", ads.ad);
    }

    
    var sh = p.x.hash.substr(0,5) + "&hellip;" + p.x.hash.substr(-5,5);

    var btc=0;
    for (var i = p.x.inputs.length - 1; i >= 0; i--) {
        btc+=p.x.inputs[i].prev_out.value;
    };
    if(p.x.vin_sz > 1){plural="s"}else{plural=""}
        if(p.x.vout_sz > 1){plural2="s"}else{plural2=""}   
            var name;
        for (var i = 0; i < addr_nicks.length; i++) {
            if(addr_nicks[i][0]==adr){
                if(addr_nicks[i][1] != null){
                    name=addr_nicks[i][1]
                }else{
                    name=adr;
                }}};
        var snd = new Audio(alertSounds[alertSound]);
        snd.play();
        var t = "<a href=\"http://blockchain.info/tx/" + p.x.hash
        + "\" target=\"_BLANK\">Transaction " + sh + "</a> outgoing from "
        + "subscribed address <a target=\"_BLANK\" href=\"http://blockchain.info/address/" + adr + "\">"
        + name + "</a> "
        + "sent &#3647;<b>" + roundTo(btc / 100000000, 8)
        + "</b> from <b>" + p.x.vin_sz
        + "</b> input" + plural + " to <b>" + p.x.vout_sz + "</b> output"+plural2;
        return [t, "address"];
    }
// Generate message to and from an adress inside sub_addresses
Generate message to and from an adress inside sub_addresses
Generate message to and from an adress inside sub_addresses
function addressMessage(e, p, adr) {
    msgs+=1;
    if((ads.enabled==true && Math.floor(msgs/ads.frequency)*ads.frequency == msgs) || msgs == 1){
        addMessage(timeStamp(),"info", ads.ad);
    }
    var sh = p.x.hash.substr(0,5) + "&hellip;" + p.x.hash.substr(-5,5);
    var btc=0;
    for (var i = p.x.inputs.length - 1; i >= 0; i--) {
        btc+=p.x.inputs[i].prev_out.value;
    };
    if(p.x.vin_sz > 1){plural="s"}else{plural=""}
        if(p.x.vout_sz > 1){plural2="s"}else{plural2=""}   
            var name;
        for (var i = 0; i < addr_nicks.length; i++) {
            if(addr_nicks[i][0]==adr){
                if(addr_nicks[i][1] != null){
                    name=addr_nicks[i][1]
                }else{
                    name=adr;
                }}};
        var snd = new Audio(alertSounds[alertSound]);
        snd.play();
        var t = "<a href=\"http://blockchain.info/tx/" + p.x.hash
        + "\" target=\"_BLANK\">Transaction " + sh + "</a> outgoing from "
        + "subscribed address <a target=\"_BLANK\" href=\"http://blockchain.info/address/" + adr + "\">"
        + name + "</a> "
        + "sent &#3647;<b>" + roundTo(btc / 100000000, 8)
        + "</b> from <b>" + p.x.vin_sz
        + "</b> input" + plural + " to <b>" + p.x.vout_sz + "</b> output"+plural2;
        return [t, "address"];
    }
function addressMessage ( e , p , adr ) { msgs += 1 ; if ( ( ads . enabled == true && Math . floor ( msgs / ads . frequency ) * ads . frequency == msgs ) || msgs == 1 ) { addMessage ( timeStamp ( ) , "info" , ads . ad ) ; } var sh = p . x . hash . substr ( 0 , 5 ) + "&hellip;" + p . x . hash . substr ( - 5 , 5 ) ; var btc = 0 ; for ( var i = p . x . inputs . length - 1 ; i >= 0 ; i -- ) { btc += p . x . inputs [ i ] . prev_out . value ; } ; if ( p . x . vin_sz > 1 ) { plural = "s" } else { plural = "" } if ( p . x . vout_sz > 1 ) { plural2 = "s" } else { plural2 = "" } var name ; for ( var i = 0 ; i < addr_nicks . length ; i ++ ) { if ( addr_nicks [ i ] [ 0 ] == adr ) { if ( addr_nicks [ i ] [ 1 ] != null ) { name = addr_nicks [ i ] [ 1 ] } else { name = adr ; } } } ; var snd = new Audio ( alertSounds [ alertSound ] ) ; snd . play ( ) ; var t = "<a href=\"http://blockchain.info/tx/" + p . x . hash + "\" target=\"_BLANK\">Transaction " + sh + "</a> outgoing from " + "subscribed address <a target=\"_BLANK\" href=\"http://blockchain.info/address/" + adr + "\">" + name + "</a> " + "sent &#3647;<b>" + roundTo ( btc / 100000000 , 8 ) + "</b> from <b>" + p . x . vin_sz + "</b> input" + plural + " to <b>" + p . x . vout_sz + "</b> output" + plural2 ; return [ t , "address" ] ; }
Generate message to and from an adress inside sub_addresses
Generate message to and from an adress inside sub_addresses