-
Notifications
You must be signed in to change notification settings - Fork 260
Mining Setting
linj edited this page Nov 23, 2022
·
1 revision
[TOC]
Request message:
{
"method":"Chain33.ConvertExectoAddr",
"params":[
{
"execname":"string"
}
]
}Parameter description:
| Parameter | Type | If Necessary | Description |
|---|---|---|---|
| execer | string | yes | actuator name |
Response message:
{
"result":"string"
}Parameter description:
| Parameter | Type | Description |
|---|---|---|
| result | string | actuator address |
Request message:
{
"method":"Chain33.CreateBindMiner",
"params":{
"bindAddr":"string",
"originAddr":"string",
"amount":int64,
"checkBalance":bool
}
}Parameter description:
| Parameter | Type | If Necessary | Description |
|---|---|---|---|
| bindAddr | string | yes | mining binding address |
| originAddr | string | yes | original address |
| amount | int64 | yes | BTY quantity to buy ticket |
| checkBalance | bool | yes | whether to conduct quota check |
Response message:
{
"result":[
{
"txhex":"string"
}
]
}Parameter description:
| Parameter | Type | Description |
|---|---|---|
| txhex | string | hexadecimal transaction strings |
Request message:
{
"id":int32,
"method":"ticket.SetAutoMining",
"params":[
{
"flag":int32
}
]
}Parameter description:
| Parameter | Type | If Necessary | Description |
|---|---|---|---|
| flag | int32 | yes | Identifier, 1 means start auto mining, 0 means close auto mining. |
Response message:
{
"id":int32,
"result":[
{
"isOK":true,
"msg":""
}
],
"error":null
}Parameter description:
| Parameter | Type | Description |
|---|---|---|
| isok | bool | When successful, return true; on failure, return false. |
| msg | string | When successful, is empty; On failure, return error message. |
hello world