Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
77 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(...
3
votes
1answer
139 views

How to confirm if a transaction is confirmed for a wallet app?

Our wallet client wants to check if a transaction issued by some an account is confirmed or not. I know history_api_plugin provides API for query actions related to the account. But if the filter for ...
2
votes
1answer
58 views
+50

How to calculate `action_mroot`

So given the Jungle Testnet block #55033985 that has:   an action_mroot of 7f3d...9928 one action with a digest of e6a5...c058 (from the tx here)   My question is: How to calculate 7f3d....
2
votes
0answers
26 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?
2
votes
0answers
31 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
0answers
27 views

Why are some exceptions not returned?

Sometimes, if an action failed, the details of the exception are returned and sometimes not. However, in the node log, we always can see what happened. When is the detailed exception returned and ...
1
vote
1answer
43 views

Is it possible to deploy contract via curl?

Using command line i am deploying smart contract "eosio.token". cleos -u http://127.0.0.1:8888 set contract eosio.token ./eosio.token -p eosio.token Is it possible to deploy smart contract using ...
1
vote
1answer
80 views

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

I need to write a simple function that would send tokens using a different account action. Exactly the same situation as in these questions: one and two But I have to use not eosio.token contract but ...
1
vote
0answers
153 views

How jungle test net show account history?

I am getting a history of account on jungle test net. Like this: cleos --url http://junglehistory.cryptolions.io get actions <my account> -1 -2 -j The problem is it shows the actions till 14 ...
1
vote
1answer
42 views

validate the identity of the chain

as a non-block producer, how do I know I'm uploading a transaction to the true eos blockchain and not an impersonator? What methods exist to verify that? Example: websites use certificates.
1
vote
0answers
79 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 ...
1
vote
0answers
31 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
2answers
110 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
0answers
158 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 ...
1
vote
2answers
210 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
277 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 ...
1
vote
0answers
58 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{"...
1
vote
0answers
232 views

Using recover_key with eosjs

I want to validate user signatures in my smart contract. As I understood, I am supposed to do that with recover_key function from crypto.h I am using JavaScript with eosjs and eosjs-ecc for ...
1
vote
0answers
265 views

How to pack a transaction to be pushed to rpc using push_tranasction?

Im trying to figure out exactly what is expected to pack a transaction. I've written a class to pack my transaction based off of a couple of opensource projects I've seen. First of all is there any ...
1
vote
0answers
124 views

unpack_action_data - error: !“unresolvable”: env.free. #

I am trying to use unpack_action_data. void apply(const account_name contract, const account_name act) { if (act == N(transfer)) { transferReceived(eosio::unpack_action_data<...
1
vote
0answers
43 views

When a client receives a transaction id, what does that mean?

When a client submits a transaction to a node it receives a return code including, if successful, a transaction id. What does receipt of this transaction id indicate? Does it indicate simply that the ...
0
votes
1answer
11 views

Transaction NET usage on eosx.io and 'get account' don't match

When my account did not have enough NET resource ( 12 bytes limit at that moment) and I sent a transaction, I got an error transaction net usage is too high: 120 > 12 I bought NET resource and ...
0
votes
0answers
14 views

EOS CPU Full i'm do nothing

Why CPU max overflow what I do nothing. Just I looked at https://bloks.io/ (or) https://eospark.com/ Of my account. Last Transaction is Oct-07-2019, 11:18:08 PM. to now is Oct-09-2019.
0
votes
0answers
24 views

Catch errors when calling deposit

When I send EOS in a contract to several recipients, it can happen that this fails, e.g. because a recipient has a contract running like that: Example contract of one recipient: [[eosio::on_notify("...
0
votes
1answer
19 views

How to operate the get_actions endpoint to get transaction history

Following what I think is the official EOS documentation for get_actions . I stumble upon the parameters pos and offset, but they are not documented anywhere. Can somebody explain to me, what these ...
0
votes
1answer
9 views

Signing a transaction: string(22) “Internal Service Error”

I'm using the jungle test chain jungle.eoscafeblock.com:8888 endpoint and import the private key to my local wallet, but when trying to get signature throuth local keosd api /v1/wallet/sign_signature ,...
0
votes
0answers
80 views

When deploying a contract what is important (overall contract/wasm size or amount of functions etc) to not get transaction took too long

when I try to deploy the system.contract I sometimes get transaction took too long with the new eosio version 1.8.1. Now I would like to know on which part of a contract do I need to pay attention ...
0
votes
0answers
38 views

Reversing a transaction

Let's say I send a friend some EOS tokens. For a short period, the transaction is considered reversible because it is not included in an 'irreversible block'. What are the possible ways in which this ...
0
votes
0answers
27 views

Transaction signing error

Good morning, everyone I use EOS UAL to login at frontend, and it works, but there is troubles while signing transaction. Done signing like in an example https://github.com/EOSIO/tropical-example-web-...
0
votes
0answers
37 views

How to decode the data field

I have the below hex data as part of a generated transaction. Before I broadcast the transaction I want to know what the hex data says in a human readable form. Is there a simple way to convert this ...
0
votes
0answers
18 views

How to implement cold wallet signing in EOS with a long transaction timeout

I'm building a cold wallet with some built in delay (say, 2 hours) between when the transaction is created, and when the transaction gets broadcasted. From reading the source code I see that the ...
0
votes
0answers
22 views

When transaction could be lost?

We meet several cases that a transaction is executed in my node, but finally it is lost, and not seen in the blockchain browser, I'am somehow defused that why it could be lost? My CPU&NET resource ...
0
votes
0answers
36 views

Error while pushing a transaction using python?

after successfully signed the transaction, when i try to push it using the pyton api from the eos developers portal, i got the following error {'code': 500, 'message': 'Internal Service Error', '...
0
votes
0answers
80 views

EOSJS error Non-base58 character

Please help! I'm currently encountering the ff. error Uncaught Error: Non-base58 character at Object.decode (eosjs-jssig.js:26) at Object.checkDecode (eosjs-jssig.js:15) at y (...
0
votes
2answers
90 views

How to get data from a “packed_transaction”?

I am trying to extract the data out of a packed transaction. Specifically, I am reading a proposal from the eosio.msig table and trying to get the data from the proposed multisig transaction to ...
0
votes
1answer
51 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 (...
0
votes
2answers
56 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(), "...
0
votes
0answers
157 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", <...&...