Disconnect Exchange Wallet

Disconnect a specific exchange wallet in your organization.

Disconnect an Exchange Wallet

Mutation to disconnect a connected exchange wallet from an organization according to the exchange wallet's ID.

Note that this mutation can only occur on a wallet marked as "Exchange wallet" in its type.

mutation DisconnectWallet($walletId: String!) {
  disconnectWallet(walletId: $walletId) {
    success
  }
}

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body (walletId object)

NameTypeDescription

id*

String

Wallet ID

Example body:

{
  "walletId": "clpgvhulg000f6s0171foixj6"
}

Response

Return values:

NameTypeDescription

success

Boolean

Returns true if disconnect was successful, else false

{
  "data": {
    "disconnectWallet": {
      "success": true,
    }
  }
}

How do I retrieve my wallet ID?

In order to retrieve an organization's wallet ID, you'll need to call your organization wallets query first, to fetch the wallet's ID. The query below accepts a WalletWhereInput of an organizationId, and retrieves the wallet's ID and name in the response.

query Wallets($where: WalletWhereInput) {
  wallets(where: $where) {
    id
    name
  }
}

Try it out!

Last updated