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
13
votes
4answers
1k views

Can someone explain the transaction struct?

{ expiration: '2018-05-09T10:21:48', region: 0, ref_block_num: 1055, ref_block_prefix: 4035814219, max_net_usage_words: 0, max_kcpu_usage: 0, delay_sec: 0, What is expiration, ...
11
votes
1answer
1k views

What is the purpose of `require_recipient`?

I saw the description of the function require_recipient and it says: Add the specified account to set of accounts to be notified I would like to understand what's the purpose of receive this ...
11
votes
3answers
3k views

How to sign raw transaction with eosjs?

Lets say I have a transaction like below: var tx = { transaction_id: '111ee28e5deca69e54dadf751eba8fae181f0ceafc601dcab92700f5200abef8', broadcast: false, transaction: { ...
8
votes
1answer
128 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 ...
7
votes
2answers
116 views

Can a transaction be posted to the blockchain without an associated account?

Can I post a transaction to the EOS blockchain that is signed using keys that aren't associated with an existing account? How does the blockchain detect these transactions?
7
votes
2answers
506 views

Is there any method to know whether a transaction has been confirmed or not?

I need to do some actions which need to make sure the other transactions having been confirmed already in a contract. so, Is there any method to know whether a transaction has been confirmed or not?
6
votes
3answers
334 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 ...
6
votes
2answers
828 views

What block hash function and transaction signature method does EOS use?

What hash function does EOS use for creating a block. Is it SHA-256? In addition, what procedure for signing a transaction is used? RSA?
5
votes
1answer
168 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 ...
5
votes
1answer
308 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 ...
5
votes
1answer
75 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 ...
5
votes
1answer
628 views

As a client, how do I know that a transaction I pushed is irreversibly confirmed?

I push a transaction to a node and receive a transaction id in return. How do I know that transaction is irreversibly confirmed?
4
votes
2answers
125 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 ...
4
votes
2answers
171 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.
4
votes
2answers
96 views

Slowing testnet for testing

How can I slow down the blocks produced in a local test environment or pause the processing of transactions and diagnose the state of the blockchain? I would like to really slow it down, instead of a ...
4
votes
1answer
824 views

how to know if a transaction was include in block?

In bitcoin and ethereum blockchain, I can get transactions's details that not included in blockchain yet via api. but in EOS blockchain ,it seems that there were no such api to get those information. ...
4
votes
2answers
105 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.?
4
votes
2answers
650 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: ...
4
votes
3answers
93 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....
4
votes
1answer
518 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?
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
421 views

How is the action data encoded?

Take for example this action belonging to a newaccount transaction: { "account": "eosio", "name": "newaccount", "authorization": [{ "actor": "eosio", "permission"...
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 ...
3
votes
2answers
357 views

transaction with actions across two contracts

Given two contracts, I'd like to push a transaction that requires successful completion of an action by each of the two contracts. If either action by either contract fails then all actions by all ...
3
votes
2answers
149 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....
3
votes
1answer
241 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
47 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 ...
3
votes
1answer
580 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?
3
votes
1answer
567 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 ...
3
votes
1answer
598 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 ...
3
votes
1answer
280 views

ICO/Payment contact

Anyone is working on some ICO/Payment contacts? What I would like to learn are following functionalities within the contract: Payment, where the fee is split into 3 accounts. a) So user sends a fee ...
3
votes
1answer
336 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
82 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 ...
3
votes
1answer
51 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 ...
3
votes
1answer
155 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
1answer
262 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 ...
3
votes
1answer
200 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
3
votes
1answer
317 views

How can I know the cpu and net bandwidth required for my transaction to be completed?

Before pushing an action on blockchain, how do I find out the minimum amount of cpu and net bandwidth required for my transaction to be completed? If there is no way to know such thing, then how do I ...
3
votes
1answer
236 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 ...
3
votes
1answer
157 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 ...
3
votes
1answer
279 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
757 views

How can increase RAM or reset it?

EOSflare.io shows I am using all of the RAM (7.94 KB / 7.95 KB). Now all my transactions are failing. I assume its because of maxing out the RAM? If so, when does EOS.IO reset RAM usage or do I need ...
3
votes
1answer
71 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
127 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
2answers
288 views

Accessing current transaction ID within a smart contract

Is it possible to access the current transaction ID from within a smart contract?
2
votes
2answers
775 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
364 views

Example of smart contract action that itself executes a transaction

Can anyone point me to example code for writing a smart contract that calls actions on other smart contracts? The general method of doing this is documented here but example code is not provided.
2
votes
1answer
33 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?
2
votes
1answer
47 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 ...
2
votes
1answer
230 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 ...