UnfreezeBalance

POST: http://172.104.51.182:16667/wallet/unfreezebalance

Unstake Wel that has passed the minimum stake duration to release bandwidth and energy and at the same time WEL Power will reduce and all votes will be canceled

BODY PARAMS

{

owner_address string

resource string

receiver_address string

permission_id int32

visible boolean

}

Notes:

  • owner_address is default hexString

  • resource is stake Wel for 'BANDWIDTH' or 'ENERGY'

  • receiver_address is optional,the address that will lose the resource, default hexString

  • permission_id is optional, for multi-signature use

  • visible is optional, Whether the address is in base58 format.

Input:

{

"owner_address": "WRSrWnjsK5ePhAVQGHr2JSFdKSjE3vKwE7",

"resource": "ENERGY",

"visible": true

}

Response:

{

"visible": true, "txID": "90eda9c182369c06e7dad3db7ac2cf72f6f2da8a77f4d5a5b97adefd2b2a5ed1", "raw_data": { "contract": [ { "parameter": { "value": { "resource": "ENERGY", "owner_address": "WRSrWnjsK5ePhAVQGHr2JSFdKSjE3vKwE7" }, "type_url": "type.googleapis.com/protocol.UnfreezeBalanceContract" }, "type": "UnfreezeBalanceContract" } ], "ref_block_bytes": "383e", "ref_block_hash": "205f2dfb256d5783", "expiration": 1640134338000, "timestamp": 1640134278356 }, "raw_data_hex": "0a02383e2208205f2dfb256d578340d0cbfffcdd2f5a55080c12510a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e6365436f6e747261637412190a1541a9c46373aeb4749e3ce45aca242b027a46f486f9500170d4f9fbfcdd2f"

}

=> Continue call gettransactionsign API then call broadcasttransaction API

We will the final result: The transaction created success on WEL network.

{

"result":true,

"txid":"90eda9c182369c06e7dad3db7ac2cf72f6f2da8a77f4d5a5b97adefd2b2a5ed1"

}

Last updated