{"id":23263211,"url":"https://github.com/wavesplatform/waves-php","last_synced_at":"2025-08-20T18:35:08.965Z","repository":{"id":53203263,"uuid":"519171433","full_name":"wavesplatform/waves-php","owner":"wavesplatform","description":"PHP library for interacting with the Waves blockchain.","archived":false,"fork":false,"pushed_at":"2024-08-15T14:36:01.000Z","size":75,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-12-02T18:59:42.879Z","etag":null,"topics":[],"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/wavesplatform.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":"2022-07-29T10:20:34.000Z","updated_at":"2024-08-15T14:30:38.000Z","dependencies_parsed_at":"2023-11-27T21:47:56.744Z","dependency_job_id":null,"html_url":"https://github.com/wavesplatform/waves-php","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"f4494debe7ae25437467023754fbadc6852480a1"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavesplatform","download_url":"https://codeload.github.com/wavesplatform/waves-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230445917,"owners_count":18227060,"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":[],"created_at":"2024-12-19T14:15:25.651Z","updated_at":"2024-12-19T14:15:26.574Z","avatar_url":"https://github.com/wavesplatform.png","language":"PHP","readme":"# Waves-PHP\n\n[![packagist](https://img.shields.io/packagist/v/waves/client.svg)](https://packagist.org/packages/waves/client)\n[![php-version](https://img.shields.io/packagist/php-v/waves/client.svg)](https://packagist.org/packages/waves/client)\n[![codecov](https://img.shields.io/codecov/c/github/wavesplatform/waves-php)](https://app.codecov.io/gh/wavesplatform/waves-php)\n[![phpstan](https://img.shields.io/badge/PHPStan-level%209-brightgreen.svg)](https://github.com/wavesplatform/waves-php/blob/main/.github/workflows/phpstan.yml#L35)\n[![codecov](https://img.shields.io/github/actions/workflow/status/wavesplatform/waves-php/codecov.yml?branch=main\u0026label=Codecov)](https://github.com/wavesplatform/waves-php/actions/workflows/codecov.yml)\n[![phpstan](https://img.shields.io/github/actions/workflow/status/wavesplatform/waves-php/phpstan.yml?branch=main\u0026label=PHPStan)](https://github.com/wavesplatform/waves-php/actions/workflows/phpstan.yml)\n[![phpstan](https://img.shields.io/github/actions/workflow/status/wavesplatform/waves-php/phpunit.yml?branch=main\u0026label=PHPUnit)](https://github.com/wavesplatform/waves-php/actions/workflows/phpunit.yml)\n\nPHP client library for interacting with Waves blockchain platform.\n\n## Installation\n```bash\ncomposer require waves/client\n```\n\n## Usage\nSee [`example.php`](example.php) for full code examples.\n- New account:\n```php\n$account = PrivateKey::fromSeed( 'your mnemonic seed phrase' );\n$sender = $account-\u003epublicKey();\necho 'address = ' . $sender-\u003eaddress()-\u003etoString() . PHP_EOL;\n```\n- Node basics:\n```php\n$nodeChainId = $node-\u003echainId();\necho 'node chainId = ' . $nodeChainId-\u003easString() . PHP_EOL;\n$nodeVersion = $node-\u003egetVersion();\necho 'node version = ' . $nodeVersion . PHP_EOL;\n$nodeHeight = $node-\u003egetHeight();\necho 'node height = ' . $nodeHeight . PHP_EOL;\n```\n- Transfer transaction:\n```php\n$amount = Amount::of( 1 ); // 0.00000001 Waves\n$recipient = Recipient::fromAddressOrAlias( 'test' ); // from alias\n$recipient = Recipient::fromAddressOrAlias( '3N9WtaPoD1tMrDZRG26wA142Byd35tLhnLU' ); // from address\n\n$transferTx = TransferTransaction::build( $sender, $recipient, $amount );\n$transferTxSigned = $transferTx-\u003eaddProof( $account );\n$transferTxBroadcasted = $node-\u003ebroadcast( $transferTxSigned );\n$transferTxConfirmed = $node-\u003ewaitForTransaction( $transferTxBroadcasted-\u003eid() );\n```\n- DApp invocation transaction:\n```php\n$dApp = Recipient::fromAddressOrAlias( '3N7uoMNjqNt1jf9q9f9BSr7ASk1QtzJABEY' );\n$functionCall = FunctionCall::as( 'retransmit', [\n    Arg::as( Arg::STRING, Value::as( $sender-\u003eaddress()-\u003etoString() ) ),\n    Arg::as( Arg::INTEGER, Value::as( 1 ) ),\n    Arg::as( Arg::BINARY, Value::as( hash( 'sha256', $sender-\u003eaddress()-\u003etoString(), true ) ) ),\n    Arg::as( Arg::BOOLEAN, Value::as( true ) ),\n] );\n$payments = [\n    Amount::of( 1000 ),\n];\n\n$invokeTx = InvokeScriptTransaction::build( $sender, $dApp, $functionCall, $payments );\n$invokeTxSigned = $invokeTx-\u003eaddProof( $account );\n$invokeTxBroadcasted = $node-\u003ebroadcast( $invokeTxSigned );\n$invokeTxConfirmed = $node-\u003ewaitForTransaction( $invokeTxBroadcasted-\u003eid() );\n```\n\n## Requirements\n- [PHP](http://php.net) \u003e= 7.4\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesplatform%2Fwaves-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavesplatform%2Fwaves-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesplatform%2Fwaves-php/lists"}