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.

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

What should I do to specify an optional action parameter for cleos?

I wrote an action that has an optional parameter, as something like: [[eosio::action]] void foo(..., const std::optional<name>& recipient); Then in the generated .abi, it is represented as:...
0
votes
0answers
11 views

Transfer the transaction again after it was not appearing in blockchain explorers

I was sending the transaction using the command like: cleos -u "https://eosapi.blockmatrix.network:443" transfer {account_from} {account_to} "{amount} EOS" "{memo}" and got the problem with one ...
0
votes
1answer
27 views

Are all actions on a transaction supposed to be included in the block?

I've noticed something strange that is confusing me. I have a transaction that includes multiple actions on it, but it appears that the "transfer" action did not get recorded in the actual block. You ...
4
votes
2answers
117 views

How to calculate `action_mroot`

UPDATE #2: So per @conr2d's comment on his answer & @riccardo's elaboration, it turns out that the action_digest in the merkle function in the EOS code base is not using the action_digest within ...
0
votes
1answer
12 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
1answer
13 views

Return token to owner after initiating a transfer to my contract

Good Day, I am working on a contract where for example, If I send 2 ETH to a contract, ( 1 ETH = 2 Cryptokitty tokens ) then that contract is supposed to return me 4 Cryptokitty tokens. What I Have ...
0
votes
0answers
19 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.
1
vote
1answer
40 views

Understanding Transactions

I am trying to understand all the properties of the transaction object. On the developers site (https://developers.eos.io/eosio-nodeos/docs/communication-model) they provide the below transaction ...
0
votes
0answers
26 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
23 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
10 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
81 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
42 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 ...
1
vote
1answer
44 views

Why we need an EOSIO account to transfer token?

I have started working on EOSIO. I am following this document. I have created a wallet using cleos. Then open, unlock and import key in it. After that according to document, we need two accounts to ...
0
votes
0answers
29 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-...
1
vote
1answer
47 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 ...
0
votes
0answers
42 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
1answer
41 views

Get address or eos account transactions

I want to get transaction list of request address or account using EOSJS or any RPC method. Kindly guide for it. As per check EOS dev documentation unable to find method which fullfill this.
0
votes
0answers
22 views

How can I get transaction receipt using its id in EOSJS or via RPC? [duplicate]

I want to get transaction by its hash using eosjs or rpc method.
1
vote
1answer
106 views

Difference between EOS transaction “traces” and “trx”

I use RPC to retrieve transaction information - e.g: { "id": "84373c7756f0ad09972cd839c4b862328aa96b40ea52b3e91633acf583dffe44", "trx": { "receipt": { "status": "executed", "...
1
vote
1answer
82 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
1answer
27 views

How transactions are broadcasted to Block Producers?

When a transaction is initiated and send by a user, how are these transactions broadcasted to Block Producers?
0
votes
0answers
20 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 ...
1
vote
1answer
49 views

EOSIO transaction propagation model

I try to understand how EOS (mainnet) propagates transactions. Before a transaction gets included in a block, is (thus pending) transaction actively propagated peer-by-peer regardless of peers being ...
0
votes
1answer
37 views

How do I check how LONG the sending transaction lasts for?

I created a new eos acc, I sent some eos from my crypto exchange account.It worked. I have a transaction id, I found it in block explorer. But it does not give much info about HOW LONG or when the ...
1
vote
2answers
38 views

How do I confirm that the person sending an action is the same as a user in the parameter?

Specific example from a contract: ... void hi(name user){ // verification here, require_auth(user)? print(user); } ... I've tried require_auth(user) but that seems to always fail unless the user ...
0
votes
0answers
42 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
90 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 (...
2
votes
1answer
35 views

Is there any way to discard a committed transaction?

I always have this doubt whenever i push a transcation. Is there any way to cancel a committed transaction before it's verifed by the block producers?
1
vote
1answer
80 views

How to add nonce to generated (deferred) transcation

Using cleos -f adds a context_fee_action to the TX like so: "context_free_actions": [{ "account": "eosio.null", "name": "nonce", "authorization": [], "data": "...
0
votes
2answers
97 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
25 views

Making an EOS delay send transaction into the future?

Is it possible to send a delayed transaction using EOS? Say I want to send 5 EOS to someone after 24 hours has passed. How can one do this in EOS? Do I need a smart contract? And does my EOS get ...
0
votes
1answer
87 views

Double sign a transaction, first on client, second on server

I am struggling with getting the following scenario to work, I want to create a transaction signed by two parties (not via the multisig contract, just a transaction with 2 signatures). One is the ...
2
votes
1answer
52 views

Is there any way to “request transfer” from another EOS account without “multisig”

imagine I have account A and account B. Account A would like to ask B to transfer him some EOS tokens. Is it technically possible to: create a multisig request transaction from A side: "B, please ...
1
vote
0answers
154 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
46 views

How can i send 10,000 NFT in a single transaction like we send EOS tokens

I have implemented the nft statndard in EOS but I am having issue that I can't send more than 60 tokens at a single time. In NFT standard each token has unique id so they need to be send one at a time....
0
votes
1answer
86 views

Need the updated parameters for push_transaction

I have some problems trying to transfer EOS in push_transaction. I followed the instructions from https://steemit.com/eos/@noprom/using-eos-rpc-api-to-transfer-eos and other references because the ...
1
vote
1answer
70 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 ...
1
vote
1answer
43 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.
5
votes
1answer
314 views

Is it secure to use keosd in an aws to let dapp/app server sign transaction?

I would like to know if it is secure to run keosd on an aws locally as a hot-wallet, to let the server of a dapp send a transaction which should be signed to the aws. The server of the dapp would get ...
3
votes
1answer
444 views

How to transfer EOS Token with eosjs? [duplicate]

The title sums it up ;-) I'd like to move EOS tokens (say EOSDAC for example but any token will do it for my education) using the eosjs API... I've tried to use Scatter.js and did that but it's not ...
3
votes
1answer
353 views

New version of eosjs does not use chainId, How does it work?

I have worked with both new and previous versions of eosjs. In the previous version I had to make a config object like this: Eos = require('eosjs') // Default configuration config = { chainId: ...
3
votes
1answer
52 views

Order transactions get mined in

In Ethereum, for each account, transactions are mined in FIFO order. Each transaction has a transaction ID associated with it called a nonce and miners can only mine transactions with lower nonces ...
1
vote
1answer
131 views

Why am I getting Error 3010014: Invalid symbol when I perform a simple transfer

INFO Jungle Testnet 2.0 <myaccount1> has funds WHAT I WANT TO DO Just perform a simple transfer of EOS such as: cleos transfer <myaccount1> <myaccount2> "1.0000 EOS" cleos ...
0
votes
1answer
159 views

How to be more efficient (transaction took too long)

I'm trying to modify the eosio.token contract to fit a purpose. And I need to send many delayed transactions to an array of accounts. Here's the code: for (auto i = st.bearers.begin(); i != st....
0
votes
1answer
107 views

How to perform 2 transfers at once using cleos push transaction?

I've searched for the answer on Google to no avail. I am able to use cleos transfer 2 run the following transactions without an error: cleos -u <eos ny api url> transfer abcabcabcabc ...
1
vote
1answer
342 views

Difference between ref_block_num and ref_block_prefix and how to retrieve it?

I am trying to construct a header of a transaction. So my question is - what is the difference between ref_block_num and ref_block_prefix in a transaction header and how to retrieve it? is there a ...
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 (...
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 ...