This script will generate signatures for manual API use. Use this if you wish to make an Immutable API call which requires either of the following:
- eth_signature : a signature of a L1 payload
- stark_signature: a signature of a L2 payload
- Node 16+
cd ./generateAPISignature
ts-node --esm ./index.ts
------------------------- INPUT VALUES ----------------------------
ETH Public Key (Address): {PUBLICKEY}
ETH Private Key: {PRIVATE_KEY}
ETH Network: {ETH_NETWORK}
Alchemy API Key: {ALCHEMY_API}
------------------------- STARK WALLET ----------------------------
Stark Public Key: {STARK_PUBLIC_KEY}
Stark Private Key: {STARK_PRIVATE_KEY}
------------------------- TO BE SIGNED ----------------------------
Stark L2 Payload Hash: {STARK_PAYLOAD}
ETH L1 Message: {ETH_PAYLOAD}
------------------------- SIGNATURES ------------------------------
STARK L2 Signature: {STARK_SIGNATURE}
ETH L1 Signature: {ETH_SIGNATURE}