farcaster-py icon indicating copy to clipboard operation
farcaster-py copied to clipboard

Is there a way to see associated ETH address connected to a user?

Open CryptoGnome opened this issue 2 years ago • 1 comments

Checklist

  • [ x] I've searched the project's issues.

❓ Question

Is there a way to see associated ETH address connected to a user?

CryptoGnome avatar Feb 14 '24 17:02 CryptoGnome

Yes, you can do the following

import os
from farcaster import Warpcast
from dotenv import load_dotenv
load_dotenv()

mnemonic = os.environ.get("<MNEMONIC_ENV_VAR>")
client = Warpcast(mnemonic=mnemonic)

# get the associated ETH address
print(client.get_custody_address("<USERNAME>"))

2xic avatar Apr 08 '24 11:04 2xic