Here is how to send a message :
Code: Select all
./namecoind message_send "Hi, this is my reply." N9RYgAfTy1LeeR1NS5AhD1EHktHJveaFJm
99307fc0839466e015f14ff96392a3715791fb15fbe70ec794b77d2dcbf4aa06
Code: Select all
./namecoind message_list
[
{
"account" : "",
"address" : "message: Hi, this is a message_send from one wallet to another wallet",
"category" : "send",
"amount" : -0.00050000,
"fee" : -0.00050000,
"confirmations" : 65,
"txid" : "2a680b56d7846cb95547d5092cfb7e03afdb1ecc5c405cff81edf78775c7cce7",
"time" : 1320065250
},
{
"account" : "",
"address" : "message: Hi, this is my reply.",
"category" : "receive",
"amount" : 0.00050000,
"confirmations" : 3,
"txid" : "99307fc0839466e015f14ff96392a3715791fb15fbe70ec794b77d2dcbf4aa06",
"time" : 1320094978
}
]
http://explorer.dot-bit.org/tx/84557
http://explorer.dot-bit.org/tx/84568
http://explorer.dot-bit.org/tx/84739
The advantages are (compared to the first draft proposed by zamgo) :
- no link with the name registration system
- instant transfer, no need to register and wait for 12 blocks each time you want to send a message
- cost is not tied to name registration system : 0.0005NC is sent to the receiving address + standard miner fees
- transactions are already accepted by the network (hum, i would have preferred this wouldn't be the case... Everybody can really send custom transactions ?)
- limited to 1023 bytes
Future evolves :
- allow to send messages to namecoin names :
* ./namecoind message_send "blabla" "d/dot-bit" would be converted to the last namecoin address of "d/dot-bit" (current is NAjG9pX9TFBaHXsUhYrr2J7tgbaEAYdnoj)
* ./namecoind message_send "blabla" "p/khal"
Source code :
https://github.com/khalahan/namecoin/tree/message_send
ps : make a backup of your wallet before using this patch. Even if i have tested it a bit, it may still contain bugs.