Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
126 views

Can a smart contract perform actions on a scheduled delay indefinitely?

I am pretty new to working with EOS, so please excuse my ignorance and improper terminology. I am trying to repeatedly excecute a given action on a set time delay. For example, trying to submit a ...
Ian goodall-halliwell's user avatar
0 votes
1 answer
64 views

COMPILATION ERROR error: static_assert failed "Something went wrong. Please report this issue to the github

Getting an error when the code reaches this particular function. Is there something obvious I am missing here? Kindly Note this is Deferred transaction Please ask if anything else is required from ...
guruprakash gupta's user avatar
0 votes
1 answer
187 views

Deferred transaction on EOS [duplicate]

Is it 100% sure that deferred transaction will run on what delay is defined? Is there any possibility that deferred transaction failed to run on defined day? If it fails what is the alternative? ...
guruprakash gupta's user avatar
2 votes
0 answers
118 views

Where are deferred transaction errors logged to?

I'm trying to learn about deferred transactions. I'm creating a bogus deferred transaction that invokes a non-existent action "fakeaction": transaction out{}; out.actions.emplace_back(...
Fabiana Cecin's user avatar
1 vote
1 answer
520 views

Authorisation failure with deferred transaction

I have a contract action that does some cleanup: void token::cleanup() { ... } that I want to run asynchronously from another action like this: schedule("cleanup", 10). my scheduling method looks ...
ekkis's user avatar
  • 515
0 votes
1 answer
108 views

delay_sec is not accurate for deferred transaction

I have set some seconds but sometimes it is delayed more than 10 minutes. I know that delay_sec is not the accurate time because of the block production mechanism. The real time is much later than it ...
crax's user avatar
  • 111
1 vote
1 answer
103 views

Can a deferred transaction make the initial transaction fail

Imagine a user sending me some eosio.token to my contract and when I receive the notification, I start a new deferred transaction that fails later. Can the deferred transaction make the initial ...
rawinput's user avatar
3 votes
2 answers
118 views

Is is possible to defer a non abi action using a abi action?

I know we can defer a action in EOS, I invoke a non-abi action from an abi action like this: eosio::transaction txn{}; txn.actions.emplace_back( eosio::permission_level(owner, N(active)), N(...
Nirdesh Kumar's user avatar
4 votes
2 answers
341 views

Is it advisable to use global variable in smart contract?

I know we can use global variable in our smart contract. So, How can I make sure that nobody can access my global variable.
Nirdesh Kumar's user avatar
4 votes
1 answer
439 views

How to use the onerror event?

If a deferred transaction fails for whatever reason, it triggers an onerror event, which can be captured as follows: void apply_onerror(const onerror& error ) { print("What can I do with this?\...
Phillip Hamnett - EOS42's user avatar
2 votes
1 answer
148 views

Addition overflow when doing delegatebw in contract

So I wanted to do delegatebw in my contract as a deferred transaction: eosio::transaction out; out.actions.emplace_back(eosio::permission_level{_self, N(active) }, N(eosio), N(delegatebw), std::...
Phillip Hamnett - EOS42's user avatar
2 votes
1 answer
236 views

Set a contract containing deferred transaction from front-end

I am trying to figure out the way to set contract which has deferred transactions at run time from front-end. Is it even doable? Any suggestions would be appreciated.
Rajat Chaudhary's user avatar
7 votes
1 answer
855 views

How can a action be scheduled to execute at specific timestamp or block?

Is it possible to schedule an action defined within a contract to be automatically executed at a specific timestamp or block? I know it's possible to get a timestamp inside of a contract but, I'm ...
Joshua Shope's user avatar