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

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

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

Constructors

new
Ens(eth: Eth)

Properties

registry: Registry
registryAddress: string | null

Methods

deprecated
getAddress(name: string, callback?: (value: any) => void): Promise<string>
getAddress(name: string, callback?: (error: Error, address: string) => void): Promise<string>
deprecated
getContent(name: string, callback?: (value: any) => void): Promise<string>
getContent(name: string, callback?: (error: Error, contentHash: string) => void): Promise<string>
deprecated
getContenthash(name: string, callback?: (value: ContentHash) => void): Promise<ContentHash>
getContenthash(name: string, callback?: (error: Error, contenthash: ContentHash) => void): Promise<ContentHash>
deprecated
getMultihash(name: string, callback?: (value: any) => void): Promise<string>
getMultihash(name: string, callback?: (error: Error, multihash: string) => void): Promise<string>
deprecated
getOwner(name: string, callback?: (value: any) => void): Promise<string>
getOwner(name: string, callback?: (error: Error, owner: string) => void): Promise<string>
deprecated
getPubkey(name: string, callback?: (value: any) => void): Promise<{ [x: string]: string; }>
getPubkey(name: string, callback?: (error: Error, result: { [x: string]: string; }) => void): Promise<{ [x: string]: string; }>
deprecated
getResolver(name: string, callback?: (value: any) => void): Promise<Contract>
getResolver(name: string, callback?: (error: Error, contract: Contract) => void): Promise<Contract>
deprecated
getText(
name: string,
key: string,
callback?: (value: any) => void,
): Promise<string>
getText(
name: string,
key: string,
callback?: (error: Error, ensName: string) => void,
): Promise<string>
deprecated
getTTL(name: string, callback?: (value: any) => void): Promise<string>
getTTL(name: string, callback?: (error: Error, ttl: string) => void): Promise<string>
deprecated
isApprovedForAll(
owner: string,
operator: string,
callback?: (value: any) => void,
): Promise<boolean>
isApprovedForAll(
owner: string,
operator: string,
callback?: (error: Error, result: boolean) => void,
): Promise<boolean>
deprecated
recordExists(name: string, callback?: (value: any) => void): Promise<boolean>
recordExists(name: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
deprecated
resolver(name: string, callback?: (error: Error, contract: Contract) => void): Promise<Contract>
deprecated
resolver(name: string, callback?: (value: any) => void): Promise<Contract>
setAddress(
name: string,
address: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setApprovalForAll(
operator: string,
approved: boolean,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setContent(
name: string,
hash: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setMultihash(
name: string,
hash: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setOwner(
name: string,
address: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setPubkey(
name: string,
x: string,
y: string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setRecord(
name: string,
owner: string,
resolver: string,
ttl: number | 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>
setSubnodeRecord(
name: string,
label: string,
owner: string,
resolver: string,
ttl: number | string,
txConfig?: TransactionConfig,
callback?: (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => void,
): PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
setText(
name: string,
key: string,
value: 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>
deprecated
supportsInterface(
name: string,
interfaceId: string,
callback?: (value: any) => void,
): Promise<boolean>
supportsInterface(
name: string,
interfaceId: string,
callback?: (error: Error, supported: boolean) => void,
): Promise<boolean>