People Registry

TOOLSDOCUMENTS

This is a people registry where you map a person and his details to his ETH address. Only the owner of the contract can add and remove people.

Exposed methods

join Adds somebody to the registry

can only be called by the owner

parameter nametypedetails
_addressaddressThe ETH address of the person
_firstNamestringFirst Name
_lastNamestringLast Name
_locationstringHis address (ex: Romania, Constanta, etc.)
_birthDateintegerBirthdate in epoch time
_idstringPersonal Identification Number ( SSN, CNP, etc.)
_genderinteger0 = Male, 1 = Female

remove Removes somebody from the registry

parameter nametypedetails
_addressaddressThe ETH address of the person you want to delete

getNumberOfPeople returns the number of people in the registry

check checks if somebody is in the registry

parameter nametypedetails
_addressaddressThe ETH address of the person you want to check

getPeople get the current status of the transaction

parameter nametypedetails
_addressaddressThe ETH address of the person you want to get details of

Return details

valuedetails
stringFirst Name
stringLast Name
stringLocation
uint256Birthdate
stringID
intGender 0 = Male, 1 = Female
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract