miner withdrawbalance API

This commit is contained in:
LexLuthr
2022-07-29 20:09:49 +05:30
parent a843c52e38
commit 4f03486011
9 changed files with 118 additions and 57 deletions
+30
View File
@@ -170,6 +170,8 @@
* [StorageReportHealth](#StorageReportHealth)
* [StorageStat](#StorageStat)
* [StorageTryLock](#StorageTryLock)
* [Withdraw](#Withdraw)
* [WithdrawBalance](#WithdrawBalance)
* [Worker](#Worker)
* [WorkerConnect](#WorkerConnect)
* [WorkerJobs](#WorkerJobs)
@@ -3662,6 +3664,34 @@ Inputs:
Response: `true`
## Withdraw
### WithdrawBalance
WithdrawBalance allows to withdraw balance from miner actor to owner address
Specify amount as "0" to withdraw full balance. This method returns a message CID
even when StateWaitMessage() fails and reciept exit code is non-zero
User should check for message execution manually if this method returns a
"Timeout waiting for withdrawl message" error.
Perms: admin
Inputs:
```json
[
"0",
42
]
```
Response:
```json
{
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
}
```
## Worker