a16z / farcaster-py

A Python SDK for the Farcaster network
https://a16z.github.io/farcaster-py/
MIT License
123 stars 29 forks source link

casting with a parent #741

Open reza-mousapour opened 4 months ago

reza-mousapour commented 4 months ago

There is a cast(name A for example) that I have and I know its hash. I want to cast another cast(name B) and I want A to be B's parent. I tried post_cast() but I couldn't figure out how should I give the parent field true information. I have tried: parent = hash_of _A parent = A(the ApiCast type) but none of them seemed to work. what is true format for doing this task? can you give me an example? I would appreciate it.

lalitmehra99 commented 3 months ago

parent = {"fid": int(parent_fid), "hash": cast_hash} client.post_cast(text="", parent=parent)

try this