Skip to content
Compare
Choose a tag to compare
@jnsdls jnsdls released this 08 Jan 08:15
· 68 commits to main since this release
b2b5ae3

Minor Changes

  • #5878 70b7b5c Thanks @ElasticBottle! - Add support for backend wallets.

    This is useful is you have a backend that is connected to an that you want to have programmatic access to a wallet without managing private keys.

    Here's how you'd do it:

    const wallet = inAppWallet();
    const account = await wallet.connect({
      strategy: "backend",
      client: createThirdwebClient({
        secretKey: "...",
      }),
      walletSecret: "...",
    });
    console.log("account.address", account.address);

    Note that walletSecret should be generated by you and securely stored to uniquely authenticate to the given wallet.

Patch Changes