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

213
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
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