Skip to main content
Anchor to SubscriptionContractCalculation

SubscriptionContractCalculation

union

Requires the read_own_subscription_contracts or write_own_subscription_contracts scope.

The result of a subscription contract calculation, returned by the subscriptionContractCalculation query. Because calculations run asynchronously, the concrete type reflects the calculation's current state: SubscriptionContractCalculationPending while it's still processing, SubscriptionContractCalculationSuccess once it's ready to commit, or SubscriptionContractCalculationFailure if it failed, whose errors field describes what went wrong. Poll the query until the type is no longer pending.

•OBJECT

A subscription contract calculation that has failed.

•OBJECT

A subscription contract calculation that is still processing asynchronously.

•OBJECT

A subscription contract calculation that has completed successfully.


Was this section helpful?