F
Flow8mo ago
joshua

joshua | Flow (2024-05-02)

If I want to send a transaction with the CLI with one account as the authorizer and another account as the proposer and the payer, is this the correct command?
flow-c1 transactions send transactions/previewnet/my_transaction.cdc -n previewnet --authorizer account_1 --payer account_2 --proposer account_2 -f flow.previewnet.json
flow-c1 transactions send transactions/previewnet/my_transaction.cdc -n previewnet --authorizer account_1 --payer account_2 --proposer account_2 -f flow.previewnet.json
When I try to run it like that, I get this error:
❌ Transaction Error
[Error Code: 1009] error caused by: 1 error occurred:
* transaction verification failed: [Error Code: 1006] invalid proposal key: public key 0 on account b6763b4399a888c8 does not have a valid signature: [Error Code: 1009] invalid envelope key: public key 0 on account b6763b4399a888c8 does not have a valid signature: signature is not valid
❌ Transaction Error
[Error Code: 1009] error caused by: 1 error occurred:
* transaction verification failed: [Error Code: 1006] invalid proposal key: public key 0 on account b6763b4399a888c8 does not have a valid signature: [Error Code: 1009] invalid envelope key: public key 0 on account b6763b4399a888c8 does not have a valid signature: signature is not valid
I'm not sure if it is an issue with the CLI or if I am doing something wrong
6 Replies
Needle
Needle8mo ago
I've created a thread for your message. Please continue any relevant discussion in this thread. You can rename this thread using /title <new title> If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadence
joshua
joshuaOP8mo ago
I have signed and sent transactions with both of those accounts before as --signer in the flow cli, so I am pretty sure it is not an issue with my flow.json
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
joshua
joshuaOP8mo ago
Okay I'll try it with the first account as payer
Giovanni S
Giovanni S8mo ago
I’ve had to use transactions build then sign then send. That was the only way I could specify alternate payer authorizer and signed. Away from my laptop atm but can try when I get back
joshua
joshuaOP8mo ago
It worked with the first account as the payer
Want results from more Discord servers?
Add your server