Questions tagged [async]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

reducer return state twice, how to update in store? [closed]

My reducer returns state in a async way, since it will interact with another component, how to make the component re-render after reducer update state in the .then? switch (action.type) { case ...
1
vote
0answers
23 views

In Python, how do I use subscriptions, or otherwise perform asynchronous operations?

I have the following code that polls for transactions every second. I want to make it more responsive, and not use polling, but instead something quicker. tx_all_pending = w3.eth.filter('pending') ...
0
votes
2answers
53 views

How to get transaction hash without waiting for await call?

for my demo I need the transaction hash instantly without waiting for callback of sync call. Here my code: aggiungiAllaBlockChain: async(u,n,c,e) => { try { const web3 = new Web3(App....
0
votes
1answer
37 views

Test.js Function Event Logs Return Empty Array - Async/Await/Promise/Tronweb Issue

I'm working on a Tron smart contract and am providing a function in my tests file which emits to an event. When trying to console.log the logs I get an empty array. Is this because of lag for the ...
0
votes
0answers
19 views

How does Oraclize work? [duplicate]

We know that an Oraclize based contract can communicate with the internet sites. We know than Oraclize source is built by Solidity language. We know that there is no command in solidity that can ...
0
votes
1answer
24 views

Cannot read property in event object

I am attempting to collect event information from a contract. When I call the event, I am attempting to collect a specific return value event.returnValue.pubkey. When I run the code below, I get the ...
0
votes
1answer
64 views

Truffle Contract sendTransaction not immediately returning transaction hash

I am using Truffle Contract to call a Smart Contract method that writes to the ethereum blockchain. My web3 client is connected to my own Open Ethereum node. Below is the code (nodejs) that I am using ...
0
votes
1answer
22 views

Is using oraclize to schedule using execution of a function asynchronous?

I am looking for ways to automatically execute a function call every 24 hours in my smart contract and came across this answer. Is the solution here asynchronous, i.e. can the contract execute other ...
1
vote
1answer
24 views

Exit process after sending multiple tx asynchronously

I have written a function that allows me to send an arbitrary amount of transactions, asynchronously, to my smart contract. However the process stays open even after the last transaction has finished. ...
0
votes
0answers
32 views

App freezes when using any Web3j sendAsync function

I'm developing an app using Web3j and Java Kotlin in Android Studio. However, I'm not sure why anytime I call a web3j function with sendAsync the app freezes. if(preferences.applicationPreferences....