create_item_asset
Create new item/asset.
Header Parameters
x-cache-id string
Possible values: Value must match regular expression ^[a-z0-9]{32}$
An idempotent key for retrieving cached responses from the node
application/json
Request Body required
Create a new item/asset
item_amount number
The amount of Item
assets to create
script_public_key string
Address
public_key string
Key-pair to use for the creation of the item-assets
signature string
Signature to use for the creation of the item-assets
drs_tx_hash_spec string
Whether to create Item
assets that contain the default DRS identifier
Responses
- 200
- 400
Successful operation
application/json
Schema
Example (from schema)
Schema
id string
The ID of the call, which corresponds to the x-cache-id used in the header
status string
The status of the call, which will be one of either "Success", "Error", or "Pending"
reason string
The reason for the status of the call. Most useful to debug errors
route string
The endpoint route that was called
content object
asset object
asset object
Item object
amount number
drs_tx_hash string
metadata string
extra_info string
to_address string
tx_hash string
{
"id": "4d1e5754af0931a15138445c3ecd1a82",
"status": "Success",
"reason": "Debug data successfully retrieved",
"route": "debug_data",
"content": {
"asset": {
"asset": {
"Item": {
"amount": 1000,
"drs_tx_hash": "default_drs_tx_hash",
"metadata": null
}
},
"extra_info": null
},
"to_address": "b46f37c1dc444f76eed55eee851dcbc34b8795ed1c7731a638d578e2803bfb01",
"tx_hash": "default_drs_tx_hash"
}
}
Invalid input
application/json
Schema
Example (from schema)
Schema
id string
status string
reason string
route string
content string
{
"id": null,
"status": "Error",
"reason": "Bad Request",
"route": null,
"content": null
}
Loading...