Skip to content

Navigation Menu

Sign in
Sign up

Custom wallet (ts) for Magic.link #8

Open
Assignees
Labels
chain documentationImprovements or additions to documentation externalAPI integration

Description

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...");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chain documentationImprovements or additions to documentation externalAPI integration

Type

No type

Projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    AltStyle によって変換されたページ (->オリジナル) /