#How to use app_client.get_box()
1 messages · Page 1 of 1 (latest)
what specific problem are you encountering when trying to recreate the key?
It's says box not found
how are you recreating the key
I'm submitting a bytes value
b"to_alloc_" + deployer.address.encode() + b"-" + token_id.to_bytes(8, "big")
b"to_alloc_" is the prefix
SigningAccount
ok
so that needs to be DECODED
because it's a base32 encoded address
of length 58
i think that might be the issue, although i usually use the algopy Account class as key
it doesn't have decode method.
not totally sure if .bytes from Account works the same
i knw
you need to get it
from algosdk.encoding
it's actually a str value
import decode_address
import decode_address from algosdk.encoding, and decode the deployer address from base32 to bytes
then try using that
it works now, thanks
np
imma need your help most times, cause i am not really reacding docs, just rawdogging this to a prototype