WithdrawBalance

POST: http://172.104.51.182:16667/wallet/withdrawbalance

Super Representative or user withdraw rewards, usable every 24 hours. Super representatives can withdraw the balance from the account allowance into the account balance, Users can claim the voting reward from the SRs and deposit into his account balance.

BODY PARAMS {

owner_address string

visible boolean (Optional)

}

Note:

  • owner_address is super representative or user address.

  • visible: whether the address is in base58check format.

Example:

curl --request POST --url http://172.104.51.182:16667/wallet/withdrawbalance --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' { "owner_address": "TGj1Ej1qRzL9feLTLhjwgxXF4Ct6GTWg2U", "visible": true }

Input:

{ "address": "WFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "visible": true }

Response:

{

"visible": true, "txID": "03a7ca7a342f68c6e9d8f9e28945153b54aca78db64e1546c3e77fdfc8395e3d", "raw_data": { "contract": [ { "parameter": { "value": { "owner_address": "WFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz" }, "type_url": "type.googleapis.com/protocol.WithdrawBalanceContract" }, "type": "WithdrawBalanceContract" } ], "ref_block_bytes": "37e6", "ref_block_hash": "b84ce7fcd70872a9", "expiration": 1640134074000, "timestamp": 1640134014126 }, "raw_data_hex": "0a0237e62208b84ce7fcd70872a94090bdeffcdd2f5a53080d124f0a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e576974686472617742616c616e6365436f6e747261637412170a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb070aee9ebfcdd2f"

}

==> Continue you call gettransactionsign API then call broadcasttransaction API

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

{

"result":true,

"txid":"03a7ca7a342f68c6e9d8f9e28945153b54aca78db64e1546c3e77fdfc8395e3d"

}

Last updated