Make RPC::Ledger generic.