On this page

latest contributor to this doc

Last Edit:

@smk762

Delegations

The experimental::staking::query::delegations method returns information about your node's staking. Currently QTUM and tQTUM (test tokens avalable at https://testnet-faucet.qtum.info/), along with Cosmos/Tendermint coins are supported.

StructureTypeDescription
coinstringthe coin being staked
info_detailsobjectCosmos Only. A standard StakingInfoDetails object.

POST
experimental::staking::query::delegations
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "experimental::staking::query::delegations",
  "params": {
    "coin": "tQTUM"
  },
  "id": 0
}

{
  "mmrpc": "2.0",
  "result": {
    "staking_infos_details": {
      "type": "Qtum",
      "amount": "0",
      "staker": null,
      "am_i_staking": false,
      "is_staking_supported": true
    }
  },
  "id": 0
}

{
    "mmrpc": "2.0",
    "result": {
        "staking_infos_details": {
            "type": "Qtum",
            "amount": "8",
            "staker": "qbgHcqxXYHVJZXHheGpHwLJsB5epDUtWxe",
            "am_i_staking": true,
            "is_staking_supported": true
        }
    },
    "id": null
}

POST
experimental::staking::delegations
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "experimental::staking::query::delegations",
  "mmrpc": "2.0",
  "params": {
    "coin": "ATOM",
    "info_details": {
      "type": "Cosmos",
      "limit": 20,
      "page_number": 1
    }
  }
}

{
  "mmrpc": "2.0",
  "result": {
      "delegations": [
          {
              "validator_address": "iva1qq93sapmdcx36uz64vvw5gzuevtxsc7lcfxsat",
              "delegated_amount": "7.77",
              "reward_amount": "0.000000767283749739569999"
          }
      ]
  },
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "No such coin ATOM",
  "error_path": "lp_coins",
  "error_trace": "lp_coins:5228] lp_coins:5032]",
  "error_type": "NoSuchCoin",
  "error_data": {
      "coin": "ATOM"
  },
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "Error parsing request: unknown variant `UTXO`, expected `Qtum` or `Cosmos`",
  "error_path": "dispatcher",
  "error_trace": "dispatcher:122]",
  "error_type": "InvalidRequest",
  "error_data": "unknown variant `UTXO`, expected `Qtum` or `Cosmos`",
  "id": null
}