Reverse engineered prompt

GitHub

Build me a small Go SDK for working with Safe wallets on Ethereum. I want to be able to create a client by passing in a Safe address and an RPC URL, then have it load the basic wallet info for me, like the address, chain id, current nonce, and the list of owners.

Please make it feel like a clean reusable Go package, with a simple config based setup and sensible error handling. It would also help to include a tiny runnable example, or a simple command line demo, that connects to a real RPC endpoint and prints those values so I can quickly verify it works.

The goal is basically a Go friendly wrapper around the Safe core functionality for reading wallet details, not a huge app. Keep the API straightforward and easy to understand. If you need to confirm anything about how Safe works, look up the current docs online.

Have a live product UI? Try website reverse