Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &

Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &
Key item features Ultimate Security: Generates a private key that remains on the card, safeguarding crypto and NFTs from hackers with EAL6+ certification and audited firmware. Versatile Compatibility: Manages over 13,000 tokens across 70+ blockchains, supporting DeFi, NFTs, and DeEx without wires, Bluetooth, or USB. Effortless Operation: Utilizes NFC for secure transactions via a mobile device and the Tangem app, enabling buying and selling crypto with various payment methods. Smart Backup: Features a second Tangem Wallet as a backup, eliminating the need for paper, pictures, or seed phrases for recovery. Durable Design: Boasts IP68 protection against environmental conditions, ensuring longevity and robust physical security. Comprehensive Support: Compatible with Bitcoin, Ethereum, Solana, XRP, USDT, and over 6,000 cryptocurrencies, integrating with dApps and WalletConnect.

LBANK

Use OP_TRUE as output address

For research and testing purposes, I am trying to create a transaction that uses custom or weird scripts on its outputs, obviously on a testing environment. To not make things too complicated, I just simply want to use OP_TRUE as the script. For this reason, I construct the output as such:

def  create_outputs(params):
vouts = []
val_per_out = 0.005
...
     out = {
          "51": val_per_out, #I use "51" as address because I saw it's the hex representation for OP_TRUE
     }
  vouts.append(out)
...
return vouts

Then, I create the transaction:

vouts = create_outputs(params)
raw_tx = rpc_connection.createrawtransaction(vins, vouts, nLockTime)

However, when execution gets to the last line of code, it throws <JSONRPCException '-5: Invalid Bitcoin address: 51'>. I assume that the issue, obviously, is that just putting 51 as the address is not valid, but I do not know how can I use the custom script then, so any help would be greatly appreciated.



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/QjIZkPr
via IFTTT

Popular posts from this blog

Crypto Exec Warns Tokenization Is Moving Faster Than Expected

Bitcoin Mining Could Be Strengthening The Ruble, Russian Central Bank Says

Nigerian SEC Partners With Police To Tackle Crypto Ponzi Schemes – Details