Function aensQuery

  • Query the AENS name info from the node and return the object with info and predefined functions for manipulating name

    Parameters

    Returns Promise<Readonly<TransformNodeType<NameEntry> & {
        extendTtl: ((nameTtl, options?) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>);
        id: Name;
        owner: AccountAddress;
        pointers: KeyPointers | NamePointer[];
        revoke: ((options?) => ReturnType<typeof aensRevoke>);
        transfer: ((account, options?) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>);
        ttl: number;
        update: ((pointers, options?) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>);
    }>>

    Example

    const nameObject = sdkInstance.aensQuery('test.chain')
    console.log(nameObject)
    {
    id, // name hash
    pointers, // array of pointers
    update, // Update name function
    extendTtl, // Extend Ttl name function
    transfer, // Transfer name function
    revoke // Revoke name function
    }

Generated using TypeDoc