Micro Documentation

Commodities

This object represents a transactable enitity (e.g. A video, concert ticket, etc.)

Related guides:



The Commodity Object

Attributes
{
    "hash": "17c7f31e-34e1-4fee-b569-46f793877df4",
    "descriptor": "ARCADE.PONG",
    "dq": "410ddbac7c8a259da8dfcc5f55bcb28b77d29be9c540a2c23444b416d584801c30",
    "cost": 50,
    "hostname": "41622cd3b78e361489de8dedf2b591a4.micro-staging.biz.todaq.net"
}


Create a Commodity

POST /v2/commodity/
Parameter
descriptor string
dq string
cost number
Returns

Returns the commodity object after successful creation. Raises an error if create parameters are invalid.



Get a Commodity

GET /v2/commodity/:hash
Returns

Returns the commodity object. Raises an error if the commodity does not exist.