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

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\xddq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\xd9I\x9e\x1c\x11\xfd\xd0\xb1K\x90ET,\xebQ\xd0\x1d\x85\xbaM\xe7K\xe87wA\xee\x9e|\x82\x00e0 \xa9\xc7\xdb\xf0Dh\xcf\x89\x8fyP_\xee\xb1sz{\xcd\xe0\xcdHy6\xf4\xc4\xd8)\xc9G\x96\xfa\xa3\x91\xc2\xfe\x03\x01\x8c\x07_\x99\x1d\x00\x00'"'

It’s a formating issue, probably because of the quotation characters interspersed, you’re accidentally escaping bashes quotes.

You can try encoding the entire tx as hex, and then submitting it as tx=0xabcd...

that’s right. i used “base58” encoding and it worked correctly and i can store and retrieve file content. thanx a lot "Ethan Buchman" :pray: :pray: :pray:

1 Like