This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create architecture page * mv * reorder * requested changes
- Loading branch information
1 parent
f61195b
commit cd8935d
Showing
34 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
slug: /wallet/architecture | ||
title: Architecture | ||
sidebar_position: 3 | ||
--- | ||
|
||
# Architecture | ||
|
||
The Wallet SDK allows you to create and connect wallets to your app. | ||
It allows you to easily integrate an existing wallet providers with thirdweb's | ||
[Typescript](/wallet/usage-with-typescript-sdk), | ||
[React](/wallet/usage-with-react-sdk), | ||
[React Native](/wallet/usage-with-react-native-sdk), and | ||
[Unity](/wallet/usage-with-unity-sdk) SDKs or [create your own custom wallet connectors](/wallet/build-a-wallet). | ||
|
||
If you are working in React, React Native, or Unity, you can use the `ConnectWallet` component to | ||
connect & create wallets. The `ConnectWallet` component is a pre-built component which uses the Wallet SDK | ||
under the hood. If you'd like to connect wallets in a back-end environment, or if you'd like full control on how | ||
wallets are created or handled, you can use the Wallet SDK directly. | ||
|
||
## Using the Wallet SDK Directly | ||
|
||
You can use the Wallet SDK directly in any environment that supports TypeScript. | ||
The Wallet SDK enables you to connect and create wallets which you can then use in your app to sign transactions as you usually would. | ||
There are two main instances in which you would use the Wallet SDK directly: | ||
|
||
1. Connecting wallets in a back-end environment such as Node.js script to sign transactions without passing a private key. | ||
Instead, a browser popup would be initiated to sign the transaction. | ||
|
||
2. In projects where you need low-level control of the wallet | ||
|
||
- Example: Needing to pass custom configuration options such as specifying a custom `execute` method for `smartWallet` e.g. [in this template](https://github.com/thirdweb-example/unilogin/tree/main). | ||
|
||
## ConnectWallet | ||
|
||
If you are in a [React](/wallet/usage-with-react-sdk), [React Native](/wallet/usage-with-react-native-sdk), or [Unity](/wallet/usage-with-unity) environment, you can use the `ConnectWallet` component to connect & create wallets. | ||
This component is a pre-built component which uses the Wallet SDK under the hood and works out of the box! | ||
|
||
`ConnectWallet` has a customizable UI and allows you to connect to any of the supported wallets in the Wallet SDK. Read the [`ConnectWallet`](/react/react.connectwallet) documentation to learn more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
cd8935d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./
docs.thirdweb-preview.com
docs-git-main.thirdweb-preview.com
docs.thirdweb.com
portal.thirdweb.com
docs-chi-eight.vercel.app