json rpc – How to use createrawtransaction for sending to bare multisig?

There are lot of tools for performing pay to script has transactions, but how to build crearawtransaction parameters for sending to bare multisig.

I m meaning, what are the exact steps to get then select and insert utxo?
Then, how do I compute the txid field?
What s the syntax of the output script for a 2 of 1 transaction? Then, how do I convert such text to bytecode?

A step by step example detailing those part would be welcome.

sending – How to send bitcoin from an address created at Coinb.in?

Fortunately you have many options.

The bitcoin core client allows key import with importprivkey

Adds a private key to your wallet. Requires a new wallet backup.
Hint: use importmulti to import more than one private key.

Note: This call can take over an hour to complete if rescan is true, during that time, other rpc calls may report that the imported key exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.


  1. privkey (string, required) The private key (see dumpprivkey)
  2. label (string, optional, default=current label if address exists, otherwise “”) An optional label
  3. rescan (boolean, optional, default=true) Rescan the wallet for transactions

Alternatively there are many wallets out there that allow importing or sweeping a private key. Some of these include Electrum, Mycelium and Samourai (these are examples, not recommendations).

Lastly, coinb.in, the site you used to create the key allows you to build a transaction and sign it as well https://coinb.in/#newTransaction. I wouldn’t recommend this for a novice user as you can end up losing your funds to miners fees if you do not include a change address. If you don’t know what a change address is don’t attempt this approach. You can practice on testnet or with small amounts until you get comfortable you know what you are doing.

sendtoaddress – Why sending bitcoin and one addresss shows (Unspend) and one address shows (Spent)?

I sent some btc to a btc address, and each time we send btc, it gets to split into two addresses, only one of them is the real destination address. The recipient said he has not received the the btc yet. I checked blockchain info, it shows the detination address (spent) but the other address as (unspent). This is normal right? If the recipient’s wallet address shows spent, it means the btc has arrived in his wallet right?

Please confirm. Thanks!

My phone loses connection after sending 150-200 sms

I’m sms spamming to my business number (because of a campaign from my provider). But after sending 150-200 sms from my personal number to any number my phone loses connection. I called the service provider of my personal phone that I use to send sms. They said it shouldn’t happen. I’m using an application for sms spamming and it is sending 1 sms per second. Samsung Galaxy S7 Edge 32GB Android 7.0 rooted.

dnd 5e – Can a known recipient of sending via sending stones conceal their identity?

A character has discovered one of a pair of sending stones in a D&D 5e game. They can use the stone to cast sending, with the target being the holder of the other stone. The person holding the other stone, who we’ll call the “recipient”, is in fact someone that the character knows, but they are unaware that it is the recipient who holds the other stone, and the recipient does not want them to know. Can the recipient reply to the sending while concealing their identity from the character?

The question of the caster of sending concealing their identity has already been addressed in Is there any way to fake/conceal your identity when casting Sending?, and the caster cannot conceal their identity because sending says:

You send a short message of twenty-five words or less to a creature with which you are familiar. The creature hears the message in its mind, recognizes you as the sender if it knows you, and can answer in a like manner immediately.

This does not address whether the recipient can conceal their identity, but this is because the caster of sending must be familiar with the recipient in order to cast the spell. It’s therefore reasonable to assume that the recipient’s “reply”, which is sent “in a like manner”, will mean that the caster will recognise the identity of the recipient, because the caster knows the recipient, and because the caster knows who they targeted with the spell.

However, sending stones bypass this familiarity requirement:

While you touch one stone, you can use an action to cast the sending spell from it. The target is the bearer of the other stone.

There is no indication here that the user of a sending stone must be familiar with the recipient, who holds the matching stone. (And such a requirement would make sending stones considerably less useful! So I think it’s reasonable to assume that the user of a stone is not required to know the holder of the other stone.)

However, in the situation I’m describing, the “caster” is familiar with the recipient, but the recipient does not want them to know who the recipient is.

Obviously, the recipient can refuse to respond. However, it’s a lot more fun if the recipient can respond, while concealing their identity. So… is there a way for a known recipient of sending cast via sending stones to conceal their identity?

Use of additional magical items or spells by the recipient (such as the ring of mind shielding suggested in an answer to the linked question) is acceptable in an answer.

Sending multiple output transaction with total output exceed the total input value

I am still confused about whether it is still a valid transaction for multiple output transactions if the total output of the transaction exceeds the amount of total input.

For example, there are two inputs in Bitcoin transactions, one having a value of 1.5BTC and one
of 0.75BTC, and two outputs, one with a value of 1.3BTC and one of 1.25BT.

