Signal-K / quartz

🌱 host your own second brain and digital garden
http://app.skinetics.tech/quartz
MIT License
3 stars 0 forks source link

Custom wallet (ts) for Magic.link #8

Open Gizmotronn opened 2 years ago

Gizmotronn commented 2 years ago

Integrating ThirdwebSDK with Quartz:

import { ThirdwebSDK } from "@3rdweb/sdk";
import { ethers } from "ethers";
import { Magic } from "magic-sdk";

const magic = new Magic()

// Magic.link wallet -> will be making the sdk contract calls
const provider = new ethers.providers.Web3Provider(magic.rpcProvider);
const signer = provider.getSigner();

// Initialise the SDK instance with magic.link signer
const sdk = new ThirdwebSDK(signer);

// Access any modules using the SDK
sdk.getNFTModule("0x...");
Gizmotronn commented 2 years ago

https://github.com/Signal-K/ls-cli/issues/15 https://github.com/Signal-K/starsailors-boilerplate/issues/3 https://github.com/Signal-K/Unity-WebGL-Demo/issues/1 https://github.com/Signal-K/marketplace/issues

New commit incoming referencing these!!