You can get all the solana addresses connected to a given 0x addresss by using the Wallet API:
Try Demo
Code
queryMyQuery { Wallet( input: {identity: "0xe0235804378c31948e81441f656d826ee5998bc6", blockchain: ethereum} ) {farcaster: socials(input: {filter: {dappName: {_eq: farcaster}}}) { connectedAddresses { # Fetch all SOL connected addresses from Farcaster (if any) address chainId blockchain timestamp } } domains { multiChainAddresses { # Fetch all SOL address registered with ENS (if any) address symbol } } }}
{"data": {"Wallet": {"farcaster": [ {"connectedAddresses": [ // No SOL address connected in FC {"address":"0xe0235804378c31948e81441f656d826ee5998bc6","chainId":"1","blockchain":"ethereum","timestamp":"2023-07-04T18:54:04Z" } ] } ],"domains": [ {"multiChainAddresses": [ {// This is the SOL address registered by user in ENS"address":"GJQUFnCu7ZJHxtxeaeskjnqyx8QFAN1PsiGuShDMPsqV","symbol":"SOL" }, {"address":"0xe0235804378c31948E81441f656D826eE5998Bc6","symbol":"ETH" } ] } ] } }}
Get All Web3 Social Accounts (Farcaster, Lens) and ENS Domains Resolved From Solana Address
You can resolve a Solana addresses to their web3 socials and ENS Domains (including offchain domains, e.g. Namestone & cb.id) using the Wallet API:
Get All The Solana addresses from a given ENS name
You can get the Solana addresses of ENS names by using the Domains API and checking through the registered multichainAddresses field that has symbol equal to SOL:
{"data": {"Domains": {"Domain": [ {"multiChainAddresses": [ {"address":"0xe0235804378c31948E81441f656D826eE5998Bc6","symbol":"ETH" }, {// This is the SOL address registered by user in ENS"address":"GJQUFnCu7ZJHxtxeaeskjnqyx8QFAN1PsiGuShDMPsqV","symbol":"SOL" } ] } ] } }}
Get All The Solana addresses from a given Namestone Subdomain or cb.id (Offchain)
You can get the 0x addresses of offchain domains (Namestone/cb.id) by using the Domains API: