fn fetch_ledger( rpc: &str, ledger: u32, ) -> Result<(Vec<u8>, Vec<(Vec<u8>, Vec<u8>)>), Box<dyn Error>>
Fetches the ledger header and all transactions with metadata from the node.