you_changeStatusValidator
描述:构造并返回 修改节点参与共识的状态 的交易数据
parameter
参数名 | 类型 | 描述 |
---|---|---|
nonce | number | 对应交易的 Nonce,防止重用签名 |
mainAddress | string | mainPubKey 对应的共识地址 |
status | number | 共识状态, 0 - 不参与共识,1 - 参与共识 |
return
参数名 | 数据类型 | 备注 |
---|---|---|
data | string | rlp编码后的十六进制数据 |
example
Request:
curl -X POST \
http://127.0.0.1:8283 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"you_changeStatusValidator","params":[100, "0x8E036959E057F0df5FFa0211A2548194C6Cb08FF", 1]}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xdb0599d8948e036959e057f0df5ffa0211a2548194c6cb08ff016480"
}