eos icon indicating copy to clipboard operation
eos copied to clipboard

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

Open isifidio opened this issue 8 years ago • 13 comments

up

isifidio avatar Jun 15 '18 05:06 isifidio

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

sportsminer avatar Jun 15 '18 13:06 sportsminer

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.

ghost avatar Jun 15 '18 14:06 ghost

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

isifidio avatar Jun 15 '18 16:06 isifidio

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 );

sportsminer avatar Jun 15 '18 16:06 sportsminer

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

jgiszczak avatar Jun 15 '18 22:06 jgiszczak

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

yanxi123-com avatar Jun 18 '18 23:06 yanxi123-com

did anyone figure out the cleos command for refund?

judging by the following example output from ./cleos get account <account_name> 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)

marketstack avatar Jun 19 '18 00:06 marketstack

this did it

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

marketstack avatar Jun 19 '18 00:06 marketstack

@marketstack it works, thanks!

yanxi123-com avatar Jun 19 '18 02:06 yanxi123-com

Hi @marketstack thank you for sharing that!

ChenLi0830 avatar Jun 27 '18 18:06 ChenLi0830

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

mrzzcn avatar Jul 30 '18 11:07 mrzzcn

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

samkirton avatar Oct 31 '18 08:10 samkirton

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.

jgiszczak avatar Oct 31 '18 18:10 jgiszczak