Accounts
Last updated
Last updated
A Kade account is an onchain object stored as a resource under a user's aptos address, and can only be created after its usernames. The account objects includes:
A kid - a unique identifier of the user's account, usually a number representing the user's position in joining Kade
A username - a unique username chosen by the user on signup
profile_pic - the url to the user's profile picture
banner_url - the url to the user's profile banner image
A user first has to claim a username with their address, this will become their main identifier on the network.
A Kade account can then get created by calling the kade accounts smart contract on Aptos mainnet(currently on testnet). Creation of an account happens in a single transaction, which will involve the user sending out their username to the contract.
Creation of an account will trigger an account creation event which gets picked up by Kade's network of docks and written into the relational database for querying.
In order to start using a newly created account, user's have to add a delegate to their account, which also takes place through another transaction with the accounts smart contract.
Once done, the user has to fund the delegate in order to cover gas fees for on chain posting.