On this page

latest contributor to this doc

Last Edit:

@smk762

Undelegate

The experimental::staking::undelegate method stops your node's staking of a compatible coin. Currently QTUM and tQTUM (test tokens avalable at https://testnet-faucet.qtum.info/) have been integrated, but this functionality will be expanded to more coins in future.

Note: After running experimental::staking::undelegate, you will need to broadcast the returned hex via send_raw_transaction to complete the process.

StructureTypeDescription
coinstringthe coin being staked
staking_detailsobjectA standard StakingDetails object.

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

{
  "mmrpc": "2.0",
  "result": {
      "tx_hex": "010000000102190027476663f3460ecdde6e8206d4ea711678004a5e6815d289d40432dff70100000069463043021f0097a1ddf4f26908503c7cc604887219c257b7cb58fee44b3f29a412377e670220449abbe69c5454dbb68b801afab7db974935e2ed3e6f97c71640888d910b1653012103d7cfe014b2003325143ddbed524181505138fd5e1dd46e0f766961b9b00963c9ffffffff020000000000000000225403a086010128043d666e8b140000000000000000000000000000000000000086c280710e54010000001976a914cb1514e3cf7ca146faec5b9fe3d089e93bd107ae88ac09020768",
      "tx_hash": "d9a85b27efc034ecc8383978da85fa23d620194fc4336b18b8a5aca897a63c3e",
      "from": [
          "qc5BakMDwHqXyCfA97SpZ7f6pTzc2kYa9W"
      ],
      "to": [
          "qc5BakMDwHqXyCfA97SpZ7f6pTzc2kYa9W"
      ],
      "total_amount": "57.096",
      "spent_by_me": "57.096",
      "received_by_me": "57.052",
      "my_balance_change": "-0.044",
      "block_height": 0,
      "timestamp": 1745289737,
      "fee_details": {
          "type": "Qrc20",
          "coin": "tQTUM",
          "miner_fee": "0.004",
          "gas_limit": 100000,
          "gas_price": 40,
          "total_gas_fee": "0.04"
      },
      "coin": "tQTUM",
      "internal_id": "",
      "transaction_type": "RemoveDelegation",
      "memo": null
  },
  "id": null
}

POST
experimental::staking::undelegate
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "experimental::staking::undelegate",
  "mmrpc": "2.0",
  "params": {
    "coin": "IRIS",
    "staking_details": {
      "type": "Cosmos",
      "validator_address": "iaa1ev23fc700js5d7hvtw0785yfayaazpawn8phv4",
      "amount": "0.777"
    }
  }
}

{
  "mmrpc": "2.0",
  "result": {
      "tx_hex": "0a9b010a93010a252f636f736d6f732e7374616b696e672e763162657461312e4d7367556e64656c6567617465126a0a2a696161316576323366633730306a7335643768767477303738357966617961617a7061776e3870687634122a69766131717139337361706d6463783336757a363476767735677a75657674787363376c6366787361741a100a05756972697312073737373030303018efdb960e12690a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103d7cfe014b2003325143ddbed524181505138fd5e1dd46e0f766961b9b00963c912040a020801180812150a0f0a05756972697312063134383138301090a10f1a40558357594f0c5d7ead4a27f92ef42c89e1285efad650974fb1737e0c6fa6cbcd513c649a40ed2da46f3f0ad74784506bb207750ee17451aee0c8a2b5aecb604c",
      "tx_hash": "EBC151EA45B80D7762F5FF431C9C116951F2C5AF132874E80A9A56AA394310AE",
      "from": [
          "iaa1ev23fc700js5d7hvtw0785yfayaazpawn8phv4"
      ],
      "to": [],
      "total_amount": "0.14818",
      "spent_by_me": "0.14818",
      "received_by_me": "0",
      "my_balance_change": "-0.14818",
      "block_height": 0,
      "timestamp": 0,
      "fee_details": {
          "type": "Tendermint",
          "coin": "IRIS",
          "amount": "0.14818",
          "gas_limit": 250000
      },
      "coin": "IRIS",
      "internal_id": "ebc151ea45b80d7762f5ff431c9c116951f2c5af132874e80a9a56aa394310ae",
      "transaction_type": "RemoveDelegation",
      "memo": ""
  },
  "id": null
}