SessionKeyValidator SDK examples
Run SessionKeyValidator SDK examples
To run these examples, you can clone the Etherspot Modular SDK repo.
Then cd into the directory and run:
npm i && npm run init
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:
npx ts-node 13-list-modules.ts
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/13-list-modules.ts