Kenneth Falck@kennu·May 30

How do you read the default Lens Profile ID of a wallet address from the blockchain? I'm playing with docs.lens.xyz/docs/view-functions and I can read the profile data if I know the profile ID, but I don't know how to get the profile ID from a smart contract.

  • Kenneth Falck@kennu·May 30

    Ah, you can read the profile IDs using standard ERC-721 functions (balanceOf, tokenOfOwnerByIndex), but I'm not sure how to decide which one is the default profile.

    0