flashbots / simple-arbitrage

Example arbitrage bot using Flashbots
1.97k stars 743 forks source link

PRIVATE_KEY definition #13

Closed angelo-di-marzio closed 3 years ago

angelo-di-marzio commented 3 years ago

Hi !

What do you mean by 'raw 32-byte format' ? The private key from metamask has a length of 64 char, how can i convert it to 32bytes ?

I'm missing something here

Thanks a lot !

cloorem commented 3 years ago

the 64 chars are hexadecimal, so two of them is a byte.

angelo-di-marzio commented 3 years ago

Okay, it is indeed already a 32 byte hexa string.

Thanks a lot !