{"id":15652980,"url":"https://github.com/pcaversaccio/raw-tx","last_synced_at":"2025-09-10T23:35:29.851Z","repository":{"id":176634707,"uuid":"656619657","full_name":"pcaversaccio/raw-tx","owner":"pcaversaccio","description":"Four scripts to ordinary generate, EIP-4844-type generate, EIP-7702-type generate, and execute a signed raw transaction with ethers.","archived":false,"fork":false,"pushed_at":"2025-07-26T11:20:00.000Z","size":1012,"stargazers_count":36,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T17:27:54.327Z","etag":null,"topics":["eip-4844","ethers","raw-transaction"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcaversaccio.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}},"created_at":"2023-06-21T09:54:59.000Z","updated_at":"2025-07-26T11:20:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7ec3860-a1f2-4035-9493-cbb740438fff","html_url":"https://github.com/pcaversaccio/raw-tx","commit_stats":{"total_commits":238,"total_committers":2,"mean_commits":119.0,"dds":0.01680672268907568,"last_synced_commit":"58b9b7544ce460a14daddfcf81c7257bedc6fc52"},"previous_names":["pcaversaccio/raw-tx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pcaversaccio/raw-tx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcaversaccio%2Fraw-tx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcaversaccio%2Fraw-tx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcaversaccio%2Fraw-tx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcaversaccio%2Fraw-tx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcaversaccio","download_url":"https://codeload.github.com/pcaversaccio/raw-tx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcaversaccio%2Fraw-tx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267989041,"owners_count":24177020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["eip-4844","ethers","raw-transaction"],"created_at":"2024-10-03T12:44:25.095Z","updated_at":"2025-07-31T05:09:51.231Z","avatar_url":"https://github.com/pcaversaccio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ethereum Raw Transaction Signing Script\n\n[![👮‍♂️ Sanity checks](https://github.com/pcaversaccio/raw-tx/actions/workflows/checks.yml/badge.svg)](https://github.com/pcaversaccio/raw-tx/actions/workflows/checks.yml)\n[![License: WTFPL](https://img.shields.io/badge/License-WTFPL-blue.svg)](https://www.wtfpl.net/about/)\n\nFour scripts to ordinary [generate](./scripts/sign.ts), [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844)-type [generate](./scripts/sign-eip4844.ts), [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702)-type [generate](./scripts/sign-eip7702.ts), and [execute](./scripts/execute.ts) a signed raw transaction with [`ethers`](https://docs.ethers.org/v6/).\n\n## Installation\n\nIt is recommended to install [`pnpm`](https://pnpm.io) through the `npm` package manager, which comes bundled with [Node.js](https://nodejs.org/en) when you install it on your system. It is recommended to use a Node.js version `\u003e=24.2.0`.\n\nOnce you have `npm` installed, you can run the following both to install and upgrade `pnpm`:\n\n```console\nnpm install -g pnpm\n```\n\nAfter having installed `pnpm`, simply run:\n\n```console\npnpm install\n```\n\n## `.env` File\n\nCreate a `.env` file in the root directory and place the private key of your wallet used for signing in the variable `PRIVATE_KEY` and the RPC provider for the transaction in the variable `RPC_PROVIDER`. Example:\n\n```txt\nPRIVATE_KEY=abc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1\nRPC_PROVIDER=https://rpc.ankr.com/eth_goerli\n```\n\n## Generate a Signed Raw Transaction\n\nConfigure the placeholder(s) payload in [`sign`](./scripts/sign.ts), [`sign-eip4844`](./scripts/sign-eip4844.ts), or [`sign-eip7702`](./scripts/sign-eip7702.ts) according to your needs and run:\n\n```console\npnpm generate\n```\n\nor\n\n```console\ngenerate:eip4844\n```\n\nor\n\n```console\ngenerate:eip7702\n```\n\nThis will print all raw transaction details to your terminal. Use the output `signedTx.serialized` to broadcast a transaction e.g. with services like [pushTx](https://etherscan.io/pushTx). You can also use the automatically saved serialised signed transaction in `signed_serialised_transaction.json` (in the `scripts/out` directory) via `pnpm execute` as explained in the next section.\n\n## Execute a Signed Raw Transaction\n\nConfigure your RPC provider in [`execute`](./scripts/execute.ts) according to your needs and run:\n\n```console\npnpm execute\n```\n\nIf the transaction is successful, it saves a file `transaction_receipt.json` or in case of a failure a file `transaction_error.json` in the `scripts/out` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcaversaccio%2Fraw-tx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcaversaccio%2Fraw-tx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcaversaccio%2Fraw-tx/lists"}