• XSS.stack #1 – первый литературный журнал от юзеров форума

Как сгенерировать USDT Tether кошелек?

Raskolnikov

RAID-массив
Пользователь
Регистрация
17.01.2019
Сообщения
79
Реакции
20
Вопрос в заголовке
Без сторонних сервисов, pywallet не обновляется уже длительное время и не работает на новых версиях питона, поэтому эта либа не интересует
 
question in the title
Without third-party services, pywallet has not been updated for a long time and does not work on new versions of python, so this lib is not of interest
You will need to build the library yourself or use wrappers and take code from them.
 
Пожалуйста, обратите внимание, что пользователь заблокирован
Используй веб3 на питоне и создай сидку, а после делай что хочешь! По контракту потом можешь отправлять тезер и т.д
 
Используй веб3 на питоне и создай сидку, а после делай что хочешь! По контракту потом можешь отправлять тезер и т.д
web3 это erc20 контракт, мне нужен Omni Protocol
 
You'll need the bitcoinlib library to interact with the Bitcoin blockchain and the Omni Layer.

Python:
from bitcoinlib.keys import HDKey

def generate_bitcoin_wallet():
    root_key = HDKey.from_master_secret(b'your-random-entropy-here')
    child_key = root_key.child_key(0)

    private_key = child_key.private_key()
    address = child_key.address()

    return private_key, address

# Generate a new Bitcoin wallet
private_key, address = generate_bitcoin_wallet()

print("Private Key:", private_key)
print("Address:", address)

Python:
from bitcoinlib.transactions import Transaction

def create_usdt_omni_wallet(from_address):
    # Omni Layer Protocol ID for USDT (Tether)
    usdt_protocol_id = 31

    # Create a transaction for simple send
    tx = Transaction() 
    tx.add_input(txid='00'*32, index=0)  # Add a dummy input
    tx.add_output(value=0, n=0, scriptPubKey=from_address.to_script_pub_key())
    tx.add_omni_output(usdt_protocol_id, amount=0, propertyid=31, to_address=from_address)
    tx.sign(from_address.private_key())

    raw_transaction = tx.serialize()

    return raw_transaction

# Replace "your_address" with the address object generated in the previous step
raw_transaction = create_usdt_omni_wallet(your_address)
print("Raw Transaction:", raw_transaction)
 
You'll need the bitcoinlib library to interact with the Bitcoin blockchain and the Omni Layer.

Python:
from bitcoinlib.keys import HDKey

def generate_bitcoin_wallet():
    root_key = HDKey.from_master_secret(b'your-random-entropy-here')
    child_key = root_key.child_key(0)

    private_key = child_key.private_key()
    address = child_key.address()

    return private_key, address

# Generate a new Bitcoin wallet
private_key, address = generate_bitcoin_wallet()

print("Private Key:", private_key)
print("Address:", address)

Python:
from bitcoinlib.transactions import Transaction

def create_usdt_omni_wallet(from_address):
    # Omni Layer Protocol ID for USDT (Tether)
    usdt_protocol_id = 31

    # Create a transaction for simple send
    tx = Transaction()
    tx.add_input(txid='00'*32, index=0)  # Add a dummy input
    tx.add_output(value=0, n=0, scriptPubKey=from_address.to_script_pub_key())
    tx.add_omni_output(usdt_protocol_id, amount=0, propertyid=31, to_address=from_address)
    tx.sign(from_address.private_key())

    raw_transaction = tx.serialize()

    return raw_transaction

# Replace "your_address" with the address object generated in the previous step
raw_transaction = create_usdt_omni_wallet(your_address)
print("Raw Transaction:", raw_transaction)
Большое спасибо, дружище!
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх