To run these examples, you can clone the Etherspot Modular SDK repo.
Then cd into the directory and run:
Then create a .env file in the etherspot-modular-sdk directory.
Within it we want to put something like this:
WALLET_PRIVATE_KEY=''
WALLET_ADDRESS=''
API_KEY=''
Please ensure to prefix your private key with “0x” so the SDK is instantiated correctly.
Then, you can try running the get address example like this:
And it should output something like this to show the Etherspot SDK has been instantiated using the private key you used.
> ./node_modules/.bin/ts-node ./examples/01-get-address
EtherspotWallet address: 0xb9798dF748E45F1fB724F50B7542802E5462a58a