def set_profile_picture(PrivateKey, picture_url, fee=2): # Sets profile text on memo.cash account # url(217) lst_of_pushdata = [(ACTION_SET_PROFILE_PICTURE, 'hex'), (picture_url, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def post_topic_message(PrivateKey, topic_name, message, fee=2): # Sets profile text on memo.cash account # topic_name(variable), message(214 - topic length) lst_of_pushdata = [(ACTION_POST_TOPIC_MESSAGE, 'hex'), (topic_name, 'utf-8'), (message, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def set_profile_text(PrivateKey, profile_text, fee=2): # Sets profile text on memo.cash account # message(217) lst_of_pushdata = [(ACTION_SET_PROFILE_TEXT, 'hex'), (profile_text, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def unfollow_user(PrivateKey, address, fee=2): # Sets profile text on memo.cash account # address(35) lst_of_pushdata = [(ACTION_UNFOLLOW_USER, 'hex'), (address, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def post(PrivateKey, post, fee=2): # Posts on memo.cash account # message(217) lst_of_pushdata = [(ACTION_POST, 'hex'), (post, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def reply(PrivateKey, tx_hash, reply, fee=2): # Replies on memo.cash account # txhash(30), message(184) lst_of_pushdata = [(ACTION_REPLY, 'hex'), (tx_hash, 'hex'), (reply, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def set_name(PrivateKey, new_name, fee=2): # Sets name of memo.cash account to new_name # name(217) lst_of_pushdata = [(ACTION_SET_NAME, 'hex'), (new_name, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def topic_unfollow(PrivateKey, topic_name, fee=2): # Sets profile text on memo.cash account # topic_name(variable) lst_of_pushdata = [(ACTION_TOPIC_UNFOLLOW, 'hex'), (topic_name, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def reply_to_posts(PrivateKey, txhash, text, fee=2): # Sets name of blockpress.com account to new_name # txhash(32) Text (184 bytes) lst_of_pushdata = [(BLOCKPRESS_SET_NAME, 'hex'), (txhash, 'hex'), (text, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def create_text_post(PrivateKey, text, fee=2): # Sets name of blockpress.com account to new_name # text(217) (upgraded from 77 bytes) lst_of_pushdata = [(BLOCKPRESS_CREATE_TEXT_POST, 'hex'), (text, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)
def set_name(PrivateKey, new_name, fee=2): '''Sets name of blockpress.com account to new_name param: new_name(77 bytes)''' lst_of_pushdata = [(BLOCKPRESS_SET_NAME, 'hex'), (new_name, 'utf-8')] return bchpusher.bchpush(PrivateKey, lst_of_pushdata, fee=fee)