Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
How to save data to a blockchain and how to query it

I am currently working an Online Birth Certificate Registration System using blockchain for my final year project. I have incorporated Moralis in my project to handle the users and linked it to Ganache. I am asking if anyone could tell me how to save information from an html form into the blockchain. I have checked online but no one seems to have the exact answers I'm looking for. Below is the HTML form as well as the Smart contract: When I click on "add details", I want all the information collected to be saved to the blockchain.

  1. I would like to figure out the corresponding JavaScript code
  2. I would like to know the smart contract and Javascript code you can use to query the blockchain so it can display this information so it can be printed out as a Birth Certificate for example.

contract Obdrs {

    uint256 dateOfBirth; //save date as unix timestamp or use a string
    string gender;
    string fullName;
    string placeOfBirth;
    string motherFullname;
    string motherNrc;
    string fatherFullname;
    string fatherNrc;
    string bo; //birthOccurence
    string permanentAddress;
    string contactNumber;
    //... with all of your properties

    function storeBirthCertificate(uint256 _dateOfBirth, string calldata _gender, string calldata _fullName, 
    string calldata _placeOfBirth, string calldata _motherFullname, string calldata _motherNrc, string calldata _fatherFullname,
    string calldata _fatherNrc, string calldata _bo, string calldata _permanentAddress, string calldata _contactNumber) public {

        dateOfBirth = _dateOfBirth;
        gender = _gender;
        fullName = _fullName;
        placeOfBirth = _placeOfBirth;
        motherFullname = _motherFullname;
        motherNrc = _motherNrc;
        fatherFullname = _fatherFullname;
        fatherNrc = _fatherNrc;
        b0 = _bo;
        permanentAddress = _permanentAddress;
        contactNumber = _contactNumber;

    }
}```

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda