when i want to send transaction via ton connect sdk i get the bellow error :

userWallet.connector?.sendTransaction(
{"messages": [
{
"address":"0:28c33c2eab67fa99b41ac2177d1993e4c8d7c717f09f51d2a15b3f2b62665b32",
"amount":"300000000"
}
],
"validUntil":1000000}
)

index.mjs:284 Uncaught (in promise) Error: [TON_CONNECT_SDK_ERROR] BadRequestError: Request to the wallet contains errors.
Request timed out

and as shown in the image i get 200 success bridge/message too

Jun 25, 2023, 2:34 PM
validUntil is invalid. It must contain UNIX timestamp when the request becomes outdated.
Jun 25, 2023, 2:37 PM
oh thanks i thought i should pass milliseconds
Jun 25, 2023, 2:38 PM
You now pass the timeout from 'now', but you have to pass the time.
Jun 25, 2023, 2:39 PM

© 2024 Draquery.com All rights reserved.