{"id":48577630,"url":"https://github.com/okxlabs/sonar","last_synced_at":"2026-04-08T16:03:05.154Z","repository":{"id":344210433,"uuid":"1171336288","full_name":"okxlabs/sonar","owner":"okxlabs","description":"A CLI tool for local Solana transaction simulation (LiteSVM) plus common developer utilities","archived":false,"fork":false,"pushed_at":"2026-04-03T13:47:38.000Z","size":1836,"stargazers_count":13,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T17:55:23.471Z","etag":null,"topics":["litesvm","simulation","solana"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okxlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-03T05:42:58.000Z","updated_at":"2026-04-03T16:48:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/okxlabs/sonar","commit_stats":null,"previous_names":["okxlabs/sonar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/okxlabs/sonar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okxlabs%2Fsonar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okxlabs%2Fsonar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okxlabs%2Fsonar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okxlabs%2Fsonar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okxlabs","download_url":"https://codeload.github.com/okxlabs/sonar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okxlabs%2Fsonar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["litesvm","simulation","solana"],"created_at":"2026-04-08T16:03:04.291Z","updated_at":"2026-04-08T16:03:05.148Z","avatar_url":"https://github.com/okxlabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonar — Solana Transaction Simulator \u0026 Utilities\n\nA CLI tool for local Solana transaction simulation (LiteSVM) plus common developer utilities.\n\n- **Local simulation** without deploying programs — raw tx, signature, or bundle\n- **State manipulation** — override programs/accounts, fund SOL or tokens, patch data\n- **Offline cache \u0026 replay** — store accounts once, simulate without RPC\n- **Borsh \u0026 Anchor IDL** — serialize/deserialize with a type descriptor DSL\n- **Developer utilities** — decode, convert, PDA, account, program-elf, send, and more\n\n## Installation\n\n```bash\ngit clone https://github.com/user/sonar.git\ncd sonar\ncargo build --release\n# Binary at target/release/sonar\n```\n\n## Quick Start\n\n```bash\n# Simulate a transaction locally\nsonar simulate \u003cBASE58_OR_BASE64_TX\u003e --rpc-url https://api.mainnet-beta.solana.com\n\n# Or fetch by signature (auto-detected)\nsonar simulate \u003cSIGNATURE\u003e --rpc-url https://api.mainnet-beta.solana.com\n\n# Decode an account\nsonar account \u003cPUBKEY\u003e --rpc-url https://api.mainnet-beta.solana.com\n```\n\n## Command Reference\n\n| Command | Use when |\n|---------|----------|\n| **`simulate`** | **You want local execution logs, balance changes, and failure reasons** |\n| `decode` | You only need transaction structure (instructions/accounts) without execution |\n| `account` | You want decoded account metadata/data for a pubkey |\n| `program-elf` | You need raw ELF bytes from upgradeable program/buffer accounts |\n| `idl` | You want to fetch/sync Anchor IDLs or derive an IDL account address |\n| `send` | You want to submit a signed transaction to the network |\n| `borsh` | You want to serialize JSON to Borsh bytes or deserialize Borsh bytes to JSON |\n| `convert` | You want explicit and deterministic format conversion |\n| `pda` | You want to derive a PDA from seeds |\n| `config` | You want to inspect or update `~/.config/sonar/config.toml` |\n| `cache` | You want to list, clean, or inspect cached account data |\n| `completions` | You want to generate shell completion scripts |\n\n## Documentation\n\n- [Simulate \u0026 Decode](docs/simulate.md) — full usage, overrides, funding, patching, cache\n- [Account, PDA, Program ELF, IDL, Send](docs/commands.md) — per-command reference\n- [Borsh](docs/borsh.md) — serialization/deserialization with type descriptor DSL\n- [Convert](docs/convert.md) — format conversion reference\n- [Configuration](docs/configuration.md) — config file, cache, completions\n- [Output Conventions](docs/output-conventions.md) — stdout/stderr contract, permission markers, diagnostics\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokxlabs%2Fsonar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokxlabs%2Fsonar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokxlabs%2Fsonar/lists"}