setPricing
Set how the service is paid for.
Required for a new service, since it needs its own datatoken. Blocked for a published one — a new pricing config mints a new datatoken and so changes the service id; use nautilus.setServicePrice instead.
Usage
// Free: a dispenser hands out one datatoken on request.
.({ : 'free' })
// Fixed price: a fixed-rate exchange sells datatokens for a base token.
.({
: 'fixed',
: {
: '0x...',
: '0x...',
: '0x...',
: 18,
: 18,
: '2.5',
: '0',
: true
}
}) Returns
- Type:
ServiceBuilder
The service builder instance, to chain further calls with.