Create Profile
With our API's support for gasless mode, users can seamlessly establish their profile, ensuring smooth interaction within the platform. Here, we outline the parameters that need to be provided or are optional for creating a profile and provide insights on how each parameter contributes to the profile's representation on the platform.
Parameters
Handles (Required): The handle defines your unique bond handle name on the platform. It acts as a username or identifier, allowing other users to search, follow, or interact with your profile.
Profile Picture URI (Optional):
The profilePictureUriis a link pointing to an image stored in any cloud storage or online platform. If not provided, the platform will default to a standard image.Follow NFT URI (Optional): The
followNFTURIrepresents the metadata of the NFT that your followers will mint when they choose to follow you. It's dynamic by default, meaning if not specified, the NFT image will showcase the latest publication from your profile. While bond.network does not enforce any specific metadata standards, it's highly recommended to follow the OpenSea metadata specifications for better compatibility with secondary marketplaces.Reference: OpenSea Metadata Standards
Follow Module: Defining the follow module optimises user engagement on the platform. With our designed schema, setting this up becomes straightforward.
API Details
mutation CreateProfile($request: CreateProfileRequest!) {
createProfile(request: $request) {
... on AppRelayerResult {
txHash
profileId
}
... on AppRelayError {
error
}
}
}input CreateProfileRequest {
handle: CreateHandle!
# The profile picture uri
profilePictureUri: Url
# The follow module
followModule: FollowModuleParams
# The follow NFT URI is the NFT metadata your followers will mint when they follow you. This can be updated at all times. If you do not pass in anything it will create a super cool changing NFT which will show the last publication of your profile as the NFT which looks awesome! This means people do not have to worry about writing this logic but still have the ability to customise it for their followers
followNFTURI: Url
}
input FollowModuleParams {
# The follower fee follower module
feeFollowModule: FeeFollowModuleParams
# The empty follow module
emptyFollowModule: Boolean
}
Last updated