rooch-network/rooch

[rpc] UTXOView seals output as a map

Closed this issue · 1 comments

#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
pub struct UTXOView {
/// The txid of the UTXO
txid: H256View,
/// The txid of the UTXO
bitcoin_txid: TxidView,
/// The vout of the UTXO
vout: u32,
/// The value of the UTXO
value: u64,
/// Protocol seals
seals: String,
}

The seal field is SimpleMultiMap, and output to JSON should be like Map<String, Vec<Object>>.

cc @TwilightLogic

Sorry that I don't have a bitcoin node to test UTXO. Maybe you can assign this issue to others. @jolestar