Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [deferred-transactions]

The tag has no usage guidance.

0
votes
0answers
8 views

Set nonce in action when calling action(…) to avoid 3040009 deferred_tx_duplicate

In eosio.cdt v.1.4.1 Calling twice in the same action eosio::transaction txn{}; txn.actions.emplace_back( eosio::permission_level(_self, "active"_n), "eosio.token"_n, "transfer"_n, std::...
2
votes
2answers
65 views

How to find out if deferred transaction was executed

In the developer portal it says: Deferred actions get scheduled to run, at best, at a later time, at the producer's discretion. There is no guarantee that a deferred action will be executed. How ...
1
vote
0answers
41 views

How can I provide multiple currency support in my EOS smart contract

Can we transfer other crypto currencies which are based on different blockchains lets say bitcoin, litecoin, neo or ether, using the EOS smart contract. I heard that there is gonna be feature to ...
1
vote
0answers
103 views

How do permissions on deferred transactions work?

I'm playing around with deferred transactions and encountered an oddity. Say, we have a contract deployed on contract, and an account account. contract has contract@eosio.code as part of its active ...
0
votes
0answers
63 views

How to know whether a deferred transaction has been executed or not?

I am curious about the execution of a deferred transaction. Let's say if I wanna see the current status of a deferred transaction whether it has been executed or not, how will I know that from ...
5
votes
1answer
100 views

How to tell if a transaction was initiated by account or contract code

My goal is to get a list of account names of human users of a dApp, from the output of cleos get actions <dApp account name> -j Is there any way to determine, from a transaction's initial ...
2
votes
0answers
47 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(...
4
votes
2answers
105 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.
0
votes
1answer
115 views

Is it possible to see a list of deferred transactions

How can I access a list of deferred transactions on the chain? Is there a command in cleos for this and can it be used to filter for results from individual accounts?
3
votes
1answer
152 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?\...
2
votes
1answer
85 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::...
6
votes
1answer
180 views

Can you create a deferred transaction with cleos?

I want to create a deferred transaction that can be executed using cleos, is this possible? If so, how?
4
votes
2answers
265 views

Can we set the deferred transaction for the delay more than the maximum delay?

According to the genesis block file. The maximum delay for a deferred transaction is 3888000. "max_transaction_delay": 3888000, Can we have a way around to deferred a transaction more than this ...
3
votes
1answer
383 views

How to transfer EOS after a particular delay?

I know that there is a concept called deferred transaction but how can I use this concept in transferring the EOS to another account. The scenario is: I need to transfer certain amount of coins ...
2
votes
1answer
171 views

What's the maximum delay for a deferred transaction

I know that deferred transactions can just be dropped by the nodes if they are too far in the future, but I wonder what the maximum delay for a deferred transaction is in practice on the mainnet. I ...
4
votes
1answer
283 views

How can I cancel the deferred transaction in EOS after we push the deferred transaction in the blockchain

I have a action which execute the deferred transaction . Let I send the delay of 20 days . If I want to cancel the deferred transaction before 20 days . Is there any way I can do this ? This is my ...
2
votes
1answer
99 views

whose permission is required while sending transaction and how can we give that permission

I have two accounts viz. account1 and account2. I set my contract using account2. Now, I am sending 0.1100 EOS from account2 to account1 as a deferred transaction. I am using the following function ...
2
votes
1answer
163 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.
1
vote
1answer
229 views

How can create a deferred action which is executing at specific interval

#include <eosiolib/eosio.hpp> #include <eosiolib/transaction.hpp> #include <lib/user.h> using namespace eosio; using namespace user; class hello : public eosio::contract { public: ...
4
votes
1answer
205 views

What is sender_id param in send_deferred function?

I tried to implement repeated execution of particular action and set this param as _self of calling contract, but the transaction gets executed only once in this case. Then i tried to set it as time() ...
9
votes
1answer
1k views

How can I create a deferred transaction?

Are there any examples online for where I can see some examples of deferred transactions being created?