the same question has been asked in here -> Sawtooth Transaction error: "Tried to set unauthorized address" and I tried that answer. But that answer didn't work for me.
i'm using hyperleder sawtooth docker compose to start my services. I'm doing exactly the same thing in this documentation which provided by hyperledger-sawtooth -> https://sawtooth.hyperledger.org/docs/core/releases/1.0/_autogen/sdk_submit_tutorial_js.html#create-the-transaction-header
My payload is
const payload = {
Verb: 'set',
Name: 'test',
Value: 32
}
My transaction header is
const transactionHeaderBytes = protobuf.TransactionHeader.encode({
familyName: 'intkey',
familyVersion: '1.0',
inputs: ['1cf1266e282c41be5e4254d8820772c5518a2c5a8c0c7f7eda19594a7eb539453e1ed7'],
outputs: ['1cf1266e282c41be5e4254d8820772c5518a2c5a8c0c7f7eda19594a7eb539453e1ed7'],
nonce: (Math.random() * 10 ** 18).toString(36),
signerPublicKey: signer.getPublicKey().asHex(),
batcherPublicKey: signer.getPublicKey().asHex(),
dependencies: [],
payloadSha512: createHash('sha512').update(payloadBytes).digest('hex')
}).finish()
Then i did the same process like in the documentation and when i check the status of that transaction, it gives me below response.
Then i check the log of the sawtooth server and it looked like below.
Then after seeing an answer the same question on here (Sawtooth Transaction error: "Tried to set unauthorized address"), I tried inputs
and outputs
arrays as empty arrays like []. But response was same.
My docker-compose file contains below containers