Helper to generate a signature to delegate pre-claim/claim/transfer/revoke of a name to a contract.
Signature for delegation
const aeSdk = new AeSdk({ ... })const contractId = 'ct_asd2ks...' // contract addressconst name = 'example.chain' // AENS nameconst onAccount = await aeSdk.address() // Sign with a specific account// Preclaim signatureconst preclaimSig = await aeSdk.createAensDelegationSignature(contractId, { onAccount: current })// Claim, transfer and revoke signatureconst aensDelegationSig = await contract.createAensDelegationSignature( contractId, { name, onAccount: current })
Contract Id
Options
Generated using TypeDoc
Helper to generate a signature to delegate pre-claim/claim/transfer/revoke of a name to a contract.
Returns
Signature for delegation
Example