Function aensTransfer

  • Transfer a domain to another account

    Parameters

    • name: `${string}.chain`

      AENS name

    • account: `ak_${string}`

      Recipient account publick key

    • options: AensTransferOptions

      Options

    Returns ReturnType<typeof sendTransaction>

    Transaction result

    Example

    const name = 'test.chain'
    const recipientPub = 'ak_asd23dasdas...'
    const nameObject = await sdkInstance.aensQuery(name)

    await sdkInstance.aensTransfer(name, recipientPub, { ttl, fee, nonce })
    // or
    await nameObject.transfer(recipientPub, { ttl, fee, nonce })

Generated using TypeDoc