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 ...

0
votes
1answer
13 views

What is the ledger in EOS?

When I create a smart contract, e.g: game. what does the ledger store? (EOS tokens, or heathy points, level of user). If the ledger stores heathy points, level, so how I can push it into block (...
1
vote
0answers
14 views

When receive a transaction, how to EOS push it into block chain?

I am researching how to transaction work in Block producer(BP). I knew when BP received a transaction from user, maybe it start from push_transaction function then to apply_context::exec and ...
2
votes
0answers
12 views

how to solve Error Details: Cannot charge RAM to other accounts during notify on testnet

I need help for an issue developing an EOS dapp. I want to call a contract function when someone transfer EOS to my contract. For this i used the apply method to call the function upon any transfer ...
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::...
0
votes
2answers
16 views

Send ID for transaction inside smart contract can not be _self

With the last CDT, to send transaction inside smart contract, here is my code eosio::transaction out; out.actions.emplace_back(eosio::permission_level{get_self(), "active"_n}, get_self(), "...
1
vote
0answers
14 views

Multiple action_traces, which one is the “good” one?

Sorry if I'm asking a lot of questions but you're really helpful and I'm getting a better understanding of the platform every day thanks to you ;) I'm having a hard time figuring out why some ...
1
vote
1answer
34 views

Beginner question about signing transaction with cleos

I am new to EOS and having some trouble. I got cleos working and I am connected to one of the api endpoints found here. It's working as far as I know since I am able to get block info. My end goal is ...
1
vote
1answer
40 views

Get the last transaction from the blockchain

I'm looking for a way to get the latest transaction recorded on a particular account. For example, I'm trying to get the latest transaction for "newdexpocket", how can I do that using nodejs? Here's ...
1
vote
1answer
36 views

eosjs, have getActions working both ways

I've been struggling with that for a couple days and I'm crawling out for help now ;-) I've been using eosjs to parse the Actions of an account but all I can see are the transactions created by the ...
2
votes
1answer
54 views

Accessing current transaction ID within a smart contract

Is it possible to access the current transaction ID from within a smart contract?
1
vote
1answer
75 views

Preferred way to find a transaction's block

With the history plugin deprecated, what's the preferred way to find out which block a transaction is in?
1
vote
2answers
47 views

Divide funds by % to send to different wallets

I need a contract that can send funds at 1 time to multiple addresses by percentage. Ex: n disbursements 1@ 20% Another - 14% Another - x% Another - x% and so on. Ethereum does NOT have this ...
2
votes
3answers
71 views

How to pack transaction without cleos?

So the new API only accepts a packed_trx but there is no RPC call to pack a signed transaction. How can it be done on system without cleos installed? Is there any implementation in pure Python, ...
1
vote
0answers
53 views

List of transactions from a contract

I've been on this all day and can't figuring it out on my own so I'm reaching out for your help ;-) How can I get the list of ALL the transactions associated with an account? I've tried to play ...
2
votes
1answer
32 views

Storing the data in “Memo” of block chain transaction

Can I store large size of data such as MP3 in Memo? Are there any implementation examples? To store the data or any comments in Memo, should I send some amount of EOS? Can I store the data without ...
1
vote
2answers
93 views

How to transfer/deposit tokens on Front end Dapp with Scatter?

I am working on an EOS frontend Dapp with Scatter on local chain. I am getting a problem with transfer/deposit tokens from one account to another. After logging into scatter with "test1" and trying to ...
1
vote
0answers
86 views

How to call a contract from scatter

I want to make a transaction with Scatter but I'm getting this error function callContract(){ const account = scatter.identity.accounts.find(x => x.blockchain === 'eos'); const ...
6
votes
3answers
147 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
78 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
20 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 ...
3
votes
1answer
104 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
15 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
55 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
77 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
20 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
82 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
73 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
35 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
55 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
24 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
47 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
31 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
83 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
200 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
135 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 ...
3
votes
2answers
82 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
19 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
14 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
19 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
19 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
92 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
51 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
44 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 ...
4
votes
1answer
100 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 ...
3
votes
1answer
289 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
272 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
21 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
30 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
101 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
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(...