Hey, can someone tell me what is sendmode:3 ?
I'm trying to send funds to inactive wallet and i'm getting error, perhaps I need to change sendmode for this

Jun 1, 2022, 12:51 PM
o, thx =))
invalid json response body at https://testnet.toncenter.com/api/v2/jsonRPC reason: Unexpected token R in JSON at position 0
Jun 1, 2022, 12:53 PM
Also, the destination address must have bounce flag cleared.
Jun 1, 2022, 12:54 PM
O! so seqno is not what I'm getting from wallet.methods.seqno().call() ?
I't oly when sending to unactive wallet?
How to do that? i'ts not yet exists
sry for dump questions am only starting and stuck
Jun 1, 2022, 12:58 PM
Use the Address utility class for this. It can parse and format addresses for you. Namely the toString() method has the flag that I've mentioned.
Jun 1, 2022, 1:01 PM
thanks
Someone has to fix this. jsonRPC responds with string "Rate limit exceeded: 1 per 1 second" and node-fetch used under the hood in tonweb expects JSON. So the error in .catch() statment is "invalid json response body at..." insead of "Rate limit exceeded: 1 per 1 second"
Jun 1, 2022, 1:42 PM
use a different endpoint
or add a sleep and wait a sec
Jun 1, 2022, 1:43 PM
Or use API-Key) It's free

Allows 10 requests per sec
@tonapibot (mainnet)
@tontestnetapibot (testnet)
Jun 1, 2022, 2:56 PM
Thank you for reporting this. You are absolutely right, that's definitely a bad behavior. We should train our APIs better than this :)
Be advised, that this is designed for getting-started/development usage. You should definitely run your own instance of the TonCenter in production.
Jun 1, 2022, 4:33 PM
O, I will. I just wanted to run this example. When I figured out real error I fixed my script and it worked
thanks
Jun 1, 2022, 4:35 PM

© 2024 Draquery.com All rights reserved.