Hi!
Can someone share how to verify user’s wallet? I was trying to ask him to make a transaction for 0.001 TON to the new generated wallet, but because wallet is not active, it does not report any transactions. Is there any well known ways?
Sep 24, 2022, 1:40 PM
Tonscan is showing that transaction, but it’s not available through HTTP api or libraries
Sep 24, 2022, 1:44 PM
did you set your api on the correct network? testnet/mainnet?
Sep 24, 2022, 1:45 PM
Yes
This is the address which I’m trying to “parse”(test net)
EQCxSu8H4BI4MTdZdC2foW1FBWL7bQvq-Q5pyh1OALEoZGkc
As I understand it gives an error because account state is Inactive. So I’m wondering is there any other ways to verify that user really owns account
This is the address which I’m trying to “parse”(test net)
EQCxSu8H4BI4MTdZdC2foW1FBWL7bQvq-Q5pyh1OALEoZGkc
As I understand it gives an error because account state is Inactive. So I’m wondering is there any other ways to verify that user really owns account
Got it. Thank you for the answers
Sep 24, 2022, 2:43 PM
Sign a message and verify it with tonweb or something
You can ask user to sign something like this:
// Sign custom hex
const signature = await provider.send(
'ton_rawSign',
[{
data: 'ABC123'
}]
)
console.log('signature is ' + signature)
Public key can be retrieved with get_public_key() method of wallet smart contract if you know user's wallet address
// Sign custom hex
const signature = await provider.send(
'ton_rawSign',
[{
data: 'ABC123'
}]
)
console.log('signature is ' + signature)
Public key can be retrieved with get_public_key() method of wallet smart contract if you know user's wallet address
I'm not sure how to verify signature, but you'll probably need to use something from tonweb or nacl
Sep 24, 2022, 3:58 PM