Skip to content
LogoLogo

getPricingInfo

Read which pricing scheme a datatoken uses, straight from the chain.

Usage

const  = await (, '0xDatatokenAddress...', ) 
 
. // 'fixed' | 'free' | 'none'

Returns

getFixedRates() returns a history rather than a shortlist: a deactivated exchange stays listed on the datatoken. Only an active one is reported as 'fixed', so a datatoken whose exchanges are all dead falls through to its dispenser, or to 'none'.

Parameters

signer

  • Type: Signer

datatokenAddress

  • Type: string

Get it from the asset with getDatatokenForService(asset, serviceId).

config

  • Type: Config | undefined

The chain config. Read it from the instance with getOceanConfig.