es/ae/aens.js
async function query (name) {
  const o = await this.getName(name)
  const nameId = o.id

  return Object.freeze(Object.assign(o, {
    pointers: o.pointers || {},
    update: async (target, options) => {
      return {
        ...(await this.aensUpdate(nameId, target, options)),
        ...(await this.aensQuery(name))
      }
    },
    transfer: async (account, options) => {
      return {
        ...(await this.aensTransfer(nameId, account, options)),
        ...(await this.aensQuery(name))
      }
    },
    revoke: async (options) => this.aensRevoke(nameId, options)
  }))
}
async function query (name) {
  const o = await this.getName(name)
  const nameId = o.id

  return Object.freeze(Object.assign(o, {
    pointers: o.pointers || {},
    update: async (target, options) => {
      return {
        ...(await this.aensUpdate(nameId, target, options)),
        ...(await this.aensQuery(name))
      }
    },
    transfer: async (account, options) => {
      return {
        ...(await this.aensTransfer(nameId, account, options)),
        ...(await this.aensQuery(name))
      }
    },
    revoke: async (options) => this.aensRevoke(nameId, options)
  }))
}
async function query ( name ) { const o = await this . getName ( name ) const nameId = o . id return Object . freeze ( Object . assign ( o , { pointers : o . pointers || { } , update : async ( target , options ) => { return { ... ( await this . aensUpdate ( nameId , target , options ) ) , ... ( await this . aensQuery ( name ) ) } } , transfer : async ( account , options ) => { return { ... ( await this . aensTransfer ( nameId , account , options ) ) , ... ( await this . aensQuery ( name ) ) } } , revoke : async ( options ) => this . aensRevoke ( nameId , options ) } ) ) }
Query the status of an AENS registration
@instance
@function
@alias module:@aeternity/aepp-sdk/es/ae/aens
@param {string} name
@return {Promise<Object>}
Query the status of an AENS registration