Link Search Menu Expand Document

Constructor: fragment.collectibleInfo

Back to constructors index

Info about a fragment collectible.

Attributes:

NameTypeRequiredDescription
purchase_dateintYesPurchase date (unixtime)
currencystringYesThree-letter ISO 4217 currency code for amount
amountlongYesTotal price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
crypto_currencystringYesCryptocurrency name.
crypto_amountlongYesPrice, in the smallest units of the cryptocurrency.
urlstringYesFragment URL with more info about the collectible

Type: fragment.CollectibleInfo

Example:

$fragment_collectibleInfo = ['_' => 'fragment.collectibleInfo', 'purchase_date' => int, 'currency' => 'string', 'amount' => long, 'crypto_currency' => 'string', 'crypto_amount' => long, 'url' => 'string'];