Add Delegation
API-v2add_delegation
The add_delegation
method initiates your node's staking of a compatible coin. Currently QTUM and tQTUM (test tokens available at https://testnet-faucet.qtum.info/
) have been integrated, but this functionality will be expanded to more coins in future.
Note: Only UTXOs of 100 QTUM / tQTUM will be actively staked. It is recommended to consolidate your balance into a single UTXO before initiating delegated staking. After running add_delegation
, you will need to broadcast the returned hex via send_raw_transaction
to complete the process. Staking will only work with legacy QTUM addresses (segwit addresses are not supported).
Parameter | Type | Required | Description |
---|---|---|---|
coin | string | ✓ | The coin being staked. |
staking_details.type | string | ✓ | The protocol being staked. |
staking_details.address | string | ✓ | The delegated staker address. |
Add Delegation
POST
add_delegation{
"userpass": "RPC_UserP@SSW0RD",
"mmrpc": "2.0",
"method": "add_delegation",
"params": {
"coin": "tQTUM",
"staking_details": {
"type": "Qtum",
"address": "qcyBHeSct7Wr4mAw18iuQ1zW5mMFYmtmBE"
}
},
"id": 0
}