capture an event issued by a smart contract and make a web request

0 votes
I am approaching blockchain and smart contracts for the first time and I have trouble understanding some concepts. I have to design a decision making architecture based on smart contracts. I have to manage hotel reservations based on the weather. The logic of confirming or canceling reservations is encapsulated in the smart contract and the weather information is provided by the oracle.

oracle-> orracle smart contract+oracle service implemented with web3js

oracle smart contract emits an event. An oracle service captures the event. the oracle service makes a web request.

. I want to understand the interaction between

-smart contract oracle-oracle service

- oracle service - external source

I want to understand which library to use
Dec 29, 2020 in Blockchain by anonymous
• 120 points
146 views

1 answer to this question.

0 votes

Hi, @There,

Regarding your query, I suggest you go through this:

https://docs.oracle.com/cd/E15523_01/integration.1111/e10231/intgn.htm#TKADP232

answered Dec 29, 2020 by Gitika
• 65,870 points

Related Questions In Blockchain

0 votes
1 answer

How is a request sent from an app to a smart contract?

Yes, the contract is distributed by every node ...READ MORE

answered Jun 4, 2018 in Blockchain by Perry
• 17,100 points
183 views
0 votes
1 answer
0 votes
1 answer

Can I swap an ERC-20 token with a Neo NEP5 token using a smart contract?

Every Blockchain has a separate administration. So, it ...READ MORE

answered Jun 4, 2018 in Blockchain by Perry
• 17,100 points
301 views
0 votes
2 answers

How to get notified when an event triggers on ethereum smart contract?

Muchas gracias. ?Como puedo iniciar sesion? READ MORE

answered May 2, 2020 in Blockchain by aqowcmbevs
1,101 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,830 points
582 views
+1 vote
1 answer
0 votes
1 answer

How to set web3 solidity variable value?

The setLog transaction has not yet been mined by ...READ MORE

answered Jul 6, 2018 in Blockchain by Christine
• 15,830 points
763 views
0 votes
1 answer
0 votes
1 answer

How to create an instance of contract in Truffle console?

Hi, @There, I would suggest you go through ...READ MORE

answered Jun 17, 2020 in Blockchain by Gitika
• 65,870 points
389 views
0 votes
2 answers

how save data from different account using web3.py to smart contract

Hey, @Amal, It will automatically take the address ...READ MORE

answered Jul 27, 2020 in Blockchain by Rajiv
• 8,880 points
425 views