Function aensPreclaim

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

    Parameters

    Returns Promise<Readonly<Awaited<ReturnType<typeof sendTransaction>> & {
        claim: ((opts?) => ReturnType<typeof aensClaim>);
        commitmentId: string;
        salt: number;
    }>>

    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
    }

Generated using TypeDoc