Eos: How to transfer the eos in the refund to the balance?in cleos

Created on 15 Jun 2018  ยท  13Comments  ยท  Source: EOSIO/eos

up

Most helpful comment

this did it

./cleos push action eosio refund '{"owner": "youraccountname"}' -p youraccountname

All 13 comments

it may be automatically back to the balance when stake time is expired

will it be automatically or do we have to call the refund function. Also if we have to call the refund function must it be called with @owner or @active.

If must have call refund function, then what is the cleos command?

according to the code,refund is a deferred transaction

eosio::transaction out; out.actions.emplace_back( permission_level{ from, N(active) }, _self, N(refund), from ); out.delay_sec = refund_delay; out.send( from, receiver, true );

It is automatic. The deferred transaction executes a transfer inline action when it is triggered at the end of its deferral period.

@jgiszczak My eos is still in Refund after 72 hours, do you know why?

did anyone figure out the cleos command for refund?

judging by the following example output from ./cleos get account i don't think its automatic, i think you have to explicitly call eosio::refund
e.g.
time of unstake request: 2018-06-16T09:11:54 (available to claim now with 'eosio::refund' action)

this did it

./cleos push action eosio refund '{"owner": "youraccountname"}' -p youraccountname

@marketstack it works, thanks!

Hi @marketstack thank you for sharing that!

./cleos -u https://node1.eoscannon.io push action eosio refund '{"owner": "youraccountname"}' -p youraccountname full command

Did this post conclude that refunds are not automatic? Or that refunds have to be triggered manually in some circumstances?

Refunds are nominally automatic but the deferred transaction may expire before being successfully incorporated into a block. At that point a manual refund must be invoked, as described.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bezalel picture bezalel  ยท  3Comments

ResponsiveWebApps picture ResponsiveWebApps  ยท  3Comments

dimakomar picture dimakomar  ยท  3Comments

hadramidah picture hadramidah  ยท  3Comments

Npizza picture Npizza  ยท  3Comments