up
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
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.
Most helpful comment
this did it
./cleos push action eosio refund '{"owner": "youraccountname"}' -p youraccountname