Exemplo n.º 1
0
def send_hash_list(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/get/hashlist/" + chat_id)
Exemplo n.º 2
0
def get_anon_hash(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/get/anonhash/" + chat_id)
Exemplo n.º 3
0
def add_anon_hash(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + "/user/form/anonhash/" + chat_id, data)
Exemplo n.º 4
0
def get_transactions(address: str, contract: str):
    return Rest.get(BCS_API_URL + '/address/' + address + '/contract-txs/' + contract)
Exemplo n.º 5
0
def check_address_exists(address: str):
    return Rest.get(BASE_API_URL + "/address/" + address)
Exemplo n.º 6
0
def get_person_hash(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/used/person/" + chat_id)
Exemplo n.º 7
0
def get_address_contract():
    return Rest.get(BASE_API_URL + '/user/address/')
Exemplo n.º 8
0
def update_user(chat_id: str, data: object):
    return Rest.put(BASE_API_URL + '/user/' + chat_id, data)
Exemplo n.º 9
0
def get_user_transaction(chat_id: str):
    return Rest.get(BASE_API_URL + '/user/transaction/' + chat_id)
Exemplo n.º 10
0
def get_user(chat_id: str):
    print(BASE_API_URL + '/user/' + chat_id)
    return Rest.get(BASE_API_URL + '/user/' + chat_id)
Exemplo n.º 11
0
def create_user(chat_id: str, data: object):
    print(BASE_API_URL + '/user/' + chat_id, data)
    return Rest.post(BASE_API_URL + '/user/' + chat_id, data)
Exemplo n.º 12
0
def get_users():
    return Rest.get(BASE_API_URL + '/users')
Exemplo n.º 13
0
def get_user_hash(chat_id: str):
    return Rest.get(BASE_API_URL + '/user/hash/' + chat_id)
Exemplo n.º 14
0
def form_user_hash(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + '/user/formhash/' + chat_id, data)
Exemplo n.º 15
0
def get_used_private(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/used/hash/" + chat_id)
Exemplo n.º 16
0
def update_user_transaction(chat_id: str, data: object):
    return Rest.put(BASE_API_URL + '/user/transaction/' + chat_id, data)
Exemplo n.º 17
0
def send_used_private(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + "/user/add/hash/" + chat_id, data)
Exemplo n.º 18
0
def delete_user_transaction(chat_id: str):
    return Rest.delete(BASE_API_URL + "/user/transaction/" + chat_id)
Exemplo n.º 19
0
def put_person_hash(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + "/user/add/person/" + chat_id, data)
Exemplo n.º 20
0
def get_api_balance(address: str, contract: str):
    return Rest.get(BCS_API_URL + '/address/' + address + '/contract-txs/' + contract)