I'm trying to set up a managedata operation. I added the following to my transaction:

.append_manage_data_op(data_name="Hello", data_value="World")

However, it doesn't go through. Apparently the correct syntax is data_value='Union[Keypair, str]'. So I tried this:

.append_manage_data_op(data_name="Hello", data_value='Union[keypair, "World"]')

But it still doesn't work. Note in the above code 'keypair' is a variable representing 'Keypair.from_secret(my_secret).

What is Union and do I need to replace it with something else to make the transaction go through?

New contributor
Pickinanameainteasy is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Pickinanameainteasy is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.