I build codes using , store message on chain , wallet tran…

Mehdi ·

I build codes using , store message on chain , wallet transactions...

Replies

metamitya ·

which chain? bsv? got a github?

Mehdi ·

Yes BSV ready OP return output

Mehdi ·

https://whatsonchain.com/tx/8be5681508f956f0e7e4204259f4508b49e45a24c60509bcab1ab7f5acf9720a

metamitya ·

nice

nice
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()) `