{"id":16271062,"url":"https://github.com/b4rtaz/web3-serverless-node","last_synced_at":"2025-10-16T14:04:14.736Z","repository":{"id":110508642,"uuid":"434672276","full_name":"b4rtaz/web3-serverless-node","owner":"b4rtaz","description":"Simple Web3 Serverless Node","archived":false,"fork":false,"pushed_at":"2021-12-08T18:38:14.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T11:52:22.858Z","etag":null,"topics":["dapp","ethereum","php8","serverless","web3"],"latest_commit_sha":null,"homepage":"","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/b4rtaz.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":"2021-12-03T17:02:12.000Z","updated_at":"2021-12-08T18:38:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3ddd956-2886-423b-8c16-533d46d74ef6","html_url":"https://github.com/b4rtaz/web3-serverless-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4rtaz%2Fweb3-serverless-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4rtaz%2Fweb3-serverless-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4rtaz%2Fweb3-serverless-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4rtaz%2Fweb3-serverless-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b4rtaz","download_url":"https://codeload.github.com/b4rtaz/web3-serverless-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247870328,"owners_count":21009831,"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":["dapp","ethereum","php8","serverless","web3"],"created_at":"2024-10-10T18:12:19.701Z","updated_at":"2025-10-16T14:04:14.631Z","avatar_url":"https://github.com/b4rtaz.png","language":"PHP","readme":"# Web3 Serverless Node\n\nThis is a simple Web3 serverless node. It requires PHP8+ on your server. It's easy to deploy and it's lightweight (~10MB with all dependiencies).\n\n**REST API - Supported Functions**\n\n* \u003ca href=\"#calling-smart-contract-method\"\u003e🚀 Calling Smart Contract Method\u003c/a\u003e\n\n## ⚡ How to Build\n\n1. Clone this repository:\n\n```\ngit clone https://github.com/b4rtaz/web3-serverless-node.git\n```\n\n2. Install dependencies ([Composer](https://getcomposer.org/) is required):\n\n```\ncomposer install\n```\n\n3. Set `basePath` in `configs/app.php` (if you deploy this app in root directory then `basePath` should be `/`).\n\n4. Add Ethereum networks in `configs/ethereumNetworks.php`.\n\n5. Add smart contracts in `configs/smartContracts.php` and ABI JSON files in `storage/abi` folder.\n\n\u003ch2 id=\"calling-smart-contract-method\"\u003e🚀 Calling Smart Contract Method\u003c/h2\u003e\n\n`GET https://your-server/contracts/{contractName}/{methodName}?arg1=value1\u0026arg2=value2...`\n\n* `contractName` - contract name defined in `configs/smartContracts.php`\n* `methodName` - method name defined in contract ABI.\n\n### Example Requests\n\n`GET https://your-server/contracts/eth-wbnb-pancake-pair/name`\n\n```json\n\"Pancake LPs\"\n```\n\n`GET https://your-server/contracts/eth-wbnb-pancake-pair/getReserves`\n\n```json\n{\n    \"_reserve0\": \"0x00000000000000000000000000000000000000000000051c5243923e4e2c2685\",\n    \"_reserve1\": \"0x0000000000000000000000000000000000000000000025acbaa5c45d5c0254c5\",\n    \"_blockTimestampLast\": \"0x0000000000000000000000000000000000000000000000000000000061aa3c22\"\n}\n```\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\n## 💡 License\n\nThis project is released under the MIT license.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb4rtaz%2Fweb3-serverless-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb4rtaz%2Fweb3-serverless-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb4rtaz%2Fweb3-serverless-node/lists"}