About code i use bsvlib python library her IS code `from bs…

Mehdi ·

About code i use bsvlib python library her IS code `from bsvlib import Wallet
from bsvlib.constants import Chain

w = Wallet(chain=Chain.MAIN)

w.add_key('KyVxW9pdr5QHzPWeZxkHizKX7bVqj92MmAJEV1MpRHTqs7C1kqHe')
print(w.get_balance(refresh=True))


token_metadata = [
"iam excited about tree chat good job, keep working"]

# Create the transaction with OP_RETURN output containing token metadata
# Manually include the OP_RETURN opcode in the pushdatas list
tx = w.create_transaction(pushdatas=token_metadata, combine=True)

# Broadcast the transaction
print(tx.broadcast()) `