Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tonconnect/ui-react

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonconnect/ui-react - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "@tonconnect/ui-react",
"version": "0.0.7",
"version": "0.0.8",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -182,12 +182,13 @@ # TON Connect UI React

```ts
import {useEffect} from "react";
import {useTonConnectUI} from "@tonconnect/ui-react";
const wallet = useTonWallet();
const [tonConnectUI] = useTonConnectUI();
useEffect(() => {
if (wallet && wallet.connectItems?.tonProof && 'proof' in wallet.connectItems.tonProof) {
checkProofInYourBackend(wallet.connectItems.tonProof.proof);
}
}, [wallet]);
useEffect(() =>
tonConnectUI.onStatusChange(wallet => {
if (wallet.connectItems?.tonProof && 'proof' in wallet.connectItems.tonProof) {
checkProofInYourBackend(wallet.connectItems.tonProof.proof, wallet.account);
}
}), []);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc