F
Flowβ€’8mo ago
Vishal | Flow

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
Needle
Needleβ€’8mo 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
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
Vishal | Flow
Vishal | Flowβ€’8mo ago
@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
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
Vishal | Flow
Vishal | Flowβ€’8mo ago
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
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
Vishal | Flow
Vishal | Flowβ€’8mo ago
the curl didn't work 😦 run.dnz.dev works πŸ™‚
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View