Skip to main content

convert_transaction_receipt

Function convert_transaction_receipt 

Source
pub fn convert_transaction_receipt<N, C>(
    block: &RecoveredBlock<BlockTy<N>>,
    all_receipts: &[ReceiptTy<N>],
    tx: IndexedTx<'_, BlockTy<N>>,
    receipt: &ReceiptTy<N>,
    converter: &C,
) -> Option<Result<<C::Network as RpcTypes>::Receipt, C::Error>>
where N: NodePrimitives, C: RpcConvert<Primitives = N>,
Expand description

Converts a transaction and its receipt into the rpc receipt format using the given converter.