Share file between nodes
hey guys i want to share a file with all of nodes in cluster. in other word i want to commit transaction with key=filename and value=file_content. for example: curl -s ‘localhost:26657/broadcast_tx_commit?tx="file_name=file_content"’ how can i do it? Does anyone have a better offer? thanx
curl -s ‘localhost:26657/broadcast_tx_commit?tx="file_name=file_content"
What have you tried? You should be able to do exactly what you’ve described, replacing “file_name” with the actual file name and replacing “file_content” with the actual content …
thanks, i try again and report result.
i try below command and i get error: “-bash: !U1BV\xb56\xcc\x991\xc7\xb3: event not found”: ``` curl -s '172.17.0.2:26657/broadcast_tx_commit?tx="obj2gz=b'\x1f\x8b\x08\x08\xf4*\x84M\x02\xffobject.ring\x00\xcdW\xcbn\x1cG\x0c\xe4p\xc8\xee\xdf0tv\x02\xad\x948@~ \xb7\x1cr\r\x02\xc3\x966\xf6\x02\xb6e\xc8\x1b\x07\xb1\xe1o\xc8/gf\xa7\xbbXlmn:H\x8b\x9d\x9d~\x0c\xbb\xc8\xaa\xe2@\xbf\xed~\xfdE&\x11\xff\xf7\xeb\xc5\xeb\x7f\x8e\xfb\xbb\xfb\xdb\xfd\xfd\xc5\xcf\xcf.\xde\x1d\x8e\xc7w\xfb\x8b\xe7\xcf.n\xf7\x9f?-3\xbf\x7f]\xef\x0e7\xfbu\xf5\xf3\xed\xebu\xe9p\xbb\x0c.\xd7\x9b\x8f\xeb\xec\xfb\xef\xeew_v\x9fv\xeb\xd2\xfb\xfd\xf1\xd5:\xb7\xde\x7f\xbc\xbb?.\xf7/\xae.\xd7\xbd\xf7\xfb7\x87\xbb\x0f\xcbxw\x1a||w\xb8yu\\f^>\x0c\xc2\xab9\xc8\xdf\xfb\xc3\x9b\xb7\xebxwy\xf9\xfd:\xf1\xe5\xee\xc3\x8al\xf7\xed\xf9\xb3\x0c\xf4\x06@wO\x1b\xe8-\x80^=m\xa0A\xfd\xf5\x08\xf4\xea1\x80^=>\xf5?<m\xa0A\xfd\x8fO\x1bhP\xffb\x04z\xfd\x18@\xaf\x1f\x9f\xfa\x9f\x9e\x16\xd0?\xd6\x03_\xdd\x1f_~z{\xf8s\xddqu\x15\x91^\xde\xdc\xfd\xf5a\x9d\xbc\xfeV\xa5JY\xbe.\xba|\xebr]G}v\xbbn\xeb\x95\xc6~\xba\xae{\xb7q\x9f\x89g\x0bF\xeb\x9a\x9f\xf6\xae\xbf\xe5L\xb48-bWD\xde\xa2\x17\x9c\xb2}\xfc\xf4-\xed\x9e\xe3\xf8\tY\x8f\xa9)vm\xb8\xb5\xcd+p\xf6+…
Excerpt (1200 of 4492 characters). Read the whole post on the forum ↗
mortezash404: ``` curl -s '172.17.0.2:26657/broadcast_tx_commit?tx="obj2gz=b'\x1f\x8b\x08\x08\xf4*\x84M\x02\xffobject.ring\x00\xcdW\xcbn\x1cG\x0c\xe4p\xc8\xee\xdf0tv\x02\xad\x948@~ \xb7\x1cr\r\x02\xc3\x966\xf6\x02\xb6e\xc8\x1b\x07\xb1\xe1o\xc8/gf\xa7\xbbXlmn:H\x8b\x9d\x9d~\x0c\xbb\xc8\xaa\xe2@\xbf\xed~\xfdE&\x11\xff\xf7\xeb\xc5\xeb\x7f\x8e\xfb\xbb\xfb\xdb\xfd\xfd\xc5\xcf\xcf.\xde\x1d\x8e\xc7w\xfb\x8b\xe7\xcf.n\xf7\x9f?-3\xbf\x7f]\xef\x0e7\xfbu\xf5\xf3\xed\xebu\xe9p\xbb\x0c.\xd7\x9b\x8f\xeb\xec\xfb\xef\xeew_v\x9fv\xeb\xd2\xfb\xfd\xf1\xd5:\xb7\xde\x7f\xbc\xbb?.\xf7/\xae.\xd7\xbd\xf7\xfb7\x87\xbb\x0f\xcbxw\x1a||w\xb8yu\\f^>\x0c\xc2\xab9\xc8\xdf\xfb\xc3\x9b\xb7\xebxwy\xf9\xfd:\xf1\xe5\xee\xc3\x8al\xf7\xed\xf9\xb3\x0c\xf4\x06@wO\x1b\xe8-\x80^=m\xa0A\xfd\xf5\x08\xf4\xea1\x80^=>\xf5?<m\xa0A\xfd\x8fO\x1bhP\xffb\x04z\xfd\x18@\xaf\x1f\x9f\xfa\x9f\x9e\x16\xd0?\xd6\x03_\xdd\x1f_~z{\xf8s\xddqu\x15\x91^\xde\xdc\xfd\xf5a\x9d\xbc\xfeV\xa5JY\xbe.\xba|\xebr]G}v\xbbn\xeb\x95\xc6~\xba\xae{\xb7q\x9f\x89g\x0bF\xeb\x9a\x9f\xf6\xae\xbf\xe5L\xb48-bWD\xde\xa2\x17\x9c\xb2}\xfc\xf4-\xed\x9e\xe3\xf8\tY\x8f\xa9)vm\xb8\xb5\xcd+p\xf6+\xcfD&\x15Q\x0b\xcd\xd7\xf4Q:\xc3i\xd4\x9f.\xc0\xab\xc8\xab\xb4z+e[\xb1\xe2\…
Excerpt (1200 of 4635 characters). Read the whole post on the forum ↗
that’s right. i used “base58” encoding and it worked correctly and i can store and retrieve file content. thanx a lot "Ethan Buchman"
