decentraland / decentraland/sdk

[BUG] SDK7 EthConnect seems to have no way to determine that a contract method has been mined and confirmed.

Open
#1,011 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
4
Forks
5
PR merge metrics
No merged PRs in 30d

Description

After making a contract function call (such as 'transfer'), I want to wait until the transaction has been mined, not just submitted and pending, to act on the payment.

I have tried each of these methods, which do exist in EthConnect:
`let tr1:EthConnect.FinishedTransactionAndReceipt = await requestManager.getConfirmedTransaction(tx)`
`let tr2:EthConnect.FinishedTransactionAndReceipt = await requestManager.waitForCompletion(tx)`

When I use them, I receive this error in the console:
`RemoteError: The Ethereum method "eth_getTransactionByHash" is blacklisted on Decentraland Provider`

1) I assume eth_getTransactionByHash is called by both of the above methods
2) Is it really important that it (and perhaps these) are blacklisted, and if so why specifically?
3) How should I, in the restricted EthConnect library, determine when a transaction has been mined, or better yet, received some specified number of block confirmations?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.