{"id":35076803,"url":"https://github.com/reown-com/safe-decoder","last_synced_at":"2026-05-20T01:38:55.833Z","repository":{"id":280984702,"uuid":"943819206","full_name":"reown-com/safe-decoder","owner":"reown-com","description":"A CLI to decode Safe{Core} Transactions","archived":false,"fork":false,"pushed_at":"2025-12-13T04:51:39.000Z","size":269,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-26T16:48:32.769Z","etag":null,"topics":["prod","team-infra"],"latest_commit_sha":null,"homepage":"https://safe-decoder.vercel.app","language":"TypeScript","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/reown-com.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":null,"dco":null,"cla":null}},"created_at":"2025-03-06T10:13:44.000Z","updated_at":"2025-12-13T04:51:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b1a0d13-9f25-4593-8315-91cece2266e4","html_url":"https://github.com/reown-com/safe-decoder","commit_stats":null,"previous_names":["reown-com/safe-decoder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reown-com/safe-decoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reown-com%2Fsafe-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reown-com%2Fsafe-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reown-com%2Fsafe-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reown-com%2Fsafe-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reown-com","download_url":"https://codeload.github.com/reown-com/safe-decoder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reown-com%2Fsafe-decoder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33241344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["prod","team-infra"],"created_at":"2025-12-27T12:12:53.262Z","updated_at":"2026-05-20T01:38:50.814Z","avatar_url":"https://github.com/reown-com.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multisend Decoder\n\nA tool to decode Safe Wallet (v1.3) multisend transactions.\n\n## Description\n\nThis tool decodes multisend bytes for a Safe Wallet version 1.3, showing the individual transactions in a readable format. Each transaction is decoded according to the following format:\n\n```\n| Type (1 byte) | Operation (1 byte) | To (20 bytes) | Value (32 bytes) | Data Length (32 bytes) | Data (variable length) |\n```\n\nThe decoder extracts each transaction and provides detailed information about:\n- Operation type (Call or DelegateCall)\n- Target address\n- Value (in wei)\n- Transaction data\n- Additional context for specific transaction types (e.g., token approvals)\n\n## Installation\n\n### Prerequisites\n\n- Node.js (v14 or higher)\n- npm (v6 or higher) or pnpm (v7 or higher)\n- Docker (optional, for containerized usage)\n\n### Option 1: Local Installation\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/reown-com/safe-decoder.git\n   cd safe-decoder\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   # or using pnpm\n   pnpm install\n   ```\n\n3. Build the TypeScript code (if using TypeScript version):\n   ```bash\n   npm run build\n   # or using pnpm\n   pnpm build\n   ```\n\n### Option 2: Docker Installation\n\n#### Pull from Docker Repository\n\nThe easiest way to get started is to pull the pre-built Docker image:\n\n```bash\n# From Docker Hub\ndocker pull reowncom/safe-decoder:latest\n\n# OR from GitHub Container Registry\ndocker pull ghcr.io/reown-com/safe-decoder:latest\n```\n\n#### Build Locally\n\nAlternatively, you can build the Docker image locally:\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/reown-com/safe-decoder.git\n   cd safe-decoder\n   ```\n\n2. Build the Docker image:\n   ```bash\n   docker build -t safe-decoder .\n   ```\n\n## Usage\n\n### Using Node.js Directly\n\nRun the script with your multisend transaction data:\n\n#### JavaScript Version\n```bash\nnode decode.js \"0x\u003cyour-multisend-data\u003e\"\n```\n\n#### TypeScript Version\n```bash\n# Run the compiled JavaScript\nnode dist/decode.js \"0x\u003cyour-multisend-data\u003e\"\n\n# Or run directly with ts-node\nnpx ts-node decode.ts \"0x\u003cyour-multisend-data\u003e\"\n# or using pnpm\npnpm dev \"0x\u003cyour-multisend-data\u003e\"\n```\n\nExample:\n```bash\nnode dist/decode.js \"0x00ef4461891dfb3ac8572ccf7c794664a8dd92794500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000f368f535e329c6d08dff0d4b2da961c4e7f3fcaf000000000000000000000000000000000000000000000599223bbba52fcbf4a100f368f535e329c6d08dff0d4b2da961c4e7f3fcaf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044097cd2320000000000000000000000000000000000000000000000000000000067bfab00000000000000000000000000000000000000000000000599223bbba52fcbf4a1\"\n```\n\n### Using Docker\n\nRun the Docker container with your multisend transaction data:\n\n```bash\n# If you pulled from Docker Hub\ndocker run reowncom/safe-decoder \"0x\u003cyour-multisend-data\u003e\"\n\n# If you pulled from GitHub Container Registry\ndocker run ghcr.io/reown-com/safe-decoder \"0x\u003cyour-multisend-data\u003e\"\n\n# If you built locally\ndocker run safe-decoder \"0x\u003cyour-multisend-data\u003e\"\n```\n\nExample:\n```bash\ndocker run reowncom/safe-decoder \"0x00ef4461891dfb3ac8572ccf7c794664a8dd92794500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000f368f535e329c6d08dff0d4b2da961c4e7f3fcaf000000000000000000000000000000000000000000000599223bbba52fcbf4a100f368f535e329c6d08dff0d4b2da961c4e7f3fcaf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044097cd2320000000000000000000000000000000000000000000000000000000067bfab00000000000000000000000000000000000000000000000599223bbba52fcbf4a1\"\n```\n\n### Using Docker with a Specific Version\n\nIf you want to use a specific version:\n\n```bash\ndocker run reowncom/safe-decoder:1.0.0 \"0x\u003cyour-multisend-data\u003e\"\n```\n\n### Saving Output to a File\n\nYou can save the output to a file using standard output redirection:\n\n```bash\n# Using Node.js\nnode dist/decode.js \"0x\u003cyour-multisend-data\u003e\" \u003e output.txt\n\n# Using Docker\ndocker run reowncom/safe-decoder \"0x\u003cyour-multisend-data\u003e\" \u003e output.txt\n```\n\n## Example Output\n\n```\nDecoded 2 transactions:\n\nTransaction 1:\nOperation: Call\nTo: 0xef4461891dfb3ac8572ccf7c794664a8dd927945\nValue: 0\nData: 0x095ea7b3000000000000000000000000f368f535e329c6d08dff0d4b2da961c4e7f3fcaf000000000000000000000000000000000000000000000599223bbba52fcbf4a1\nSpender: 0xF368F535e329c6d08DFf0d4b2dA961C4e7F3fCAF\nAmount: 26436651029164848837793\n\nTransaction 2:\nOperation: Call\nTo: 0xf368f535e329c6d08dff0d4b2da961c4e7f3fcaf\nValue: 0\nData: 0x097cd2320000000000000000000000000000000000000000000000000000000067bfab00000000000000000000000000000000000000000000000599223bbba52fcbf4a1\nContract: 0xf368f535e329c6d08dff0d4b2da961c4e7f3fcaf\n```\n\n## Development\n\n### TypeScript Version\n\nThe project has been migrated to TypeScript for improved type safety and developer experience. The TypeScript source code is in `decode.ts`.\n\n#### Building the TypeScript Code\n\nTo compile the TypeScript code to JavaScript:\n\n```bash\nnpm run build\n# or using pnpm\npnpm build\n```\n\nThis will generate the compiled JavaScript files in the `dist` directory.\n\n#### Modifying the TypeScript Script\n\nThe main TypeScript script is in `decode.ts`. If you want to add support for decoding additional transaction types or enhance the output format, modify this file and then rebuild.\n\n### JavaScript Version\n\nThe original JavaScript version is still available in `decode.js` for backward compatibility.\n\n### Building a New Docker Image\n\nAfter making changes to the script, rebuild the Docker image:\n\n```bash\ndocker build -t safe-decoder:latest .\n```\n\nYou can also tag the image with a specific version:\n\n```bash\ndocker tag safe-decoder:latest safe-decoder:1.0.1\n```\n\n### Publishing to Docker Repositories\n\nTo make the image available to your teammates, you can push it to a Docker repository:\n\n#### Docker Hub\n\n```bash\n# Log in to Docker Hub\ndocker login\n\n# Tag the image (if not already done)\ndocker tag safe-decoder:latest yourusername/safe-decoder:latest\n\n# Push the image\ndocker push yourusername/safe-decoder:latest\n```\n\n#### GitHub Container Registry\n\n```bash\n# Log in to GitHub Container Registry\necho YOUR_PAT | docker login ghcr.io -u YOUR_GITHUB_USERNAME --password-stdin\n\n# Tag the image (if not already done)\ndocker tag safe-decoder:latest ghcr.io/yourusername/safe-decoder:latest\n\n# Push the image\ndocker push ghcr.io/yourusername/safe-decoder:latest\n```\n\n## License\n\n[MIT](LICENSE)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freown-com%2Fsafe-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freown-com%2Fsafe-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freown-com%2Fsafe-decoder/lists"}