We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently there's no submit_then_watch to work with offline signed Tx's - using sign_and_submit_then_watch requires the use of a signer.
submit_then_watch
sign_and_submit_then_watch
By exposing transaction::TransactionProgress I can have my own implementation of submit_then_watch without being bound to signing in subxt.
transaction::TransactionProgress
async fn submit_then_watch<'client>( client: &'client Client<DefaultConfig>, ext_hash: H256, signed_tx: Bytes, ) -> Result<TransactionProgress<'client, DefaultConfig>, parity_scale_codec::Error> { let sub = client.rpc().watch_extrinsic(signed_tx).await.unwrap(); Ok(TransactionProgress::new(sub, client, ext_hash)) } let events = submit_then_watch(&api, ext_hash, signed_tx) .await .unwrap() .wait_for_finalized_success() .await .unwrap();
The text was updated successfully, but these errors were encountered:
Sounds good to me! Happy to accept a PR to expose this, otherwise I'll get around to it quite soon :)
Sorry, something went wrong.
#401
No branches or pull requests
Currently there's no
submit_then_watch
to work with offline signed Tx's - usingsign_and_submit_then_watch
requires the use of a signer.By exposing
transaction::TransactionProgress
I can have my own implementation ofsubmit_then_watch
without being bound to signing in subxt.The text was updated successfully, but these errors were encountered: