Helper to generate a signature to delegate register/extend/respond of a Oracle to a contract.
Signature for delegation
const aeSdk = new AeSdk({ ... })const contractId = 'ct_asd2ks...' // contract addressconst queryId = 'oq_...' // Oracle Query Idconst onAccount = await aeSdk.address() // Sign with a specific account// Oracle register and extend signatureconst oracleDelegationSig = await aeSdk.createOracleDelegationSignature(contractId)// Oracle respond signatureconst respondSig = await aeSdk.createOracleDelegationSignature(contractId, { queryId })
Contract Id
Options
Generated using TypeDoc
Helper to generate a signature to delegate register/extend/respond of a Oracle to a contract.
Returns
Signature for delegation
Example