Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom wallet (ts) for Magic.link #8

Open
Gizmotronn opened this issue Mar 4, 2022 · 1 comment
Open

Custom wallet (ts) for Magic.link #8

Gizmotronn opened this issue Mar 4, 2022 · 1 comment
Assignees
Labels
chain documentation Improvements or additions to documentation external API integration

Comments

@Gizmotronn
Copy link
Member

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 Gizmotronn added documentation Improvements or additions to documentation external API integration chain labels Mar 4, 2022
@Gizmotronn Gizmotronn self-assigned this Mar 4, 2022
Gizmotronn added a commit that referenced this issue Mar 4, 2022
Gizmotronn added a commit that referenced this issue Mar 4, 2022
@Gizmotronn
Copy link
Member Author

Gizmotronn added a commit that referenced this issue Apr 18, 2022
@Gizmotronn Gizmotronn mentioned this issue Apr 18, 2022
Gizmotronn added a commit that referenced this issue Apr 29, 2022
Also adding starting components for identifying in-game content from talonova/Signal-K-Unity-WebGL-Demo#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chain documentation Improvements or additions to documentation external API integration
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant