Developers

{r}elinkd is excited for onboarding developers so if you are willing to integrate {r}elinkd or build on top - feel free to reach out in our community chats

{r}elinkd profile is based on 3 types of smart contracts that empower the blockchain-based nature of the product.

  1. RelinkdDomain.sol - ERC721 token contract with the ability to create domains (means: mint tokens).

getDomainInfo

function getDomainInfo(string name) external view returns (bool busy, address linkedProfile, address owner, uint256 tokenId)

Parameters

Name
Type
Description

name

string

domain name

Returns

Name
Type
Description

busy

bool

true - domain is busy, else - false

linkedProfile

address

linked profile contract address

owner

address

owner address

tokenId

uint256

id of domain NFT

  1. RelinkdProfile.sol - contract with single owner, gets an ability to construct own Web3-profile and mint NFTs with summary of the profile in metadata.

getProfile

function getProfile() external view returns (string, struct RelinkdProfile.ProfileBlock[], uint256[], struct IStruct.CoversInfo)

method used to get main profile information

Returns

Name
Type
Description

_0

string

style

_1

RelinkdProfile.ProfileBlock[]

blocks array

_2

uint256[]

blocks order array

_3

IStruct.CoversInfo

metadata

Profile contains block structures (for example, Links container):

 struct ProfileBlock {
        string blockType; // email
        string blockPayload; // {"contents": "test@gmail.com", "verified": true, ""}
        string blockDescription; // "Main email: test@gmail.com" // if not empty - show in tokenURI
    }
  1. RelinkdFactory.sol - contract that serves to deploy profiles and to mint domains. Also includes only-admin-access governance methods.

All the profiles are created through the Factory

createProfile

function createProfile(string style, IStruct.CoversInfo metadata, bool withDomain, uint256 tokenId) external nonpayable

method used to create new profile

Parameters

Name
Type
Description

style

string

style

metadata

IStruct.CoversInfo

metadata for profile NFTs

withDomain

bool

true - link with domain, else - false

tokenId

uint256

tokenId of domain NFT

As part of our product development, we are working to release the {r}SDK that developers can use to connect to the {r}elinkd ecosystem.

Join our private builders chat for early access 👇

Jump in!

Last updated