Skip to main content
Version: 5.7.0

PublishUserItemToBlockchain

Publishes the specified item to the item management attached blockchain. Results are reported asynchronously via an RTT event.

ServiceOperation
userItemsPUBLISH_USER_ITEM_TO_BLOCKCHAIN

Method Parameters

ParameterDescription
itemIdThe unique id of the user item.
versionThe version of the user item being published.

Usage

http://localhost:3000
string itemId = "aaa-bbb-ccc-ddd";
int version = 1;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.UserItemsService.PublishUserItemToBlockchain(itemId, version, successCallback, failureCallback);