Bitcoin Forum
May 07, 2024, 01:20:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How To Send Message in Blockchain Transaction  (Read 156 times)
wtsimis (OP)
Full Member
***
Offline Offline

Activity: 326
Merit: 135


View Profile
January 21, 2022, 07:40:43 PM
Merited by DdmrDdmr (3), nimogsm (1), khaled0111 (1), Igebotz (1)
 #1

Many of us know that a couple of months ago Poly Network got hacked, where they communicate with the hacker through Blockchain messages. So, today I gonna show you, how to send any type of message through blockchain. We can send them through metamask. Before sending messages from the metamask, you need to change some settings in the metamask.
Go to wallet settings→ advanced→ scroll down and turn on ''Hex Data''


Blockchain only supports Hexa Decimal code for sending the message, so we need to change our messages into hexadecimal coding. Many sites convert to hexadecimal, I prefer https://codebeautify.org/string-hex-converter.

Write whatever text you want, it'll convert your text into code.


Now come to metamask, select any address that you wanna send a message to, put the amount that you wanna send in the hex data, give the coded message, and click send.

After confirmation, view the transaction on the explorer,

click to see more,
you can see that your sent coded message, now click on the
view input as UTF-8, then you can see the message that you have sent.



The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
khaled0111
Legendary
*
Offline Offline

Activity: 2520
Merit: 2853


Top Crypto Casino


View Profile WWW
January 21, 2022, 08:45:33 PM
Merited by DdmrDdmr (3), pooya87 (2)
 #2

Thank you wtsimis for the detailed guide.
I just want to comment on this point:
Now come to metamask, select any address that you wanna send a message to
By doing this, you are not really sending the message to a person/address in particular. The message will be saved on the blockchain and any one can read i not only the recipient.
Storing data on the blockchain might be useful in some cases but it's not recommended. Just think of those who run full nodes and will have to store unnecessary data on their machines.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10550



View Profile
January 22, 2022, 04:29:46 AM
Merited by DdmrDdmr (2)
 #3

Blockchain only supports Hexa Decimal code for sending the message, so we need to change our messages into hexadecimal coding.
Blockchains are simply raw bytes and the building components called transactions are raw bytes that can store arbitrary bytes in a certain way. Hexadecimal is just an encoding used to represent those bytes. The reason why you have to convert your UTF8 encoding to HEX encoding is because the tool you are using is dumb and doesn't have the option to directly convert UTF8 to bytes so you have to first convert UTF8 to bytes elsewhere then convert it to HEX then the tool converts HEX to bytes!

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
wtsimis (OP)
Full Member
***
Offline Offline

Activity: 326
Merit: 135


View Profile
January 22, 2022, 06:41:49 AM
 #4

Blockchain only supports Hexa Decimal code for sending the message, so we need to change our messages into hexadecimal coding.
Blockchains are simply raw bytes and the building components called transactions are raw bytes that can store arbitrary bytes in a certain way. Hexadecimal is just an encoding used to represent those bytes. The reason why you have to convert your UTF8 encoding to HEX encoding is because the tool you are using is dumb and doesn't have the option to directly convert UTF8 to bytes so you have to first convert UTF8 to bytes elsewhere then convert it to HEX then the tool converts HEX to bytes!
I didn't understand much, but it was good to hear. I am a newbie, the post also was for newbies. I just wanna present some cool things. However, thanks for providing the information.
PX-Z
Hero Member
*****
Offline Offline

Activity: 1442
Merit: 842


Top Crypto Casino


View Profile WWW
January 22, 2022, 07:10:24 AM
 #5

Cools stuff, maybe you can add if what eth explorer is compatible for this message stuff. Or maybe all of the existing eth explorer integrates it too?

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
wtsimis (OP)
Full Member
***
Offline Offline

Activity: 326
Merit: 135


View Profile
January 22, 2022, 07:51:54 PM
 #6

Cools stuff, maybe you can add if what eth explorer is compatible for this message stuff. Or maybe all of the existing eth explorers integrate it too?
You can try other blockchains too, I think that are compatible with the ETH, BEP20, MATIC chains.
jc12345
Legendary
*
Offline Offline

Activity: 1638
Merit: 1013


View Profile
February 18, 2022, 07:26:01 PM
 #7

Thanks this can be valuable. Do you know how much data you can put into the transaction ie. what is the character limit of the message? Also, do you know if the limit is different for different blockchains eg. ETH vs Poly?
nimogsm
Hero Member
*****
Offline Offline

Activity: 2702
Merit: 651


Seabet.io | Crypto-Casino


View Profile WWW
February 18, 2022, 08:31:59 PM
 #8

Thanks for the detailed guide, I didn't even know that you can sign messages in a meta mask, I just didn't pay attention to it.
Now when I send transactions I will have fun this way)

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!