Don’t Export Your PK
A simple dev utility accompanied with a webapp to enable executing transactions without having to export your pk from the wallet
Installation
npm install dont-export-your-pk
Usage
Pass in the appropriate arguments to the function:
generateExecutionUrl( contractAbi: string, functionName: string, functionArguments: string[], to: string, from: string, chainId: any, value?: any)
The function will output a link of the form https://dontexportyourpk.netlify.app followed by the txdata of your transaction in query parameters.
Next, click the link and connect your metamask to the webapp, connect your account and click “Send Transaction”.