Is this a valid transaction? And how about the transaction fee? Because one output is still less than the size of some of the input or the total input.

amazon ec2 – Postfix “randomly” rejects sending or receiving due to unable to resolve mail domain then minutes later it pass it

Few weeks ago i migrated to new mail server postfix 3.3.0, dovecot. I noticed a weird behavior, that the mail server “very randomly” rejects emails due to either of below messages:

Nov  5 00:00:35 stagesmail postfix/smtpd(26226): NOQUEUE: reject: RCPT from unknown( 450 4.7.1 <mail.domain1.com>: Helo command rejected: Host not found; from=<root@mail.domain1.com> to=<sys.admin@domain2.com> proto=ESMTP helo=<mail.domain1.com>


Nov  4 21:00:18 stagesmail postfix/smtp(20973): DEFAB80E7C: to=<User@domain1.com>, orig_to=<User2@domain2.com>, relay=none, delay=11, delays=0.02/4.2/6.4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=domain1.com type=MX: Host not found, try again)

And few minutes later, it just retry and sends the email successfully. And sometimes it doesn’t fail at all!!

I own domain1 and domain2, and they are totally resolvable as A, MX and PTR records (using dig).


smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service unix:private/policyd-spf, reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org

Also checked resolv.conf, it has full permission

# sudo -u postfix -H cat /etc/resolv.conf


My netplan names servers:

version: 2
        dhcp4: no
        dhcp6: no
                addresses: (,
            macaddress: MACADRRESS
        set-name: eth0

Any help please?

Trouble with HTML Contact Form PHP Not Sending Emails to Gmail

I’ve created a simple contact form that should be sending emails via php to me however, when I attempt to send/submit the form I continue to get the “message failed” output and have confirmed nothing is coming to my gmail inbox.

I have gone into my host server and tried updating the Port and changed my SMTP to the mail server being used in my php.ini. I’m unsure if the issue lies within my host server or my actual php/form code.

Form Code

<h2>Contact Form</h2>
                <form id="contactForm" method="POST" action="formHandler.php">
                  <div class="row">
                    <div class="col-md-6">
                      <div class="form-group">
                        <input type="text" class="form-control" id="name" name="name" placeholder="Name" required data-error="Please enter your name">
                        <div class="help-block with-errors"></div>
                    <div class="col-md-6">
                      <div class="form-group">
                        <input type="text" placeholder="Email" id="email" class="form-control" name="email" required data-error="Please enter your email">
                        <div class="help-block with-errors"></div>
                     <div class="col-md-12">
                      <div class="form-group">
                        <input type="text" placeholder="Subject" id="msg_subject" class="form-control" required data-error="Please enter your subject">
                        <div class="help-block with-errors"></div>
                    <div class="col-md-12">
                      <div class="form-group"> 
                        <textarea class="form-control" id="message" name= "message" placeholder="Your Message" rows="5" data-error="Write your message" required></textarea>
                        <div class="help-block with-errors"></div>
                      <div class="submit-button">
                        <button class="btn btn-common" id="submit" type="submit" value= "submit" target="_blank">Send Message</button>
                        <div id="msgSubmit" class="h3 text-center hidden"></div> 
                        <div class="clearfix"></div> 

PHP Code



$to = "myemail@gmail.com";
$name = $_POST('name');
$email = $_POST('email');
$message = $_POST('message');

$formcontent=" From: $name n Email: $email n Message: $message";

$subject = "Contact Form";

$mailheader = "From: $email r n";

mail($to, $mailheader, $subject, $formcontent);

echo "<p>Thank you for contacting me!</p>";
echo "<p>I will reply to your inquiry in 24-48 business hours.</p>";
echo "<a href='form.html' style='text-decoration:none;color:#ff0099;'> Return Home</a>";

    echo "<p> Message Failed to Send.</p>";
  echo "<a href='form.html' style='text-decoration:none;color:#ff0099;'> Return Home</a>";

python – Discord.py : How to keep n in args when sending messages

I’m trying to create a command that format your code on discord with a given language,

by sending the formated string :


The fonction prototype is :

def format(ctx, language, *code)

And i’m typing on discord for exemple :

!format c int function(int x)
  return x;

But when i tryed to print out the code arg, there is no n in the list and the bot message is on a single line.

I also tryed with quotation marks around my message, and this worked for keeping n but if my code contain another quotation mark it end the code arg, and throw an error for the remaining part.

Is there a way to get the complete message including newlines ?