Types
NOTE: Different from JSON RPC API, removed some optionality to reduce complexity (array with array)