export difficulty to csv RPC