Hierarchy

  • DwebContractWrapper
    • DWEBRegistry

Constructors

Properties

chainId: number
contract: Contract
contractConfig: ContractConfig
network: Network
provider: BaseProvider
signer?: Signer

Accessors

Methods

  • Assign default resolver contract to domain name. This is usually done during the registration process, but may be required if domain has no resolver set or if it is no compatible with Decentraweb.

    Parameters

    • name: string

    Returns Promise<TransactionResponse>

  • Get all domains owned by address on current network

    Parameters

    • address: string

      Ethereum address

    • skip: number
    • limit: number

    Returns Promise<{
        createdAt: Date;
        expiresAt: null | Date;
        isTLD: boolean;
        name: string;
        renewalFee: null | number;
    }[]>

  • Get reverse record for address.

    Important: address owner can set any name for his address, even if he doesn't own it, or it is not registered. To check that name is valid, we check that it resolves to the same address.

    Parameters

    • address: string
    • skipForwardCheck: boolean = false

      by default we check that returned name resolves to the same address. Set this to true to skip this check.

    Returns Promise<null | string>

  • Check if domain name exists. Note that name could be located on Ethereum or Polygon network. If name is currently on Polygon, it will not exist on Ethereum and vice versa.

    Parameters

    • name: string

    Returns Promise<boolean>

  • Set resolver contract for domain name. May be used to assign domain custom resolver contract.

    Be careful as this may break domain functionality if resolver contract is not compatible with Decentraweb.

    Parameters

    • name: string

      domain name you would like to work assign resolver to

    • address: string

      address of resolver contract

    Returns Promise<TransactionResponse>

  • Set reverse record for signer address. Don't forget to also assign this address to name.

    Parameters

    • name: string

    Returns Promise<TransactionResponse>

Generated using TypeDoc