Skip to content

Synthetixio/optimistic-trader

Repository files navigation

Optimistic Trader

  1. Clone this repo
  2. Create a .env file with PRIVATE_KEY= followed by your private key (include the 0x)
  3. Tinker with the code
  4. Run with npm start

Extracting your private key from the site

For your private key, use the Export Account button to copy your URL.

image

Take this URL, and use it below to see your private key locally

const exportLink = 'PASTE YOUR EXPORT ACCOUNT HERE';
console.log(
	'Private key is',
	ethers.Wallet.fromMnemonic(exportLink.match(/\?account=(.+)$/)[1].replace(/-/g, ' ')).privateKey,
);

Releases

No releases published

Packages

No packages published