a16z / farcaster-py

A Python SDK for the Farcaster network
https://a16z.github.io/farcaster-py/
MIT License
123 stars 27 forks source link

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

Open CryptoGnome opened 8 months ago

CryptoGnome commented 8 months ago

Checklist

❓ Question

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

2xic commented 7 months ago

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>"))