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
9 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
1answer
17 views

Error: fetching abi for eosio: deadline exceeded by xx us

When launching a transaction like: await eosioApi.transact({ actions: [ { account: "eosio", name: 'newaccount', authorization: [{ actor:...
0
votes
1answer
39 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 ...
0
votes
1answer
24 views

Monitoring transactions on a private blockchain

I just started working with EOSIO and I created a private blockchain with 4 producersfollowing the bios boot sequence tutorial (https://developers.eos.io/welcome/latest/tutorials/bios-boot-sequence). ...
1
vote
2answers
35 views

How to get Block Number

Which is the accurate method to get the block number to which a transaction is written after executing a transaction? The resposne of push_transaction API is not accurate Can anyone help me with ...
0
votes
0answers
10 views

It is possible to get transaction without the block number?

I would like to know if is possible to get transaction without the block number, or how to get the block number corresponds to the transaction ID. Error 3040011: The transaction can not be found ...
0
votes
1answer
24 views

Contract transaction cannot be found after i get result of pushSignedTransaction

I've send a contract trans on mainnet use eosjs@20, and i've tried for 4 times, every time i get a trans result, but all of them seemed been drop, i cannot find them on explorer or on chain, can any ...
0
votes
0answers
8 views

EOSIO calculate transaction_mroot

As a general task i am trying to reverse engineer the production of a Block. With the help of EOSJS i was able to make a transaction from scratch and i can de/serialize it and sign it and so on. Now i ...
1
vote
1answer
49 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
17 views

serialization limit and executed transactions are lost

I get a lot of "serialization time limit 15000us exceeded" when sending transactions to the EOS mainnet with eosjs. Also, a lot of the transactions return status = executed, but are not found on the ...
0
votes
1answer
27 views

Get transaction EOSJS

I used the following function to get transaction with eosjs, but it doesn't display all the content. (async () => { await rpc.history_get_transaction('...
0
votes
0answers
11 views

EOS and IOT to check integrity

I would like to check the integrity of the data sent by the IOT device using EOS. It is the hash of the data that is stored in EOS but the data is stored in the database. I used a smart contract to ...
1
vote
0answers
15 views

billed CPU time (2064 us) is greater than the maximum billable CPU time for the transaction (477 us) [duplicate]

Please help. I want to sell my rex into EOS. I am not able to do it. I get the error: billed CPU time (2064 us) is greater than the maximum billable CPU time for the transaction (477 us) Thank you
0
votes
1answer
40 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
16 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
1answer
26 views

Error: assertion failure with message: comparison of assets with different symbols is not allowed

I am trying to create and account from another account, both on JungleNet. I am using junglenet rpc. Here is my code: const {Api, JsonRpc} = require('eosjs'); const {JsSignatureProvider} = require('...
0
votes
1answer
29 views

Error: Number is out of range

I am trying to create and account from another account, both on JungleNet. I am using junglenet rpc. Here is my code: const {Api, JsonRpc} = require('eosjs'); const {JsSignatureProvider} = require('...
1
vote
2answers
177 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 ...
0
votes
1answer
94 views

Error: fetching abi for eosio: unknown key

I am trying to create and account from another account, both on JungleNet. I am using dffuse for my rpc. Here is my code: const {Api, JsonRpc} = require('eosjs'); const {JsSignatureProvider} = ...
0
votes
1answer
36 views

Unsupported abi version

I am making an offline transaction. I am providing the API with the following parameters as an object: rpc: new JsonRpc('https://jungle.eos.dfuse.io/', { fetch }), signatureProvider: new ...
0
votes
0answers
22 views

RECENT BLOCKS RECENT TRANSACTION

How I can do this with local Blockchain, I would like to have the RECENT TRANSACTIONS and RECENT BLOCKS. I use these two APIs: http://host/:port/v1/history/get_transaction http://localhost:8080/...
0
votes
1answer
67 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
71 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
2answers
256 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 ...
0
votes
0answers
19 views

Only including serialized action data in transaction

Typical eosio transactions fall just outside of the amount of data that can be sent over a LoRa radio frequency network packet. Is it possible to pack a transaction and submit it to the network with ...
0
votes
2answers
140 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 ...
1
vote
1answer
75 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 ...
3
votes
1answer
145 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 ...
1
vote
1answer
30 views

Can I transfer EOS from one account to other using eosjs or is EOS only used for buying RAM and staking? (Both accounts are on jungle testnet)

async function sendEos (sender, receiver ) { try{ const result = await api.transact({ actions: [{ account: 'eosio.token', //'eosio.token', name: 'transfer', //'...
1
vote
1answer
107 views

What is a replacement for deprecated v1/history/get_transaction?

https://developers.eos.io/eosio-nodeos/reference#get_transaction-1 Api docs says that history plugin is deprecated. So v1/history/get_transaction is deprecated as well. Many eos nodes don't support it ...
1
vote
1answer
122 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
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 ...
0
votes
1answer
164 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 (...
4
votes
2answers
153 views

How to calculate `action_mroot`

UPDATE #3 for future action_mroot calculators: The two critical bits of info needed to do this (that are neither easy to find nor documented) are: There exists an extra action (which has a receipt) ...
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(...
0
votes
0answers
12 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
38 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
15 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
32 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
60 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
33 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("...
2
votes
2answers
197 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 ...
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 ...
1
vote
3answers
274 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 ...
0
votes
0answers
82 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
58 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
49 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
35 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
183 views

Difference between EOS transaction “traces” and “trx”

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