Last active
January 15, 2025 06:07
-
-
Save TrueCarry/cac00bfae051f7028085aa018c2a05c6 to your computer and use it in GitHub Desktop.
TON Connect V2 Proof verification
This file contains hidden or 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
https://github.com/ton-connect/demo-dapp-with-react-ui/blob/master/src/server/services/ton-proof-service.ts |
This file contains hidden or 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 hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get the wallet pubkey via the contract wallet's get method. (https://tonapi.io/api-v2#operations-Connect-getTonConnectPayload) /v2/tonconnect/stateinit
If the contract is inactive, this method will not work; you'll need to parse the walletStateInit provided by the frontend.
parse state init example on GO:
https://github.com/ton-connect/demo-dapp-backend/blob/master/state_init.go