aens Query( name: ` ${ string } .chain ` , opt: { onNode: Node } & AensUpdateOptions & AensTransferOptions ) : Promise < Readonly < TransformNodeType < NameEntry > & { extendTtl: ( ( nameTtl: number , options?: Omit < Parameters < typeof aensQuery > [ 1 ] , "onNode" | "onCompiler" | "onAccount" > ) => ReturnType < typeof aensUpdate > & ReturnType < typeof aensQuery > ) ; id: Name ; owner: AccountAddress ; pointers: KeyPointers | NamePointer [] ; revoke: ( ( options?: Omit < Parameters < typeof aensRevoke > [ 1 ] , "onNode" | "onCompiler" | "onAccount" > & { onAccount?: AccountBase } ) => ReturnType < typeof aensRevoke > ) ; transfer: ( ( account: AccountAddress , options?: Parameters < typeof aensQuery > [ 1 ] ) => ReturnType < typeof aensUpdate > & ReturnType < typeof aensQuery > ) ; ttl: number ; update: ( ( pointers: KeyPointers , options?: Omit < Parameters < typeof aensQuery > [ 1 ] , "onNode" | "onCompiler" | "onAccount" > & { onAccount?: AccountBase } ) => ReturnType < typeof aensUpdate > & ReturnType < typeof aensQuery > ) } > >
Returns Promise < Readonly < TransformNodeType < NameEntry > & { extendTtl: ( ( nameTtl: number , options?: Omit < Parameters < typeof aensQuery > [ 1 ] , "onNode" | "onCompiler" | "onAccount" > ) => ReturnType < typeof aensUpdate > & ReturnType < typeof aensQuery > ) ; id: Name ; owner: AccountAddress ; pointers: KeyPointers | NamePointer [] ; revoke: ( ( options?: Omit < Parameters < typeof aensRevoke > [ 1 ] , "onNode" | "onCompiler" | "onAccount" > & { onAccount?: AccountBase } ) => ReturnType < typeof aensRevoke > ) ; transfer: ( ( account: AccountAddress , options?: Parameters < typeof aensQuery > [ 1 ] ) => ReturnType < typeof aensUpdate > & ReturnType < typeof aensQuery > ) ; ttl: number ; update: ( ( pointers: KeyPointers , options?: Omit < Parameters < typeof aensQuery > [ 1 ] , "onNode" | "onCompiler" | "onAccount" > & { onAccount?: AccountBase } ) => ReturnType < typeof aensUpdate > & ReturnType < typeof aensQuery > ) } > >
Query the AENS name info from the node and return the object with info and predefined functions for manipulating name
Returns
Example