Create account

replied 1d
A script which uses this utility: send-file-to-memo.py
replied 1d
You can try to post the Bible or other books to BCH chain, like what BSV did years ago
replied 1d
If you have each part as a reply, can use rollup feature to combine them, e.g. https://memo.cash/post/209cca1919306abbc3d0d06f97899555c19e82c9fe6887d211a126649714da43?roll
replied 7h
replied 7h
3. The posts should be displayed in ascending order by reply time, but currently the order is reversed.
replied 7h
2. Some posts are missing (my script sends a reply post every 10 seconds). The missing posts are shown in the reply zone.
replied 7h
1. Leading spaces or tabs in each line of code are not displayed. This is especially problematic for Python code.
replied 1d
It's tough to for big posts that require multiple transactions. I'd always hoped BCH would increase OP_RETURN size, but doesn't seem like that will happen.
replied 1d
You can try to post the Bibel or other books to BCH chain, like what BSV did years ago
replied 1d
["memo-msg", tx, "".join(accumulated)], capture_output=True, text=True
)
print(result.stdout)


if __name__ == "__main__":
main()
replied 1d
accumulated = [line]
time.sleep(5)
else:
accumulated.append(line)

if accumulated:
result = subprocess.run(
replied 1d
result = subprocess.run(
["memo-msg", tx, "".join(accumulated)], text=True, capture_output=True
)
print(result.stdout)
replied 1d
sys.exit(1)

accumulated = []

for line in lines:
test_content = "".join(accumulated) + line
if len(test_content.encode("utf-8")) > MAX_BYTES:
replied 1d
print(f"File not found: {filepath}", file=sys.stderr)
sys.exit(1)
except Exception as e:
print(f"File read failed: {e}", file=sys.stderr)
replied 1d
filepath = sys.argv[2]

try:
with open(filepath, "r", encoding="utf-8") as f:
lines = f.readlines()
except FileNotFoundError:
replied 1d
print(f"Usage: {sys.argv[0]} <TX> <FILE>", file=sys.stderr)
sys.exit(1)

tx = sys.argv[1]
if len(tx) != 64:
print("TX invalid")
sys.exit(1)
replied 1d
#!/usr/bin/env python
import subprocess
import sys
import time

MAX_BYTES = 184


def main():
if len(sys.argv) != 3: