pub async fn send_tx(
        &self,
        tx: FranklinTx,
        eth_signature: Option<PackedEthSignature>,
    ) -> Result<TxHash, failure::Error> {
        let msg = JsonRpcRequest::submit_tx(tx, eth_signature);

        let ret = self.post(&msg).await?;
        let tx_hash = serde_json::from_value(ret).expect("failed to parse `send_tx` response");
        Ok(tx_hash)
    }
/// Sends the transaction to the ZKSync server using the JSON RPC.
Sends the transaction to the ZKSync server using the JSON RPC.
Sends the transaction to the ZKSync server using the JSON RPC .
pub async fn send_tx(
        &self,
        tx: FranklinTx,
        eth_signature: Option<PackedEthSignature>,
    ) -> Result<TxHash, failure::Error> {
        let msg = JsonRpcRequest::submit_tx(tx, eth_signature);
        let ret = self.post(&msg).await?;
        let tx_hash = serde_json::from_value(ret).expect("failed to parse `send_tx` response");
        Ok(tx_hash)
    }
pub async fn send_tx ( & self , tx : FranklinTx , eth_signature : Option < PackedEthSignature > , ) -> Result < TxHash , failure :: Error > { let msg = JsonRpcRequest :: submit_tx ( tx , eth_signature ) ; let ret = self . post ( & msg ) . await ? ; let tx_hash = serde_json :: from_value ( ret ) . expect ( " " ) ; Ok ( tx_hash ) }
Sends the transaction to the ZKSync server using the JSON RPC.
Sends the transaction to the ZKSync server using the JSON RPC .
&self
tx
FranklinTx
eth_signature
Option<PackedEthSignature>