Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

192
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda