Function aensPreclaim

  • Preclaim a name. Sends a hash of the name and a random salt to the node

    Example

    const name = 'test.chain'
    const salt = preclaimResult.salt // salt from pre-claim transaction

    await sdkInstance.aensPreclaim(name, { ttl, fee, nonce })
    {
    ...transactionResult,
    claim, // Claim function (options={}) => claimTransactionResult
    salt,
    commitmentId
    }

    Parameters

    Returns Promise<Readonly<Awaited<ReturnType<typeof send>> & { claim: ((opts?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>); commitmentId: string; height: number; salt: number }>>

Generated using TypeDoc