Passing address through Note Field - Algorand

Passing address through Note Field

post by hernandp on May 6, 2022

I would like to pass an address in Note Field to be used in TEAL code. It is possible to “cast” the Note field to an address type in Teal 6?

I tried several encodings but got logic eval error: not an address

Thanks.

post by Ben on May 7, 2022

You should pass the address as the 32 byte version not the 58 byte version, depending on the sdk you’re using it’ll be something like decodeAddress("ABC123..") to get the 32 byte version.