Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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.
1
vote
Accepted
How to be more efficient (transaction took too long)
If you are sending all these transactions from one account, Than all you could do :
void Democontract::demoaction(account_name from,vector &tos,vector &memos,string memo,uint64_t delay){
eosio: … ,string memo)
{
eosio::token t(N(eosio.token));
const auto sym_name = eosio::symbol_type(S(4, EOS)).name();
const auto my_balance = t.get_balance(from, sym_name);
print("\n start the transactions …
2
votes
1
answer
214
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 wh …
1
vote
Allow users to withdraw their tokens
Assuming you have setup the scatter and eosjs for your front. if not go here
After that you need to set permissions, Using two functions like this:
async getScatter(nextProps) {
const scatter = n …
1
vote
0
answers
75
views
How can I get all transactions made by an account?
Is there any way I can get a list of transactions pushed by an account? …
1
vote
Divide funds by % to send to different wallets
If you want to send tokens to multiple accounts. You should send the names and the corresponding percentage inside a vector. I have written the code and tested the same with my contract It goes like t …
2
votes
3
answers
433
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 transacti …
1
vote
0
answers
205
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 Feb 201 …
2
votes
Transfer EOS tokens inside a smart contract from an account to another
First of all you need to provide the permission of eosio.code.
After that you can use the transfer action of eosio.token contract.
before assigning tokens see if both .abi and .wast file are there, i …
0
votes
1
answer
58
views
Why we match asset quantity with the uris vector in issue action?
I am working on the repo https://github.com/unicoeos/eosio.nft
If I want to issue some tokens to the another accout,For that I have to send account_name , asset, uris, name,memo to issue action as fo …
4
votes
1
answer
845
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 …
4
votes
2
answers
341
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
1
answer
188
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 …
3
votes
2
answers
118
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( …
4
votes
1
answer
762
views
New version of eosjs does not use chainId, How does it work?
httpEndpoint: 'http://127.0.0.1:8888',
expireInSeconds: 60,
broadcast: true,
verbose: false, // API activity
sign: true
}
eos = Eos(config)
we would push our transactions like this:
eos.transaction …