Closed LiveDuo closed 2 years ago
The signing prompt ('connection modal') is solely so that WebBundlr can get the user's public key/address - no data is actually submitted anywhere - but this means that this prompt effectively always has to occur. There is, however, work being put into removing this step of the process - but I cannot give you a definite timeframe for when/if this change will be released. As a side note; as long as you are re-using the same WebBundlr instance, a user should only have to interact with the connection modal once per site visit - it should be noted that a separate modal for each upload is, however, unavoidable.
The signing prompt ('connection modal') is solely so that WebBundlr can get the user's public key/address - no data is actually submitted anywhere - but this means that this prompt effectively always has to occur.
If I understand upload
calls getSigner
that has a different implementation for each chain.
Then if this.signer
is null, InjectedEthereumSigner
creates a new signer:
Are the function above the relevant ones for ethereum?
Yup, InjectedEthereumSigner is the signer that creates the connection modal.
The following code opens a Metamask window requesting to sign a transaction.
Is there a way to check if the signed transaction is already submitted to the bundler node?
For example:
PS: The goal is to avoid showing the Metamask modal for every new upload.