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

214
Vistas
How to implement smart contract to add eth address record to refer the specific ENS subdomain name in solidity

I have wrote the smart contract for creating ENS subdomain name. I need to pass the reference ETH address record for that created subdomain name.This is the sample subdomain name that I was created. I need to add the ETH address inside the records using the smart contract without add manually.

    pragma solidity >=0.8.4;

import "./ENS.sol";

contract EnsSubdomain {
    ENS public immutable ens;
    bytes32 public immutable rootNode;

    constructor(ENS ensAddr, bytes32 node) {
        ens = ensAddr;
        rootNode = node;
    }

    function createSubdomain(
        bytes32 label,
        address owner,
        address resolver,
        uint64 ttl
    ) public {
        ens.setSubnodeRecord(rootNode, label, owner, resolver, ttl);
    }
}

Hereby I have attached the codebase that I have implemented in solidity to create the subdomain name.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I found a way to add the Eth address to the record for referring the specific subdomain name. I've used the public contract address "0xf6305c19e814d2a75429Fd637d01F7ee0E77d615" along with the ABI file provided for this contract address.

And implemented the method named "setAddr" that was published under the same ABI and the Contract address.

For more reference, Can visit the provided link.

https://rinkeby.etherscan.io/address/0xf6305c19e814d2a75429Fd637d01F7ee0E77d615#code

about 4 years ago · Juan Pablo Isaza Denunciar
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