How to use createunstaketransaction?

Hi.

Is it possible to unskate a node using an RPC? I see in the code that there is a createunstaketransaction constant, but I don’t know how to use it.

Do you know, @duc?

If you wish to use the RPC method, here is the pattern.

{
    "id": 1,
    "jsonrpc": "1.0",
    "method": "createunstaketransaction",
    "params": [
        "prvkey",
        {
            "12RxahVABnAVCGP3LGwCn8jkQxgw7z1x14wztHzn455TTVpi1wBq9YGwkRMQg3J4e657AbAnCvYCJSdA9czBUNuCKwGSRQt55Xwz8WA": 0
        },
        10,
        0,
        {
            "UnStakingType": 210,
            "CandidatePaymentAddress": "paymentaddr",
            "PrivateSeed": "validatorkey"
        }
    ]
}
3 Likes