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
2
votes
1answer
21 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
260 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
61 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
81 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 ...
5
votes
1answer
224 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
643 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?
2
votes
1answer
1k 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 ...
5
votes
1answer
78 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 ...
4
votes
2answers
147 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 ...
3
votes
2answers
90 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
99 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 ...
4
votes
2answers
121 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
180 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
218 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
83 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
35 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
29 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 ...
2
votes
1answer
57 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,...
3
votes
1answer
405 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
294 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
724 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 ...
8
votes
1answer
150 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
367 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
318 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
395 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
1k 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
189 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
315 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 ...
1
vote
0answers
244 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 ...
4
votes
2answers
823 views

How to get transaction logs from EOS?

Suppose I have a dapp that monitors transaction of some assets. The smart contract would be generating transactions and I'd get messages like "executed transaction: ...
3
votes
1answer
788 views

Size limit for transaction data?

From what I understand, there are 3 types of storage: RAM > Available to other contracts, but costs EOS to use Transaction data / logs > Not available to contracts, but also no ongoing cost, and ...
4
votes
3answers
117 views

Is it possible to only install keosd on ubuntu?

I need a solution for signing transactions sent with HTTP API (RPC) from a .Net webserver. EOSjs works fine for signing transactions in the browser - but some transactions must be sent from the server....
1
vote
1answer
364 views

Why does EOS stay in the refund section sometimes and other times it goes automatically to unstaked section?

I am trying to figure out if there is any reason for this. When I unstake EOS, it shows up on the refund section in a block explorer. Sometimes, the refund goes automatically to unstaked section and ...
1
vote
2answers
3k views

How to increase billable CPU time?

I tried the execute a transaction to update public keys for my account. But I got the following error: billed CPU time (857 us) is greater than the maximum billable CPU time for the transaction (165 ...
3
votes
1answer
231 views

Sending transaction from a Windows application

I want to send a transaction to EOS blockchain from my windows application. What library do I have to put into the windows application? And what are the preparations? Thanks
1
vote
1answer
51 views

Account is unable to receive EOS

When trying to send to this account jakejakejake, it is not able to receive any EOS. When trying to send to it, it looks like the the transaction goes through (and it deducts from my account balance),...
3
votes
1answer
204 views

How do dApp developers manage the end-user max transaction time with the following 3 unpredictable factors?

The unpredictable factors are: 21 different CPUs (and even those 21 CPUs are constantly changing based on BP voting) Potentially different max-transaction-time for each BP (can a dApp developer even ...
1
vote
2answers
208 views

The given contract doesn't exist in the blockchain

I have got contract code below: #include <eosiolib/eosio.hpp> #include <eosiolib/print.hpp> using namespace std; using namespace eosio; class deneme: contract { // @abi table ...
1
vote
1answer
562 views

Can we get all the actions from all blocks?

Somebody say we can get all the blocks through rpc, then we can get all the actions. But I found that in the block information, there're no inline actions, so many inline actions will lose, right?
1
vote
1answer
58 views

EOS: In order to save & show other clients a piece of information. Is transaction needed? To whom?

Suppose I want to save and send this information to all the world: "I'm Fu Song, I made Taylor Swift pregnant, and I'm going to marry her on Christmas, 2018, so that I will still be a responsible ...
2
votes
1answer
638 views

EOS: How to get structured data within transaction?Is there restful API for this/

Suppose A sent a transaction to SC(smart contract), including structured data, for example: {"intention":"like","target":"ae16xx0...."} As usual, this transaction will be stored on all nodes in the ...
0
votes
1answer
486 views

How to add a “memo” to an action?

In an action in my contract, I want to attach some text to it, so that users can see the text in their transaction history using a block explore like eosflare.io. I see that eosio.token has a "memo" ...
1
vote
0answers
279 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 ...
3
votes
1answer
315 views

How do I listen to the actions contained in a transaction to my smart contract?

For example, if Alice sends a transfer from the eosio.token contract to my smart contract, how do I listen to see if she has actually sent me a transfer from the eosio.token contract and get the data ...
3
votes
1answer
798 views

How to correctly unpack “packed_trx” from transaction?

Hello Dear EOSIO Community, I have following transaction on mainnet that I want to unpack. I get its data using curl: curl https://api.tokenika.io/v1/history/get_transaction -d'{"id": "...
2
votes
1answer
77 views

Is it safe to assume that a function can't be called directly if it is not defined in the ABI?

I'm writing a function in my contract that is supposed to run only if I receive a transfer notification from "eosio.token". The way I handle eosio.token transfer notification is similar to this (but ...
1
vote
1answer
129 views

Secure way to sign a Transaction in a polling Service

assume i have written an polling service in nodejs which i would like to run on an aws e2 instance (t2.nano/t2.micro). This service will observe a specific account every 10sec or so for incoming ...
4
votes
2answers
1k views

How to perform something when my contract receives a eosio.token transfer notification?

I know a very similar question has been asked here (How to do something when your contract is an action notification recipient (like when it receives funds)?), however I don't have enough reputation ...
4
votes
2answers
1k views

How to get a list of transactions related to an account?

I'm able to get transactions for an account by using the /history/get_actions rpc interface, but it seems to only list actions that were initiated by that account. It lists transfer actions, but only ...
1
vote
1answer
58 views

Is a transaction(like token transfer) could fail after being sent? if so, how can I get information about it?

In EOSIO, we know that a transaction can be packed in block very fast, and we can also treat it as irreversible after "lastirreversibleblock >= block_num". Whether a transaction could fail after ...