Interface that represents an Text Resolver

interface TextResolver {
    setText(node: string, key: string, value: string): Promise<Transaction>;
    supportsInterface(interfaceId: string): Promise<boolean>;
    text(node: string, key: string): Promise<string>;
}

Hierarchy

  • IERC165
    • TextResolver

Implemented by

Methods

  • 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.

    Parameters

    • node: string

      The node to update.

    • key: string

      The key to set.

    • value: string

      The text data value to set.

    Returns Promise<Transaction>

    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.

    Parameters

    • interfaceId: string

      The MNS node to query.

    Returns Promise<boolean>

    if the interface is supported

  • Returns the text data associated with an MNS node and key.

    Parameters

    • node: string

      The MNS node to query.

    • key: string

      The text data key to query.

    Returns Promise<string>

    The associated text data.