Returns the ABI associated with an MNS node. Defined in EIP205.
The MNS node to query
A bitwise OR of the ABI formats accepted by the caller.
[contentType,data] The content type of the return data value
Obtain a DNS record.
the namehash of the node for which to fetch the record
the keccak-256 hash of the fully-qualified name for which to fetch the record
the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types
the DNS record in wire format if present, otherwise empty
Returns the address of a contract that implements the specified interface for this name.
If an implementer has not been set for this interfaceID and name, the resolver will query
the contract at addr()
. If addr()
is set, a contract exists at that address, and that
contract implements EIP165 and returns true
for the specified interfaceID, its address
will be returned.
The MNS node to query.
The EIP 165 interface ID to check for.
The address that implements this interface, or 0 if the interface is unsupported.
Perform sendtocontract
The contract method to send to
The arguments to use
Optional
value: stringThe amount to send to the contract
Optional
gasLimit: numberThe amount of gas units allowed
Optional
gasPrice: numberThe satoshi price per gas
see Result
Sets the ABI associated with an MNS node. Nodes may have one ABI of each content type. To remove an ABI, set it to the empty string.
The node to update.
The content type of the ABI
The ABI data.
an array of TransactionReceipt objects
Sets the address associated with an MNS node. May only be called by the owner of that node in the MNS registry.
The node to update.
the slip44 id of the coin
The address to set.
an array of TransactionReceipt objects
Sets the contenthash associated with an MNS node. May only be called by the owner of that node in the MNS registry.
The node to update.
The contenthash to set
an array of TransactionReceipt objects
Set one or more DNS records. Records are supplied in wire-format. Records with the same node/name/resource must be supplied one after the other to ensure the data is updated correctly. For example, if the data was supplied: a.example.com IN A 1.2.3.4 a.example.com IN A 5.6.7.8 www.example.com IN CNAME a.example.com. then this would store the two A records for a.example.com correctly as a single RRSET, however if the data was supplied: a.example.com IN A 1.2.3.4 www.example.com IN CNAME a.example.com. a.example.com IN A 5.6.7.8 then this would store the first A record, the CNAME, then the second A record which would overwrite the first.
the namehash of the node for which to set the records
the DNS wire format records to set
an array of TransactionReceipt objects
Sets an interface associated with a name.
Setting the address to 0 restores the default behaviour of querying the contract at addr()
for interface support.
The node to update.
The EIP 165 interface ID.
The address of a contract that implements this interface for this node.
an array of TransactionReceipt objects
Sets the name associated with an MNS node, for reverse records. May only be called by the owner of that node in the MNS registry.
The node to update.
The name to set.
an array of TransactionReceipt objects
Sets the SECP256k1 public key associated with an MNS node.
The MNS node to query
the X coordinate of the curve point for the public key.
the Y coordinate of the curve point for the public key.
an array of TransactionReceipt objects
Sets the text data associated with an MNS node and key. May only be called by the owner of that node in the MNS registry.
The node to update.
The key to set.
The text data value to set.
an array of TransactionReceipt objects
Returns true if this contract implements the interface defined by
interfaceId
. See the corresponding
https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
to learn more about how these ids are created.
This function call must use less than 30 000 gas. Defined in EIP181.
The MNS node to query.
if the interface is supported
Class which can be used to interact with the PublicResolver