Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web3/packages/web3-eth-ens/types/index.d.ts>Registry

Deno / TypeScript to Ethereum Connector
Latest
class Registry
import { Registry } from "https://deno.land/x/web3@v0.11.1/packages/web3-eth-ens/types/index.d.ts";

Constructors

new
Registry(ens: Ens)

Properties

contract: Contract | null
ens: Ens

Methods

deprecated
getOwner(name: string, callback?: (value: any) => void): Promise<string>
getOwner(name: string, callback?: (error: Error, address: string) => void): Promise<string>
deprecated
getResolver(name: string, callback?: (value: any) => void): Promise<Contract>
getResolver(name: string, callback?: (error: Error, contract: Contract) => void): Promise<Contract>
deprecated
getTTl(name: string, callback?: (value: any) => void): Promise<string>
getTTl(name: string, callback?: (error: Error, ttl: string) => void): Promise<string>
deprecated
owner(name: string, callback?: (error: Error, address: string) => void): Promise<string>
deprecated
owner(name: string, callback?: (value: any) => void): Promise<string>
deprecated
resolver(name: string, callback?: (error: Error, contract: Contract) => void): Promise<Contract>
deprecated
resolver(name: string, callback?: (value: any) => void): Promise<Contract>
setOwner(
name: string,
address: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setResolver(
name: string,
address: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setSubnodeOwner(
name: string,
label: string,
address: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setTTL(
name: string,
ttl: string | number,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>