For historical reasons in the current version we use an api format different from the standard rpc encoding: 1. snake_case field names (instead of camelCase) 2. decimal encoded numbers (instead of hex encoding) If we avoid these differences we could drop all of the code in `src/rpc/types.rs`