Phillip Hamnett - EOS42
Moderator
  • Member for 3 years, 8 months
  • Last seen more than a month ago
call dice contract's deposit method , Error 3050003: eosio_assert_message assertion failure
2 votes

On a local node, the default symbol is SYS, not EOS. Try the following command: cleos push action dice deposit '[ "alice", "100.0000 SYS" ]' -p alice Make sure that you have enough SYS tokens. I ...

View answer
How does implementation of vote decay prevents usage of automated bots for voting?
2 votes

Vote decay is not intended to prevent the use of bots. The purpose of vote decay is to stop a block producer from becoming 'lazy', in the situation where they get lots of votes from people who then ...

View answer
send different amount of tokens to different accounts in single transaction
1 votes

It is hard to say for sure what the problem is without seeing the error message. It looks like you are trying to transfer money from the from account to the to account with the permission of ...

View answer
How to get table data from Jungle testnetwork?
Accepted answer
1 votes

The reason is because the scope of the table you gave is incorrect. You specified that the scope is addressbook, but there are no table entries under that name. If you type the following command, you ...

View answer
How to create ricardian clauses in the ABI with eosiocpp
1 votes

The eosiocpp compiler was the old deprecated way of compiling the c++ into wasm contracts. The new way uses a compiler called eosio-cpp, which is very confusing. With eosio.cdt, you can generate a ...

View answer
What is the use of eosio.code?
1 votes

What does eosio.code mean? eosio.code is a special permission that can be used to allow the smart contract to call an action without the authorization of a specific user. It is used to allow smart ...

View answer
How to use eosjs V20 to create and sign a offline actions?
1 votes

It looks like you forgot to add the closing square bracket after your action. I assume this is the problem. It should instead look like this: (async()=>{ let actions = [{ account: 'tommy', ...

View answer
Usecase of EOS for DApps
1 votes

Its not about the storing of data, but about the authentification and authorization of that data. A blockchain allows you to know that a specific person performed a specific transaction. Transaction ...

View answer
Create accounts on an EOSIO private blockchain
1 votes

What is the key generation process? As Nat says in his answer, the keys are secp256k1 or secp256r1 curve keys. You can read more about that here: http://www.secg.org/sec2-v2.pdf Can the same keypairs ...

View answer
Error: Provided keys, permissions, and delays do not satisfy declared authorizations
1 votes

This error message means you do not have the correct permissions to run the command as the account eosio. You need to make sure that the private key for the eosio account is in your wallet. You can do ...

View answer
How to handle exceptions in the smart contract?
1 votes

There is no exception handling in web assembly, therefore you can't implement it in the C++ code either. Update: Deferred transactions are deprecated in EOSIO, so I do not recommend using them. The ...

View answer
Transaction Net Usage Is Too High: 136 > 0
1 votes

This means you don't have any EOS staked to NET bandwidth. You can stake EOS using the eosio::delegatebw action, but it is a chicken and egg situation, because you need some NET bandwidth in order to ...

View answer
What factors are also important for block producer to be elected despite votes?
Accepted answer
1 votes

People can vote for whoever they want and for whatever reason they want. Some of the block producers are run by exchanges, and they use their customer's EOS to vote for themselves and their friends. ...

View answer
Trouble starting nodeos - multiple errors
1 votes

The key to the problem is this part of the error message: std::exception::what: Unknown option 'bnet-follow-irreversible' inside the config file /Users/wilfra/Library/Application Support/eosio/nodeos/...

View answer
Is there an easy way to track # of operations on EOS in a single day?
1 votes

The answer from @cmadh would work in principle, but you would have to make sure you successfully called get_info for each block across the day, and you might get rate-limited or face connectivity ...

View answer
How can you use the ONLY_BILL_FIRST_AUTHORIZER feature for updateauth?
1 votes

If you are doing the transaction with cleos then you can just do this: cleos push action CONTRACT ACTION DATA -p ACCOUNT1 -p ACCOUNT2 In this example, ACCOUNT1 will pay for the resources

View answer
How can I find out the API endpoint for a block producer
1 votes

We can do this programmatically by utilizing cleos, jq, sed, and wget. First of all, we get a list of all the block producers, and specifically we get the URL for their websites: cleos get table ...

View answer
Is EOS Account creation free?
1 votes

EOS account creation is not free. The creation of an account costs ~3KB of RAM, the price of RAM changes with time so the actual cost of the account creation varies. The cost of RAM can be seen here: ...

View answer
What is the difference between std::string and eosio::string?
1 votes

According to the release notes: A new type to act as a more efficient replacement to std::string has been added (#459). eosio::string should be more efficient in memory usage and help to reduce ...

View answer
How to disable block production log for nodeos?
Accepted answer
1 votes

The new documentation explains how logging works in nodeos. You have to create a logging.json file in the config_dir for nodeos. I believe (although I haven't tested it), that you can disable ...

View answer
How to use binary extensions
1 votes

Here is an excellent example of how to use binary extensions: https://github.com/EOSIO/eosio.cdt/blob/ab8002109adc4f39d17c7ac38c4d8582af74190a/docs/guides/binary-extension.md I will post the full ...

View answer
What are the advantages and disadvantages of using multiple smartcontracts?
1 votes

Disadvantages You have to manage your resources across each of the contracts separately, meaning that one contract could run out of CPU, NET, or RAM, whilst the other contract still has enough, ...

View answer
How can a dApp pay for user's resources since the upgrade to v1.8?
1 votes

My understand of the way this works is that the first signature that signs the transaction will be charged for the resources of the transaction, but this is only true once BILL_FIRST_AUTH is activated ...

View answer
EOSIO's BP Benchmark
Accepted answer
1 votes

Their code base says: Benchmarks The benchmarks below are EOS contracts which are set on the eosmechanics account on Mainnet, CryptoKylin Testnet, and Jungle Testnet. They are executed during each ...

View answer
Zero amount transfer?
Accepted answer
1 votes

You can keep track of events by simply calling actions. An example of an action is a transfer, but you can make arbitrary actions using a smart contract. In this way you can have a very modular way to ...

View answer
What are the patterns and anti-patterns when programming for EOS?
1 votes

Check who receives a transfer when notifying a contract If you have code which is activated upon receipt of a notification. For example: [[eosio::on_notify("eosio.token::transfer")]] void transfer(...

View answer
Is it possible to access the blacklist for a block producer?
1 votes

It is not possible to see the full blacklist, however there are some methods of partially/semi achieving this: You can check if you are on the blacklist for a BP by executing a transaction whilst the ...

View answer
How do I return an iterator?
Accepted answer
1 votes

The return type is your table type as a namespace for the const_iterator, like this: myTable::const_iterator. However, it is probably best to just return type auto. That way you can't go wrong.

View answer
How to include boost when building using eosio.cdt?
1 votes

Your CMakeLists file in the base folder should not be changed. But rather in the src folder CMakeList you should add the following line: target_include_directories( mycontract PUBLIC "$ENV{BOOST_DIR}/...

View answer
Why doesn't a deployed contract print
Accepted answer
1 votes

This depends on whether or not the node you are sending it to has the option to print console commands or not. If it doesn't then you won't see the message when you push the command with cleos. You ...

View answer
1 2
3
4 5
7