Deal
The Deal interface represents a structure for deals in the marketplace. It contains information about the client, provider, resource, and terms of the deal.
Properties
-
id:bigintThe unique identifier of the deal. -
offerId:bigintThe ID of the related offer. -
client:AddressThe address of the client involved in the deal. -
provider:AddressThe address of the provider involved in the deal. -
resourceId:bigintThe ID of the resource associated with the deal. -
totalPayment:bigintThe total payment for the deal. -
blockedBalance:bigintThe balance blocked for the deal. -
terms:ObjectAn object containing terms of the deal:pricePerSecond:bigintPrice per second for the deal.minDealDuration:bigintMinimum duration of the deal.billFullPeriods:booleanIf true, bills full periods.singlePeriodOnly:booleanIf true, only a single period is billed.metadata:stringAdditional metadata for the deal.
-
status:ObjectAn object containing the status of the deal:active:booleanIndicates if the deal is active.createdAt:bigintTimestamp when the deal was created.acceptedAt:bigintTimestamp when the deal was accepted.billingStart:bigintTimestamp when billing started.cancelled:booleanIndicates if the deal is cancelled.cancelledAt:bigintTimestamp when the deal was cancelled.