API Docs
Watcher Links Management
Provision Watcher Link

Provision Watcher Link

Generates a new watcher link

Example

mutation provisionWatcherLink {
  provisionWatcherLink(input: { uname: "subaccount_name", mpn: BTC }) {
    watcherLink {
      createdAt
      miningProfileName
      code
      views
    }
  }
}

Response

{
  "data": {
    "provisionWatcherLink": {
      "watcherLink": {
        "createdAt": "",
        "miningProfileName": "BTC",
        "code": "",
        "views": 0
      }
    }
  }
}

Arguments

  • input (ProvisionWatcherLinkInput!)

The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.

type ProvisionWatcherLinkInput {
  clientMutationId: String
  uname: String!
  mpn: MiningProfileName!
}
  • clientMutationId (String) An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client.

  • uname (String!)

  • mpn (MiningProfileName!)

    enum MiningProfileName {
      ARRR
      BTC
      DASH
      DCR
      KMD
      LBC
      SC
      SCP
      ZEC
      ZEN
      EQUI
      TBTC
      ETH
      TETH
    }

Type

ProvisionWatcherLinkPayload

The output of our provisionWatcherLink mutation.

type ProvisionWatcherLinkPayload {
  clientMutationId: String
  watcherLink: WatcherLink
  query: Query
  watcherLinkEdge(orderBy: [WatcherLinksOrderBy!] = [PRIMARY_KEY_ASC]): WatcherLinksEdge
}
Fields
  • clientMutationId (String) The exact same clientMutationId that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations.

  • watcherLink (WatcherLink)

  • query (Query)

  • watcherLinkEdge (WatcherLinksEdge) An edge for our WatcherLink. May be used by Relay 1.

    type WatcherLinksEdge {
      cursor: Cursor
      node: WatcherLink!
    }
    • orderBy (WatcherLinksOrderBy!)
      The method to use when ordering WatcherLink.

      enum WatcherLinksOrderBy {
        NATURAL
        ID_ASC
        ID_DESC
        CODE_ASC
        CODE_DESC
        PRIMARY_KEY_ASC
        PRIMARY_KEY_DESC
      }