You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a discussion on discord with @MicahZoltu
It would be good to add a method to Clef so that dapps can request signing method calls without constructing the calldata. Something like this
I'm a fan of the dapp only providing the first JSON block and leaving nonce management, gas pricing, and gas estimation to Geth (or whatever sits between the signer and the dapp). As a dapp developer, I don't think that those are things that are appropriate for the dapp to be managing.
One exception is for variable gas cost calls, where changes in the chain may result in gas cost estimations being too low. There could be value in the API providing a mechanism for the dapp to say, "This is a variable cost transaction, we recommend XXX gas for it." Ideally, dapp developers would only use this when the transaction is truly variable, but otherwise they would lean on the node to do estimation.
It would be nice if this API also left space for something like ethereum/EIPs#719 in it, so the node can present the user with a human readable signature prompt.
From a discussion on discord with @MicahZoltu
It would be good to add a method to Clef so that dapps can request signing method calls without constructing the calldata. Something like this
This does not provide any details about
nonce
,gasPrice
etc, so that would have to be either addedAlternatively, we could add this method to
eth_
-namespace in Geth, and geth could fill the blockchain details, and then pass it on to clef.The text was updated successfully, but these errors were encountered: