Storage provider. Error: 1009
from Anon
Hello everyone!
I'm trying to send file to storage provider
First I generated file, using storage-daemon-cli. Command like this:
new-contract-message --query-id 0 --provider
Then trying to send file, using ton-core JS SDK
const tempFilePath = './storage/tempFile' // tempFile - file generated by daemon-cli
const payload = await fsPromise.readFile(tempFilePath, {encoding: 'base64'});
const payloadBase64 = Cell.fromBase64(payload)
const messageBody = beginCell()
.storeUint(0x107c49ef, 32)
.storeUint(0, 1 + 4 + 4 + 64 + 32 + 1 + 1)
.storeSlice(payloadBase64.beginParse())
.endCell();
await provider.internal(via, {
value: "0.5",
body: messageBody
});
But then execution smart contract crashes with 1009 error
const error::provider_params_changed = 1009;
Smart contract code on GitHub
Can anybody explain how to make right message body?
Thank you all in advance!
🔗 Answer on TON Overflow
Then trying to send file, using ton-core JS SDK
const tempFilePath = './storage/tempFile' // tempFile - file generated by daemon-cli
const payload = await fsPromise.readFile(tempFilePath, {encoding: 'base64'});
const payloadBase64 = Cell.fromBase64(payload)
const messageBody = beginCell()
.storeUint(0x107c49ef, 32)
.storeUint(0, 1 + 4 + 4 + 64 + 32 + 1 + 1)
.storeSlice(payloadBase64.beginParse())
.endCell();
await provider.internal(via, {
value: "0.5",
body: messageBody
});
But then execution smart contract crashes with 1009 error
const error::provider_params_changed = 1009;
Smart contract code on GitHub
Can anybody explain how to make right message body?
Thank you all in advance!
🔗 Answer on TON Overflow
Apr 12, 2023, 4:51 PM
Guys if someone know what the problem, please write the answer
I can’t understand how to form correct message body
I can’t understand how to form correct message body
Apr 12, 2023, 5:58 PM
Нода не участвует в цикле, она простаивает или работает как коллатор?
from God's Eater
если нода валидатора не участвует в цикле(не хватило средств для участия в выборах) она простаивает или работает как коллатор? В конце года обещают разделить ноды валидаторов и коллаторов в отдельные ноды,коллатора и тоже нужен будет огромный стей toncoin для генерации блоков?
🔗 Answer on TON Overflow
from God's Eater
если нода валидатора не участвует в цикле(не хватило средств для участия в выборах) она простаивает или работает как коллатор? В конце года обещают разделить ноды валидаторов и коллаторов в отдельные ноды,коллатора и тоже нужен будет огромный стей toncoin для генерации блоков?
🔗 Answer on TON Overflow
Apr 12, 2023, 7:39 PM