Trait multiversx_sc_modules::dns::DnsModule
source · pub trait DnsModule: ContractBase + Sized {
// Required method
fn dns_proxy(&self, to: ManagedAddress<Self::Api>) -> Proxy<Self::Api>;
// Provided method
fn dns_register(
&self,
dns_address: ManagedAddress<Self::Api>,
name: ManagedBuffer<Self::Api>
) { ... }
}
Expand description
Standard smart contract module that deals with registering usernames in a DNS contract.
Elrond usernames/herotags need to be requested by the beneficiary. For a contract, this means that they need an endpoint via which to request a username from the DNS.