{"id":20152896,"url":"https://github.com/web3p/ethereum-tx","last_synced_at":"2025-04-04T12:09:11.870Z","repository":{"id":28992784,"uuid":"119941452","full_name":"web3p/ethereum-tx","owner":"web3p","description":"Ethereum transaction library in PHP.","archived":false,"fork":false,"pushed_at":"2023-02-10T22:58:05.000Z","size":88,"stargazers_count":177,"open_issues_count":6,"forks_count":57,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-05-18T19:02:04.686Z","etag":null,"topics":["ethereum","hacktoberfest","transaction","transactions"],"latest_commit_sha":null,"homepage":"https://www.web3p.xyz/ethereumtx.html","language":"PHP","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/web3p.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}},"created_at":"2018-02-02T06:22:10.000Z","updated_at":"2024-06-18T12:22:23.075Z","dependencies_parsed_at":"2024-06-18T12:22:16.566Z","dependency_job_id":null,"html_url":"https://github.com/web3p/ethereum-tx","commit_stats":{"total_commits":61,"total_committers":3,"mean_commits":"20.333333333333332","dds":"0.049180327868852514","last_synced_commit":"eccc97b9b25d27a8141bfab2b475feec4d7439e9"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Fethereum-tx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Fethereum-tx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Fethereum-tx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Fethereum-tx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3p","download_url":"https://codeload.github.com/web3p/ethereum-tx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174423,"owners_count":20896078,"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","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":["ethereum","hacktoberfest","transaction","transactions"],"created_at":"2024-11-13T23:15:34.221Z","updated_at":"2025-04-04T12:09:11.855Z","avatar_url":"https://github.com/web3p.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ethereum-tx\n[![PHP](https://github.com/web3p/ethereum-tx/actions/workflows/php.yml/badge.svg)](https://github.com/web3p/ethereum-tx/actions/workflows/php.yml)\n[![codecov](https://codecov.io/gh/web3p/ethereum-tx/branch/master/graph/badge.svg)](https://codecov.io/gh/web3p/ethereum-tx)\n\nEthereum transaction library in PHP.\n\n# Install\n\n```\ncomposer require web3p/ethereum-tx\n```\n\n# Usage\n\n## Create a transaction\n```php\nuse Web3p\\EthereumTx\\Transaction;\n\n// without chainId\n$transaction = new Transaction([\n    'nonce' =\u003e '0x01',\n    'from' =\u003e '0xb60e8dd61c5d32be8058bb8eb970870f07233155',\n    'to' =\u003e '0xd46e8dd67c5d32be8058bb8eb970870f07244567',\n    'gas' =\u003e '0x76c0',\n    'gasPrice' =\u003e '0x9184e72a000',\n    'value' =\u003e '0x9184e72a',\n    'data' =\u003e ''\n]);\n\n// with chainId\n$transaction = new Transaction([\n    'nonce' =\u003e '0x01',\n    'from' =\u003e '0xb60e8dd61c5d32be8058bb8eb970870f07233155',\n    'to' =\u003e '0xd46e8dd67c5d32be8058bb8eb970870f07244567',\n    'gas' =\u003e '0x76c0',\n    'gasPrice' =\u003e '0x9184e72a000',\n    'value' =\u003e '0x9184e72a',\n    'chainId' =\u003e 1,\n    'data' =\u003e '0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675'\n]);\n\n// hex encoded transaction\n$transaction = new Transaction('0xf86c098504a817c800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83');\n```\n\n## Create a EIP1559 transaction\n```php\nuse Web3p\\EthereumTx\\EIP1559Transaction;\n\n// generate transaction instance with transaction parameters\n$transaction = new EIP1559Transaction([\n    'nonce' =\u003e '0x01',\n    'from' =\u003e '0xb60e8dd61c5d32be8058bb8eb970870f07233155',\n    'to' =\u003e '0xd46e8dd67c5d32be8058bb8eb970870f07244567',\n    'maxPriorityFeePerGas' =\u003e '0x9184e72a000',\n    'maxFeePerGas' =\u003e '0x9184e72a000',\n    'gas' =\u003e '0x76c0',\n    'value' =\u003e '0x9184e72a',\n    'chainId' =\u003e 1, // required\n    'accessList' =\u003e [],\n    'data' =\u003e ''\n]);\n```\n\n## Create a EIP2930 transaction:\n```php\nuse Web3p\\EthereumTx\\EIP2930Transaction;\n\n// generate transaction instance with transaction parameters\n$transaction = new EIP2930Transaction([\n    'nonce' =\u003e '0x01',\n    'from' =\u003e '0xb60e8dd61c5d32be8058bb8eb970870f07233155',\n    'to' =\u003e '0xd46e8dd67c5d32be8058bb8eb970870f07244567',\n    'gas' =\u003e '0x76c0',\n    'value' =\u003e '0x9184e72a',\n    'chainId' =\u003e 1, // required\n    'accessList' =\u003e [],\n    'data' =\u003e ''\n]);\n```\n\n## Sign a transaction:\n```php\nuse Web3p\\EthereumTx\\Transaction;\n\n$signedTransaction = $transaction-\u003esign('your private key');\n```\n\n# API\n\nhttps://www.web3p.xyz/ethereumtx.html\n\n# License\nMIT\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3p%2Fethereum-tx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3p%2Fethereum-tx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3p%2Fethereum-tx/lists"}