vishal (2023-10-24)
hey folks - can someone familiar with flow cli and transaction help me with this?
I am trying to send a simple transaction that just logs hello world and does nothing else. I mainly want to test the SendTransaction end point.
I tried this but it doesn't work - flow cli crashes π¦
flow transactions send test.cdc -n testnet --authorizer mytestnetaccount
where test.cdc is
transaction { prepare(authorizer: AuthAccount) { } }
8 Replies
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-cadenceUnknown Userβ’14mo ago
Message Not Public
Sign In & Join Server To View
@bluesign just signner throws this error π¦
$ flow transactions send test.cdc -n testnet --signer vishaltestnet
β Command Error: provided authorizers length mismatch, required authorizers 0, but provided 1
created issue for the crash - https://github.com/onflow/flow-cli/issues/1245
Unknown Userβ’14mo ago
Message Not Public
Sign In & Join Server To View
works with signer - but signature fails π¦
$ flow transactions send test.cdc -n testnet --signer vishaltestnet
Transaction ID: 2b0b47fe50d2812a7f411207d496c027942bad18ce33ec9d4611f58a9104af92
Block ID 07a9f2728f0fa6c94cbc750d1746b41b5974e23ff6710a8b5d073a9469981def
Block Height 127572450
β 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 dcb9e034cced5a49 does not have a valid signature: [Error Code: 1009] invalid envelope key: public key 0 on account dcb9e034cced5a49 does not have a valid signature: signature is not valid
nvm figured it out π thanks a lot both of you
on similar lines - is there a easy way to test the same using the REST API and curl?
curl -v -X POST https://rest-mainnet.onflow.org/v1/transactions but I am having a hard time composing the body
Unknown Userβ’14mo ago
Message Not Public
Sign In & Join Server To View
the curl didn't work π¦
run.dnz.dev works π
Unknown Userβ’14mo ago
Message Not Public
Sign In & Join Server To View