Const
Address of contract to delegate access
The list of id's to prepend
Options
Optional
omitPrepend delegation signature with an account address
Account to use
Node to use
Signature
use methods sign*DelegationToContract
of Account instance instead
const aeSdk = new AeSdk({ ... })
const contractAddress = 'ct_asd2ks...'
const aensName = 'example.chain'
const onAccount = new MemoryAccount(...) // Sign with a specific account
// Preclaim signature
const preclaimSig = await aeSdk.createDelegationSignature(contractAddress, [], { onAccount })
// Claim, transfer and revoke signature
const aensDelegationSig = await aeSdk
.createDelegationSignature(contractAddress, [aensName], { onAccount })
const oracleQueryId = 'oq_...'
const onAccount = new MemoryAccount(...) // Sign with a specific account
// Oracle register and extend signature
const oracleDelegationSig = await aeSdk
.createDelegationSignature(contractAddress, [], { onAccount })
// Oracle respond signature
const respondSig = await aeSdk
.createDelegationSignature(contractAddress, [oracleQueryId], { onAccount, omitAddress: true })
Generated using TypeDoc
Helper to generate a signature to delegate