한국어
B3, Basement, ENS, Lens, 그리고 Farcaster로부터의 소셜 아이덴티티 데이터를 포함한 무료 통합 온체인 아이덴티티 집계 서비스
GET https://profiles.b3.fun/?address=0x1234567890abcdef1234567890abcdef12345678 GET https://profiles.b3.fun/?name=vitalik.eth GET https://profiles.b3.fun/?name=sean.b3.fun
POST /preference
POST /display-name
{ "name": "vitalik.eth", "address": "0x1234567890abcdef1234567890abcdef12345678", "avatar": "https://example.com/avatar.jpg", "bio": "Ethereum 공동 창립자", "displayName": "Vitalik Buterin", "profiles": [ { "type": "ensdata", "address": "0x123...", "name": "vitalik.eth", "avatar": "https://...", "bio": null, "displayName": null }, { "type": "thirdweb-farcaster", "address": "0x123...", "name": "vitalik", "avatar": "https://...", "bio": "Ethereum 공동 창립자", "displayName": "Vitalik Buterin" } ] }
// 주소로 프로필 가져오기 const response = await fetch('https://profiles.b3.fun/?address=0x123...'); const profile = await response.json(); console.log(profile.displayName); // "Vitalik Buterin" console.log(profile.profiles.length); // 찾은 출처의 수
// ENS 이름으로 프로필 가져오기 const response = await fetch('https://profiles.b3.fun/?name=vitalik.eth'); const profile = await response.json(); console.log(profile.address); // 해결된 지갑 주소 console.log(profile.avatar); // ENS 아바타 URL
// 서명을 통해 선호하는 프로필 출처 설정 const message = `SetProfilePreference:${address}:thirdweb-farcaster:${timestamp}`; const signature = await wallet.signMessage(message); await fetch('https://profiles.b3.fun/preference', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ key: address, preferredType: 'thirdweb-farcaster', signature, signer: address, timestamp }) });
?fresh=true