I am trying to get tx status with receipts, the RPC is returning correct JSON, but not sure if it is being deserialized correctly. Here are some snippets from my code (not runnable):
use near_jsonrpc_client::{methods::{self, EXPERIMENTAL_tx_status::{self, TransactionInfo}}, JsonRpcClient};
let request = EXPERIMENTAL_tx_status::RpcTransactionStatusRequest {
transaction_info: TransactionInfo::TransactionId {
tx_hash,
sender_account_id,
},
wait_until: TxExecutionStatus::Final,
};
let tx_status = provider.call(&request).await?;
With tracing enabled, I see the RPC responding with JSON that contains the attribute "receipts": [....]. However, the rust attribute final_execution_outcome in my variable tx_status has type Some(FinalExecutionOutcomeViewEnum::FinalExecutionOutcome(FinalExecutionOutcomeView)).
I would expect it to have Some(FinalExecutionOutcomeViewEnum::FinalExecutionOutcomeWithReceipt(FinalExecutionOutcomeWithReceiptView))
I am trying to get tx status with receipts, the RPC is returning correct JSON, but not sure if it is being deserialized correctly. Here are some snippets from my code (not runnable):
With tracing enabled, I see the RPC responding with JSON that contains the attribute
"receipts": [....]
. However, the rust attributefinal_execution_outcome
in my variabletx_status
has typeSome(FinalExecutionOutcomeViewEnum::FinalExecutionOutcome(FinalExecutionOutcomeView))
. I would expect it to haveSome(FinalExecutionOutcomeViewEnum::FinalExecutionOutcomeWithReceipt(FinalExecutionOutcomeWithReceiptView))
Any thoughts or help would be appreciated.