Hot answers tagged

5 votes

Can a smart contract communicate externally?

"Smart contracts can only read data that is part of the transaction or stored in blockchain state. To pass external data into a contract it will need to be sent via an oracle. If you have an external ...
kkurian's user avatar
  • 695
4 votes

How to get all the actions of one account?

I don't know if they are doing that, but what you could do is create a program that reads all blocks from start_block var: Read block start_block Check if this block has transactions If yes, save the ...
Leo Ribeiro's user avatar
  • 3,023
4 votes

difference between history plugin and state history plugin

I asked my friend Andrew Coutts this question on your behalf, and he said: So the state history plugin is just a piece of the equation. The history plugin exposes the RPC API that we're ...
Phillip Hamnett - EOS42's user avatar
2 votes
Accepted

How can one make an EOS plugin to just watch one smart contract actions and transactions

Demux may help you! it's a kind of javascript module. you can watch specific contracts and actions, and handle this in light weight. see repository https://github.com/eosio/demux-js and see this ...
leettamna's user avatar
  • 102
2 votes

How can one make an EOS plugin to just watch one smart contract actions and transactions

In the main repository there is a plugin called history_plugin which can serve as a good example and it includes a simple configurable filter for what it retains. A similar mechanism could be created ...
Bart Wyatt's user avatar
2 votes
Accepted

What's the purpose of use_socket_read_watermark

The option appears to have been introduced in v1.0.4, and it enables low-water marks for socket communication to minimise the number of send calls required to get a minimum number of bytes (i.e. ...
confused00's user avatar
  • 5,554
1 vote

Can a plugin be configured to only process irreversible blocks?

there's a write-up on how exchanges should deal with deposits and withdrawals on the eos blockchain. It deals with irreversible blocks, might be useful: https://developers.eos.io/eosio-cpp/docs/...
mar233's user avatar
  • 21
1 vote
Accepted

Cannot find genesis block in mongodb

It's due to the design of eosio. You can find the related information from here. https://github.com/EOSIO/eos/pull/7690
conr2d's user avatar
  • 2,320
1 vote

Switch to MongoDB Plugin or State History Plugin?

As you are comfortable with C#, combined with SHiP (state_history_plugin) you can also use GraphEosStreamer and modify it for your needs. It's a work in progress, ping me on telegram if you want to ...
cmadh's user avatar
  • 1,929
1 vote

Switch to MongoDB Plugin or State History Plugin?

This article may provide some alternative solutions: https://cc32d9.medium.com/history-and-notifications-in-eosio-blockchain-8255194af93
Matthew Darwin's user avatar
1 vote
Accepted

How do I check what plugins are enabled on an eosio single local testnode, without stopping it?

This is not a direct way, but you can check whether ***_api_plugin is activated by calling /v1/node/get_supported_apis. Run the next command in command line (in the case of local testnet). You should ...
conr2d's user avatar
  • 2,320
1 vote

What is the difference between demux and the state history plugin?

Overall: Both state_history_plugin and demux can be used to cache the contract action data into database/memory for fast access in a structured manner. State_History_Plugin: State_history_plugin is ...
Farhan-TroonTechnologies's user avatar
1 vote
Accepted

State History - Max payload size exceeded in Jungle Block 21,289,343

The solution is simple but obscure if you are not used to nodejs applications. Just run the application with the flag --max-old-space-size=8192 For example, node --max-old-space-size=8192 fill.js ...
zeh's user avatar
  • 201
1 vote
Accepted

State History Plugin. How to deserialize the data?

I found a repo with a JS program for listen to the node and get the blocks. https://github.com/mauhcs/ship_monitoring The fill.js came from another repo that I can't find the url anymore. But for ...
zeh's user avatar
  • 201
1 vote
Accepted

Where is the nodeos handling push_transactions from cleos?

Your method is right to find the answer of push_transaction by print logs,but the place is wrong.when we used command cleos push_transaction which call push_txn_func in cleos main.cpp,a better way to ...
fen chen's user avatar
  • 163
1 vote

Is there any alternative plugin for history plugin?

It would help if you elaborated on what your "requirement" is as well as what "functions" are not being provided by the MongoDB plugin. If you want to store actions to MongoDB, you could use demux to ...
Nat's user avatar
  • 3,425
1 vote

How to get block producers votes on some past date?

Current state which is accessible to dApps is stored in RAM. This is for best performance. Past state which is not needed by dApps is only in the log. There are several plugins which help save the ...
Ami Heines's user avatar
  • 1,686
1 vote
Accepted

How many nodes need to install my custom plugin?

The plugin will only be accessible to RPC clients which connect to nodes which run the plugin. A common case will be websites connecting to nodes running the plugins needed to support that website.
Todd Fleming's user avatar
  • 2,005

Only top scored, non community-wiki answers of a minimum length are eligible