Skip to content

Instantly share code, notes, and snippets.

View cloggo's full-sized avatar

Aaron Diep cloggo

  • Calgary, Alberta, Canada
View GitHub Profile
@cloggo
cloggo / browser-sample.js
Last active September 13, 2021 16:42
Create covalent signature payload
// In html,
// <script src="http://path-to-/covalent-js-sign.js"></script>
// To create the payload to that include the challenge data and the signature in base64,
const privateKey = "59e96b740f0af54f2d4335ddd033816fa24348b4097d3fddad4f6edc939f52e9";
const walletAddress = "0x71d094E5382CA33B25B92d3A75d5C6f269A78fAe";
const chainId = "1"; // default is "1"
// browser