PurchaseIntent
@totemsdk/edge / PurchaseIntent
Interface: PurchaseIntent<Resource, Constraints>
A generic demand-side intent.
Resource is an open-ended string (e.g. "compute", "storage", "bandwidth",
"energy", "sensor-data", "api", "robot-action"). Constraints is a typed
extensible payload — not an unrestricted giant Record.
Type Parameters
Resource
Resource extends string = string
Constraints
Constraints = unknown
Properties
constraints?
optionalconstraints?:Constraints
expiresAt?
optionalexpiresAt?:number
id
id:
string
maxSpend?
optionalmaxSpend?:object
amount
amount:
string
tokenId?
optionaltokenId?:string
negotiate?
optionalnegotiate?:boolean
preferredPaymentMethods?
optionalpreferredPaymentMethods?:string[]
provider?
optionalprovider?:string
quantity?
optionalquantity?:object
amount
amount:
string
unit
unit:
string
resource
resource:
Resource