This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
53 additions
and
3 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
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,45 @@ | ||
import { createMetadata } from "@doc"; | ||
|
||
export const metadata = createMetadata({ | ||
title: "Rabby Wallet | thirdweb Unity SDK", | ||
description: "Connect to Rabby Wallet with thirdweb Unity SDK", | ||
}); | ||
|
||
# Rabby | ||
|
||
Prompt users to connect to your app with their [Rabby](https://rabby.io/) wallet. | ||
|
||
## Usage | ||
|
||
```csharp | ||
using Thirdweb; | ||
|
||
public async void ConnectWallet() | ||
{ | ||
// Reference to your Thirdweb SDK | ||
var sdk = ThirdwebManager.Instance.SDK; | ||
|
||
// Configure the connection | ||
var connection = new WalletConnection( | ||
provider: WalletProvider.Rabby, // The wallet provider you want to connect to (Required) | ||
chainId: 1 // The chain you want to connect to (Required) | ||
); | ||
|
||
// Connect the wallet | ||
string address = await sdk.Wallet.Connect(connection); | ||
} | ||
``` | ||
|
||
## Behavior | ||
|
||
### WebGL | ||
|
||
Connects to the Rabby Browser Extension, defaults to WalletConnect otherwise. | ||
|
||
### Standalone | ||
|
||
Not applicable, please use the WalletConnect provider instead which includes Rabby support. | ||
|
||
### Mobile | ||
|
||
Not supported. Please use the WalletConnect provider instead which includes Rabby support. |