DetachBlockchainIdentity
Detaches the blockchain identity to the current profile.
Service | Operation |
---|---|
identity | DETACH_BLOCKCHAIN_IDENTITY |
Method Parameters
Parameter | Description |
---|---|
blockchainConfig | Identifies the block chain. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string blockchainConfig = "config";
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.IdentityService.DetachBlockchainIdentity(blockchainConfig, successCallback, failureCallback);
const char *blockchainConfig = "config";
_bc->getIdentityService()->detachBlockchainIdentity(blockchainConfig, this);
NSString *blockchainConfig = @"config";
BCCompletionBlock successBlock; // define callback
BCErrorCompletionBlock failureBlock; // define callback
[[_bc identityService] detachBlockchainIdentity:blockchainConfig
completionBlock:successBlock
errorCompletionBlock:failureBlock
cbObject:nil];
String blockchainConfig = "config";
this; // implements IServerCallback
_bc.getIdentityService().detachBlockchainIdentity(blockchainConfig, 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 blockchainConfig = "config";
_bc.identity.detachBlockchainIdentity(blockchainConfig, result =>
{
var status = result.status;
console.log(status + " : " + JSON.stringify(result, null, 2));
});
var blockchainConfig = "config";
ServerResponse result = await _bc.identityService.detachBlockchainIdentity(blockchainConfig:blockchainConfig);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
var blockchainConfig = "config";
var identityProxy = bridge.getIdentityServiceProxy();
var postResult = identityProxy.detachBlockchainIdentity(blockchainConfig);
if (postResult.status == 200) {
// Success!
}
{
"service": "identity",
"operation": "DETACH_BLOCKCHAIN_IDENTITY",
"data": {
"blockchainConfig": "config"
}
}