Skip to content
Wallet APIs
getDatatokenBaseInfo

getDatatokenBaseInfo

Get info of a monetized file (defined as Data token in our system).

Usage

await dataverseConnector.getDatatokenBaseInfo(datatokenId);

Parameters

  • string - data token ID.

Returns

{
  "address": "0xD0f57610CA33A86d1A9C8749CbEa027fDCff3575",
  "collect_info": {
    "collect_nft_address": "0x0000000000000000000000000000000000000000",
    "sold_list": [],
    "price": {
      "amount": "0.0001",
      "currency": "WMATIC",
      "currency_addr": "0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"
    },
    "sold_num": 0,
    "total": "100",
    "who_can_free_collect": []
  },
  "content_uri": "kjzl6kcym7w8y6ds8izvyh2shsxkihazva6chw8m2aa158gx0w4i71y263uc4v7",
  "owner": "0xdC4b09aBf7dB2Adf6C5b4d4f34fd54759aAA5Ccd",
  "source": ""
}