Overview
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:
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.
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 forsmartWallet
e.g. in this template.
Wallet Actions
The SDKs provide a set of actions that you can use to interact with the wallet:
Action | Description |
---|---|
Authenticate | Authenticates that a user owns the wallet |
Connect | Connects a wallet to the SDK |
Disconnect | Disconnects a wallet |
Fund Wallet | Funds a wallet with cryptocurrency |
Get Address | Gets the address of a wallet |
Get Balance | Gets the balance of a wallet |
Get Chain ID | Gets the chain ID the wallet is connected to |
Get Signer | Gets the signer of a wallet |
Connection Status | Checks if a wallet is connected |
Recover Address | Recover the signing address from a signed message |
Send Raw Transaction | Sends a raw transaction to the blockchain |
Sign Message | Signs a message with a wallet |
Switch Network | Switches the network of a wallet |
Transfer | Transfers cryptocurrency from a wallet |
Verify Signature | Verifies if a signature is valid |
Build a Wallet Connector
If the wallet you want to use is not supported by the Wallet SDK or Connect Wallet, you can build a connector for it.
To build a connector and add it to Connect Wallet, follow this guide.
References
By using the thirdweb SDKs, you can easily connect and execute wallet actions.