MyCrypto icon indicating copy to clipboard operation
MyCrypto copied to clipboard

Prefilled Transaction Links do not work

Open daferna opened this issue 3 years ago • 3 comments

Description of Issue

None of the examples, or any combination of URL parameters listed in the tutorial work: https://support.mycrypto.com/how-to/sending/creating-prefilled-transaction

The error message is constantly returned:

We couldn't resolve your pre-filled transaction settings - either you do not have the 'Sender' account added to your dashboard or you're not on the specified network. Please double check that these are correct and try again. Learn more about speedupting a transaction.

Which should not be the case when the chainId=1 & 'from' is set to the wallet account connected in the Dashboard. There is no combination of parameters I've tried that does not return this error message.

daferna avatar Mar 16 '22 02:03 daferna

@daferna Thanks for reporting this. It seems that the article is out of date. If you use queryType=speedup instead of type=resubmit it should work! I'll update the article as well.

Let me know if that solves it for you 👍

FrederikBolding avatar Mar 16 '22 13:03 FrederikBolding

Hmm, doesn't seem to work for me. The error message is still the same. Presumably I just need a few core parameters like from/to and the wallet should decide the gas price and estimated gas to invoke a smart contract function call? I'm trying to call setPubkey() on the ENS Public Resolver 2 contract, and this doesn't work for me, even though I've connected the same wallet as the 'from' address and the chainId=1, so the error message doesn't aptly describe whatever error is being thrown internally: https://app.mycrypto.com/send?queryType=speedup&type=2&chainId=1&from=0xA01f6D0985389a8E106D3158A9441aC21EAC8D8c&to=0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41&data=0x29cd62ea915cb92d2e9e87afd600c7bba7f36e3e9317b76d0da66f8f1acb1d540f39687bd1deed9de5df9f60a696b6c004c9932d0761427d9ddd21c2f598cb21b049a289f8fab348fb803cdce21a9595219c6b41deccdcd4c7effc95ada956331e12e063

daferna avatar Mar 17 '22 04:03 daferna

Hi @daferna. I don't have much experience using pre-filled transactions. But looking at the source code, it appears that the following query params are required: gasLimit, to, data, nonce, from, value, chainId

You would also need either maxFeePerGas and maxPriorityFeePerGas for a EIP-1559 transaction, or gasPrice for a legacy transaction.

Hope that helps.

mwbailey avatar Mar 17 '22 20:03 mwbailey