Function createAensDelegationSignature

  • Helper to generate a signature to delegate pre-claim/claim/transfer/revoke of a name to a contract.

    Returns

    Signature for delegation

    Example

    const aeSdk = new AeSdk({ ... })
    const contractId = 'ct_asd2ks...' // contract address
    const name = 'example.chain' // AENS name
    const onAccount = await aeSdk.address() // Sign with a specific account
    // Preclaim signature
    const preclaimSig = await aeSdk.createAensDelegationSignature(contractId, { onAccount: current })
    // Claim, transfer and revoke signature
    const aensDelegationSig = await contract.createAensDelegationSignature(
    contractId, { name, onAccount: current }
    )

    Parameters

    • contractId: `ct_${string}`

      Contract Id

    • opt: any

      Options

    Returns Promise<string>

Generated using TypeDoc