pub fn serde_deposit_tx_rpc<T, S>(
value: &T,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
T: Serialize,
S: Serializer,
Available on crate features
consensus
and serde
only.Expand description
Deposit transactions don’t have a signature, however, we include an empty signature in the response for better compatibility.
This function can be used as serialize_with
serde attribute for the TxDeposit
and will
flatten TxDeposit::signature
into response.