pub trait Queryable<C: RpcApi>: Sized { type Id; fn query(rpc: &C, id: &Self::Id) -> Result<Self>; }
A type that can be queried from Bitcoin Core.
Type of the ID used to query the item.
Query the item using rpc and convert to Self.
rpc
Self