DissociateWallet

Dissociate Wallet with the authenticated account in the bearer token.

rpc DissociateWallet

user_api.v1.DissociateWallet

Dissociate Wallet with the authenticated account in the bearer token.

requests DissociateWalletRequest

user_api.v1.DissociateWalletRequest

FieldTypeDescription
didstringW3C Decentralized Identifier (DID) of the wallet to be associated with the account in the bearer token.
resp, _ := userApiService.DissociateWallet(ctx, &v1.DissociateWalletRequest{
  Did: "did:method-name:zDIDMultibase58Encoded",
})
fmt.Println(resp)
const dissociatewalletrequest = new DissociateWalletRequest();
dissociatewalletrequest.setDid("did:method-name:zDIDMultibase58Encoded");

service.dissociateWallet(dissociatewalletrequest, (err, value:DissociateWalletResponse|null) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
using System;
using Grpc.Core;
using UserApi.V1;

namespace main
{
  class Program
  {
    static void Main(string[] args)
    {
      Channel channel = new Channel("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io:443", ChannelCredentials.Insecure); 
      var client = new UserApiService.UserApiServiceClient(channel); 
      var headers = new Metadata();
      var dissociateWalletRequest = new DissociateWalletRequest{
        Did = "did:method-name:zDIDMultibase58Encoded",
      };
      var reply = client.DissociateWallet(dissociateWalletRequest, headers);
      Console.WriteLine("Response: " + reply);
      channel.ShutdownAsync().Wait();
    }
  }
}
package demo;

import io.grpc.Channel;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import user_api.v1.User.DissociateWalletRequest;
import user_api.v1.User.DissociateWalletResponse;
import user_api.v1.UserApiServiceGrpc;

public class App {
  public static void main(String[] args) {
    ManagedChannel channel = ManagedChannelBuilder
      .forAddress("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
      .usePlaintext()
      .build();
    UserApiServiceGrpc.UserApiServiceBlockingStub blockStub =
        UserApiServiceGrpc.newBlockingStub(channel);
    
    DissociateWalletRequest req_DissociateWalletRequest =
        DissociateWalletRequest.newBuilder()
          .setDid("did:method-name:zDIDMultibase58Encoded")
          .build();
    DissociateWalletResponse resp = blockStub.dissociateWallet(req_DissociateWalletRequest);
    System.out.println(resp);
    channel.shutdown();
  }
}
const dissociatewalletrequest = new DissociateWalletRequest();
dissociatewalletrequest.setDid("did:method-name:zDIDMultibase58Encoded");

service.dissociateWallet(dissociatewalletrequest, (err, value) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
extern crate grpc-sdks;
use tonic::transport::Channel;

use grpc-sdks::user_api::v1::user_api_service_client::UserApiServiceClient;
use grpc-sdks::user_api::v1::DissociateWalletRequest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  let channel = Channel::from_static("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io")
    .connect()
    .await?;
  let mut client = UserApiServiceClient::new(channel); 

  let request = tonic::Request::new(
    DissociateWalletRequest{
      did: String::from("did:method-name:zDIDMultibase58Encoded")
    });
// sending request and waiting for response
  let response = client.dissociate_wallet(request).await?.into_inner();
  println!("RESPONSE={:?}", response);
  Ok(())
}
package app

import io.grpc.ManagedChannelBuilder
import user_api.v1.User.DissociateWalletRequest
import user_api.v1.User.DissociateWalletResponse
import user_api.v1.UserApiServiceGrpc

fun main() {
    val channel = ManagedChannelBuilder
            .forAddress("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
            .usePlaintext()
            .build()
    var blockStub = UserApiServiceGrpc.newBlockingStub(channel)
    
    val req_DissociateWalletRequest = DissociateWalletRequest.newBuilder()
          .setDid("did:method-name:zDIDMultibase58Encoded")
          .build()
    val resp = blockStub.dissociateWallet(req_DissociateWalletRequest)
    println(resp)
    channel.shutdown()
}


returns DissociateWalletResponse

user_api.v1.DissociateWalletResponse

{}