pub fn submit_signed_transaction(
        &mut self,
        raw_txn: RawTransaction,
        public_key: Ed25519PublicKey,
        signature: Ed25519Signature,
    ) -> Result<()> {
        let signed_txn = SignedTransaction::new(raw_txn, public_key.clone(), signature);

        let mut req = SubmitTransactionRequest::new();
        let sender_address = signed_txn.sender();
        let sender_sequence = signed_txn.sequence_number();

        req.set_signed_txn(signed_txn.into_proto());
        self.client.submit_transaction(None, &req)?;
        // blocking by default (until transaction completion)
        self.wait_for_transaction(sender_address, sender_sequence + 1);

        Ok(())
    }
/// Submit a transaction to the network given the unsigned raw transaction, sender public key
/// and signature
Submit a transaction to the network given the unsigned raw transaction, sender public key
and signature
Submit a transaction to the network given the unsigned raw transaction sender public key and signature
pub fn submit_signed_transaction(
        &mut self,
        raw_txn: RawTransaction,
        public_key: Ed25519PublicKey,
        signature: Ed25519Signature,
    ) -> Result<()> {
        let signed_txn = SignedTransaction::new(raw_txn, public_key.clone(), signature);
        let mut req = SubmitTransactionRequest::new();
        let sender_address = signed_txn.sender();
        let sender_sequence = signed_txn.sequence_number();
        req.set_signed_txn(signed_txn.into_proto());
        self.client.submit_transaction(None, &req)?;
        // blocking by default (until transaction completion)
        self.wait_for_transaction(sender_address, sender_sequence + 1);
        Ok(())
    }
pub fn submit_signed_transaction ( & mut self , raw_txn : RawTransaction , public_key : Ed25519PublicKey , signature : Ed25519Signature , ) -> Result < ( ) > { let signed_txn = SignedTransaction :: new ( raw_txn , public_key . clone ( ) , signature ) ; let mut req = SubmitTransactionRequest :: new ( ) ; let sender_address = signed_txn . sender ( ) ; let sender_sequence = signed_txn . sequence_number ( ) ; req . set_signed_txn ( signed_txn . into_proto ( ) ) ; self . client . submit_transaction ( None , & req ) ? ; // blocking by default (until transaction completion) self . wait_for_transaction ( sender_address , sender_sequence + 1 ) ; Ok ( ( ) ) }
Submit a transaction to the network given the unsigned raw transaction, sender public key
and signature
Submit a transaction to the network given the unsigned raw transaction sender public key and signature
&mut self
raw_txn
RawTransaction
public_key
Ed25519PublicKey
signature
Ed25519Signature