Bootstrap Etherspot SDK
The bare minimum to get you started.
Create an instance of the Etherspot SDK
Create a session
import { Sdk } from 'etherspot';
const sdk: Sdk; // current sdk instance
async function main() {
const output = await sdk.createSession();
console.log('session object', output);
console.log('session graphql headers', {
['x-auth-token']: output.token,
});
}Get your Etherspot Ethereum address
Last updated
Was this helpful?