-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(farcaster): enable offchain resolver to farcaster names #194 #203
base: master
Are you sure you want to change the base?
feat(farcaster): enable offchain resolver to farcaster names #194 #203
Conversation
Thanks @wa0x6e, I will jump now |
Tests are still failing
|
Can you also run |
And in src/addressResolvers/index.ts, you should import the new farcaster module and add it to the |
You can test the code manuall by sending the curl command
It should return {"jsonrpc":"2.0","result":{"codingsh.fcast.id":"0xd1a8Dd23e356B9fAE27dF5DeF9ea025A602EC81e"},"id":null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chore(farcaster): fix tscofing and package.json
2b70bef
to
b24f960
Compare
Results from curl -X POST http://localhost:3008/ -H "Content-Type: application/json" -d '{"method": "resolve_names", "params": [ "farcaster.fcast.id"] }'
// output
{"jsonrpc":"2.0","result":{"farcaster.fcast.id":"0xbf74483DB914192bb0a9577f3d8Fb29a6d4c08eE"},"id":null} The address |
Maybe that's something you can takeover @mktcode, ideally we would like to use the Farcaster profile name instead of Farcaster username. |
Will be continued here: #271 |
#194
This script provides functionality to interact with the Farcaster network by resolving user details based on Ethereum addresses and usernames. It utilizes two primary functions:
lookupAddresses
andresolveNames
. ThelookupAddresses
function fetches Farcaster user details, including usernames, verified Ethereum and Solana addresses, and profile picture URLs, based on a list of Ethereum addresses. TheresolveNames
function does similarly, but it resolves these details based on Farcaster usernames or domain names.Key Components:
.fcast.id
domains), fetches their details, and returns their information, similar tolookupAddresses
.Example Usage:
Output:
This will output user details for each provided Ethereum address and Farcaster handle, including their usernames, verified addresses on Ethereum and Solana, and profile picture URLs, if available.