hey, does anyone know what this error means? getting an error when i call the smart contract method in the loop. I have a standard API plan.
{"ok":false,"error":"LITE_SERVER_NOTREADY: block is not applied","code":500}

Nov 1, 2023, 1:19 PM
This means your liteserver is still downloading the last block. You may choose other data provider if so.
Nov 1, 2023, 1:20 PM
oh ok. so i can't request this all method at once right.
const [days, stakedAt, claimedAt] = await Promise.all([
helperContract.getOption(),
helperContract.getStakedAt(),
helperContract.getClaimedAt()
]);
i need to call individually. but it took 3 seconds. is there any way we can boost it?
Nov 1, 2023, 1:23 PM
1. Modify the contract so that it returns all three values from a single get-method.
2. Use sandbox with real blockchain provider, so that contract is downloaded once and then you only call get-methods on local copy.
Nov 1, 2023, 1:56 PM
can we modify it? its already deployed
but i am using it on mainnet. and contract already deployed on mainnet.
Nov 1, 2023, 2:05 PM
@drahul540 actually the contract which you're talking about already returns all data in one call. can we continue our conversation in our group?
Nov 1, 2023, 2:56 PM
yes 🫡
Nov 1, 2023, 2:58 PM

© 2024 Draquery.com All rights reserved.