Function createOracleDelegationSignature

  • Helper to generate a signature to delegate register/extend/respond of a Oracle to a contract.

    Returns

    Signature for delegation

    Example

    const aeSdk = new AeSdk({ ... })
    const contractId = 'ct_asd2ks...' // contract address
    const queryId = 'oq_...' // Oracle Query Id
    const onAccount = await aeSdk.address() // Sign with a specific account
    // Oracle register and extend signature
    const oracleDelegationSig = await aeSdk.createOracleDelegationSignature(contractId)
    // Oracle respond signature
    const respondSig = await aeSdk.createOracleDelegationSignature(contractId, { queryId })

    Parameters

    • contractId: `ct_${string}`

      Contract Id

    • opt: any

      Options

    Returns Promise<string>

Generated using TypeDoc