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 [transactions]

Transactions are one of the the fundamental mechanisms of communication between EOSIO accounts. Thus, questions may relate to aspects such as the process of sending, receiving, validating, and creating transactions, as well as transaction properties, components, limitations, and other related ...

1
vote
0answers
14 views

Why the first time I execute an action I get “Error 3080006: transaction took too long”?

WHAT I WANT Call an action and see it succeed at the first execution. WHAT IS NOT WORKING The function, which I am executing, the first time fails with error: Error 3080006: Transaction took too ...
1
vote
1answer
21 views

minimalistic mongodb to query tx | config.ini

I setup a non-producing node and an API to let an app query user transactions. API is similar to the CryptoLions/EOS-mongo-history-API What is the most minimalistic and effective approach to ...
1
vote
1answer
15 views

How does one add a message to a transaction and what are the limitations?

I saw the following message attached to a transaction in an EOS explorer below. Since you can attach a message to a transaction my questions are: How does one attach a message using a desktop wallet ...
2
votes
0answers
18 views

How can I get an accounts currency balance using eosjs

In the new version of eosjs, the getCurrencyBalance() method is no longer supported. How can I still get the currency balance of an account using eosjs?
1
vote
1answer
13 views

What Data ownership really is in EOS?

All data of transactions can be view live as EOS is public , suppose i made a transaction on EOS block-chain this transaction belong to me but still people can see it. Here is my Question how this ...
2
votes
1answer
39 views

Is there a way to attach a message to an EOS transaction and see it publicly on a block explorer?

Let's say I want to attach the following message to an EOS transaction: "This is a test message" How can I attach this message to a transaction when sending nothing? Can I see this message on a ...
2
votes
1answer
66 views

EOS has ZERO fee transactions, but what is required to setup an account?

Okay, so I created a new EOS private key and didn't send anything to it. Can I use this brand new untouched account to send out some type of message or interact with a dapp since its a ZERO ...
2
votes
0answers
18 views

Can I determine the number of actions implied in the actual running transaction?

transaction_size() returns the size in bytes but is not useful to determine the number of actions implied. Can I get the count?
0
votes
1answer
38 views

Transaction executed, but not confirmed?

I need to know, if my transaction has been confirmed by the network. My workflow to do this is the following: Execute a transaction By running cleos get transaction ID obtain the information ...
1
vote
1answer
33 views

Can we use default parameters in EOS smart contract?

I have a action in my contract : // @abi action void ContractClass::submittxn(string memo,string memo2,uint64_t a = 61) { ... } I try to set a as default parameter but when I push the ...
1
vote
1answer
27 views

How to check if smartcontract action has been actually run? How to count how many times?

Imagine an action, which is not const, and sometimes (but not always) modify a defined multi index. I would like to count, how many times a specific action was run. I do not want to introduce any ...
1
vote
0answers
45 views

How can I get all transactions made by an account?

