Implement api/writer. Use it to serialize chanSend, but don't actually send them yet