GetUniqs
Retrieves the uniqs owned by the caller.
Service | Operation |
---|---|
blockchain | GET_UNIQS |
Method Parameters
Parameter | Description |
---|---|
integrationId | The blockchain integration id. Currently only 'default' is supported. |
contextJson | Optional. Reserved for future use. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string integrationId = "default";
string contextJson = "{}";
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.BlockchainService.GetUniqs(integrationId, contextJson, successCallback, failureCallback);
const char *integrationId = "default";
const char *contextJson = "{}";
_bc->getBlockchainService()->getUniqs(integrationId, contextJson, this);
NSString *integrationId = @"default";
NSString *contextJson = "{}";
BCCompletionBlock successBlock; // define callback
BCErrorCompletionBlock failureBlock; // define callback
[[_bc blockchainService] getUniqs:
integrationId:integrationId
contextJson:contextJson
completionBlock:successBlock
errorCompletionBlock:failureBlock
cbObject:nil];
String integrationId = "default";
String contextJson = "{}";
this; // implements IServerCallback
_bc.getBlockchainService().getUniqs(integrationId, contextJson, this);
public void serverCallback(ServiceName serviceName, ServiceOperation serviceOperation, JSONObject jsonData)
{
System.out.print(String.format("Success | %s", jsonData.toString()));
}
public void serverError(ServiceName serviceName, ServiceOperation serviceOperation, int statusCode, int reasonCode, String jsonError)
{
System.out.print(String.format("Failed | %d %d %s", statusCode, reasonCode, jsonError.toString()));
}
var integrationId = "default";
var contextJson = {};
_bc.blockchain.getUniqs(integrationId, contextJson, result =>
{
var status = result.status;
console.log(status + " : " + JSON.stringify(result, null, 2));
});
var integrationId = "default";
var contextJson = {};
ServerResponse result = await _bc.blockchainService.getUniqs(integrationId:integrationId, contextJson:contextJson);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
var integrationId = "default";
var contextJson = {};
var blockchainProxy = bridge.getBlockchainServiceProxy();
var postResult = blockchainProxy.getUniqs(integrationId, contextJson);
if (postResult.status == 200) {
// Success!
}
{
"service": "blockchain",
"operation": "GET_UNIQS",
"data":
{
"integrationId": "default",
"contextJson": {}
}
}
JSON Response
{
"data": {
"success": true,
"response": {
"uniqs": [
{
"key": "...........m2",
"payer": "eosio.nftram",
"json": {
"id": 290,
"mint_date": "2022-10-19T13:03:10",
"serial_number": 17,
"token_factory_id": 22
}
}
]
}
},
"status": 200
}