I tried this history api of this function : func (api *API) GetTransactions(name AccountName) (out *TransactionsResp, err error) { err = api.call("account_history", "get_transactions", M{"...
2
votes
0answers
20 views

8000 TPS in EOS

I have created a private network of 6 nodes in which 2 nodes are block producing nodes and remaining 4 are non-block producing nodes. I have changed block time from 0.5 sec to 1 sec. I have to ...
0
votes
0answers
26 views

Are multiple actions in a single transaction guaranteed to happen sequentially?

Suppose I have a transaction with two actions, A and B, listed one after another. Like this: { <...>, "actions": [ { "account": "my.token", "name": "action_a", <...&...
0
votes
0answers
11 views

How blockproducers validate transaction?

How blockproducers authenticate or validate transaction ? Which algorithm used to do that ?(other than dpos) i know that there is synchronization for transaction(for blockproducer's side) but what ...
1
vote
1answer
58 views

Allow users to withdraw their tokens

In my contract I have an action which is supposed to allow users to collect the tokens they have accumulated. To do this I use: void transfer_token(account_name receiver, asset quantity, std::string ...
0
votes
2answers
59 views

Transfer EOS tokens inside a smart contract from an account to another

I want to implement, in my smart contract(C++), a function that forwards EOS token to another account. This is actually a basic question, but is that possible actually? Please, could you share the ...
3
votes
1answer
119 views

What will happen with database and inline transaction when a transaction doesn't get 2/3+1 in the end?

As the questions says, what will happen with the database and inline transaction when a transaction doesn't get the 2/3+1 "Votes" from the block producer that a transaction is legit? Will all changes ...
2
votes
2answers
52 views

Meaning of N() function in multi_index

What is the role of N() in defining tables using multi_index. The primary key function does not return string. Why so? e.g. string primary_key() const {return Some_String_Object}. This throws an error....
0
votes
0answers
14 views

Id signed transaction

Try to get identifier of signed transaction. What is id or hash of signed transaction? How can I get id from eos?
0
votes
0answers
13 views

Separating user accounts in a wallet for a large scale web app

I'm planning to implement a web platform that maintains user wallet accounts and generally acts as a web wallet. They can deposit, withdraw and transfer coins.The number of accounts should be in ...
0
votes
1answer
17 views

Why we match asset quantity with the uris vector in issue action?

I am working on the repo https://github.com/unicoeos/eosio.nft If I want to issue some tokens to the another accout,For that I have to send account_name , asset, uris, name,memo to issue action as ...
2
votes
1answer
17 views

Can an object of the class 'contract' or a class that inherits 'contract' be created in the cpp file of the contract we are making?

Can an object of the class 'contract' or a class that inherits 'contract' be created in the cpp file of the contract we are making?
1
vote
3answers
56 views

Interacting with a smart contract

How can a user interact with the contract? Is typing the command cleos push action the only option?
2
votes
2answers
46 views

A contract that generates another contract

If I want to create a smart contract with an action 'Create Game' and on calling that action a new contract be formed, how is it possible?
2
votes
1answer
35 views

I want to perform 2000 transactions but when i am looping trough the eosjs code it throws an error

The error name is expired_tx_exception and the code for the same is 3040005 please tell me how can I perform these much transactions per seconds. I am able to perform 250 transactions per seconds but ...
3
votes
1answer
65 views

Why do failed transactions not consume CPU?

In other blockchains, even if your transaction fails, you are still taxed gas or other scarce resource in order to compensate nodes for processing your transaction and defend against spam. On the ...
2
votes
1answer
99 views

How to send EOS based tokens from one account to another?

While playing a game on Dapp if we want the user to donate some tokens in order to join the game, how can we accomplish it in the smart contract?
0
votes
0answers
124 views

How to use “cleos push transaction”?

I'd like to make a simple action in the format of cleos push transaction. Motivation: DApps often need transactions with multiple actions, which can't be done with cleos push action. So the natural ...
0
votes
0answers
16 views

Create a packed transaction in Ruby

Is there a library or any protocol to instruct on how to build a packed transaction and also how to sign one to make it ready to be pushed to a RPC?
2
votes
0answers
29 views

How can you make sure you know what the contract does when you send an action?

Say you want to send an action to a smart contract, and you know the WASM of the contract. You somehow obtained the original source code which was in C++, you compiled it to WASM, and you got the same ...
3
votes
2answers
85 views

Is it really the case that transacting on EOS is cheaper than Ethereum?

We all know that there is no transaction fee on EOS, while Ethereum does have one. Does this imply that running a dApp on EOS is cheaper than running it on Ethereum? In other words, the user has to ...
2
votes
0answers
41 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(...
2
votes
1answer
48 views

Where is the nodeos handling push_transactions from cleos?

I am studying the source code of eos and I saw that in the cleos it has this function. call(push_txn_func, packed_transaction(trx, compression)); I think this is used to push the transaction to the ...
3
votes
2answers
60 views

How does EOS recognise an infinite loop without startgas just as in Ethereum

I just wanted to know how does EOS know when a transaction is having an infinite loop like in Ethereum where there is a way that execution stops for a smart contract where it runs out of gas.?
1
vote
1answer
63 views

What would happen when a transaction fails because “took too long”?

When call an action of a contract, sometimes meet "Transaction took too long" error. If a transaction fails because of "took too long" error, the transaction will be discarded in chain? Or next BP ...
4
votes
2answers
74 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.
1
vote
2answers
42 views

What is the maximum amounts of bytes that can be uploaded to a storage contract?

In a storage contract that stores bytes in a container, what is the maximum amount of data that can be uploaded per transaction?
2
votes
0answers
25 views

Is there any index to be used to get transaction history for a certain-aggregate Id?

I was wondering if EOS blockchain could be used as event-store for event-sourcing. At least, we should be able to retrieve history with an aggregate id. Of course, we can use the EOS account name as ...
2
votes
1answer
41 views

How to search extra information which is attatched to a transaction?

For example, in one smart contact, a transaction is made, which contains some extra information, let's say the buyer's name. Once the transaction is committed, it is saved into one block. As you know,...
2
votes
1answer
122 views

Signing transactions manually without eosjs-ecc

So because I'm doing things from c++, I don't have access to eosjs-ecc. Assuming that I have successfully packed the transactions (using fcbuffer, packed the action data using the ABI), which I've ...
2
votes
1answer
64 views

what is token hex API and transaction abi?

What is token hex API and transaction abi in the abieos repo? Can ABI be generated for any transaction on the EOS block chain? If yes, then how?
3
votes
1answer
135 views

Transaction id is a hash of what?

https://eosio-cpp.readme.io/docs/communication-model states: On completion of the transaction, a transaction receipt is generated. This receipt takes the form a hash. The transaction receipt is ...
7
votes
1answer
98 views

What limits does an API endpoint impose on transactions which fail due to assertions?

Scenario: I connect to an API endpoint and repeatedly send transactions (with cleos) which are all ultimately rejected with eosio_assert_message. Such transactions don't seem to eat up CPU or network ...
2
votes
1answer
92 views

How does one sign a transaction and push it to nodeos?

If I'm to push a transaction without using eosjs / cleos, and straight into nodeos, how would I sign a transaction? This is assuming I have the private key in memory somewhere, ready to sign things
2
votes
1answer
62 views

Find transactions by memo

I would like to sum up all transactions values with memo = "abc". Is it possible to filtering transactions by memo?
3
votes
1answer
67 views

Getting an unknown key error while transfer some EOS form one account to another

I have written an action transfer in my contract which is as below // @abi action void second::transfer( account_name from, account_name to, asset ...
2
votes
2answers
238 views

How to get transaction receipt?

If you use cleos get block blocknum you can only get the transaction data, but not the transaction receipt. And in the transactions, there're some inline actions which we can't get through the ...
2
votes
1answer
71 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 ...
3
votes
1answer
133 views

Passing the parameters in actions vector of transaction struct

In the below code, I am passing parameters to actions struct which takes account_name, action_name, permission vector and arguments. But while sending the account_name using N it is taking the exact ...