lbry-sdk icon indicating copy to clipboard operation
lbry-sdk copied to clipboard

Support methods should work with claim names as well

Open belikor opened this issue 2 years ago • 0 comments

Currently support_create and support_abandon only support claim_id as input.

https://github.com/lbryio/lbry-sdk/blob/e6efc1ad4a9a85003561ba175e2443097f3fb54d/lbry/extras/daemon/daemon.py#L4203-L4207

https://github.com/lbryio/lbry-sdk/blob/e6efc1ad4a9a85003561ba175e2443097f3fb54d/lbry/extras/daemon/daemon.py#L4316-L4318

It would be good if we could use a claim URI, name or channel name directly.

lbrynet support create --claim_id=5a23d1ca8cb8e6926902c5beafd725682bfac048 "10.0"
lbrynet support create "fight-the-SEC" "10.0"
lbrynet support create --claim_id=3fda836a92faaceedfe398225fb9b2ee2ed1f01a --keep="50.0"
lbrynet support create "@lbry:3f" --keep="50.0"

In my personal code I first do a claim_search on the URI or name to get the claim_id, and then pass it to support_create or support_abandon.

belikor avatar Jan 08 '22 04:01 belikor