get_associated_token_address works for mainnet only
tomasjur opened this issue · comments
Hi,
get_associated_token_address in /spl/token/instructions.py works well, but gets an associated address which is in mainnet. It's kind of okay, but I need a devnet wallet address while developing.
Anyway, I could specify the endpoint? I have a workaround for this, but using this function as others with/from the AsyncClient or AsyncToken would help to minimize the code.
Thanks!
You set the endpoint when you initialize the client:
https://github.com/michaelhly/solana-py#api-client