{"id":23263152,"url":"https://github.com/wavesplatform/waves-rest","last_synced_at":"2025-07-28T14:08:23.685Z","repository":{"id":38272660,"uuid":"175186962","full_name":"wavesplatform/waves-rest","owner":"wavesplatform","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-01T05:12:18.000Z","size":2038,"stargazers_count":1,"open_issues_count":27,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-08T15:05:37.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-12T10:24:53.000Z","updated_at":"2021-07-07T10:59:25.000Z","dependencies_parsed_at":"2023-01-31T20:46:35.184Z","dependency_job_id":null,"html_url":"https://github.com/wavesplatform/waves-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wavesplatform/waves-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavesplatform","download_url":"https://codeload.github.com/wavesplatform/waves-rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Fwaves-rest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267527835,"owners_count":24102019,"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-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-12-19T14:15:00.308Z","updated_at":"2025-07-28T14:08:23.656Z","avatar_url":"https://github.com/wavesplatform.png","language":"TypeScript","readme":"# waves-transactions  [![npm version](https://badge.fury.io/js/%40waves%2Fwaves-transactions.svg)](https://badge.fury.io/js/%40waves%2Fwaves-transactions)\n\n[![License][license-image]][license-url] ![Coverage badge gree][coverage-badge-green]\n\n[license-url]: https://opensource.org/licenses/MIT\n[license-image]: https://img.shields.io/npm/l/make-coverage-badge.svg\n[coverage-badge-green]:https://img.shields.io/badge/Coverage-98.77%25-brightgreen.svg\n\nUsing this library you can easily create and sign transactions for Waves blockchain.\nIt also allows you to multi-sign existing transactions or create them without signature at all.\n\nThis library is a set of transaction constructing functions:\n* [Alias](https://wavesplatform.github.io/waves-transactions/globals.html#alias)\n* [Issue](https://wavesplatform.github.io/waves-transactions/globals.html#issue)\n* [Reissue](https://wavesplatform.github.io/waves-transactions/globals.html#reissue)\n* [Burn](https://wavesplatform.github.io/waves-transactions/globals.html#burn)\n* [Lease](https://wavesplatform.github.io/waves-transactions/globals.html#lease)\n* [Cancel lease](https://wavesplatform.github.io/waves-transactions/globals.html#cancellease)\n* [Transfer](https://wavesplatform.github.io/waves-transactions/globals.html#transfer)\n* [Mass transfer](https://wavesplatform.github.io/waves-transactions/globals.html#masstransfer)\n* [Set script](https://wavesplatform.github.io/waves-transactions/globals.html#setscript)\n* [Data](https://wavesplatform.github.io/waves-transactions/globals.html#data)\n* [Set asset script](https://wavesplatform.github.io/waves-transactions/globals.html#setassetscript)\n* [Order](https://wavesplatform.github.io/waves-transactions/globals.html#order)\n\nCheck full documentation on [GitHub Pages](https://wavesplatform.github.io/waves-transactions/index.html).\n\n### Transactions\n\nThe idea is really simple - you create transaction and sign it from a minimal set of required params.\nIf you want to create [Transfer transaction](https://wavesplatform.github.io/waves-transactions/interfaces/itransfertransaction.html) the minimum you need to provide is **amount** and **recipient** as defined in [Transfer params](https://wavesplatform.github.io/waves-transactions/interfaces/itransferparams.html):\n```js\n\nconst { transfer } = require('@waves/waves-transactions')\nconst seed = 'some example seed phrase'\nconst signedTranserTx = transfer({ \n  amount: 1,\n  recipient: '3P6fVra21KmTfWHBdib45iYV6aFduh4WwC2',\n  timestamp: 1536917842558, //Timestamp is optional but it was overrided, in case timestamp is not provided it will fallback to Date.now()\n\n  //Every function from the list above has a set of required and optional params\n  //senderPublicKey: 'Cq5itmx4wbYuogySAoUp58MimLLkQrFFLr1tpJy2BYp1', // By default it is derived from seed, \n  // but if you don't want to sign transaction you have to provide it\n  //fee: 100000, //Fee is always optional, in case fee is not provided, it will be calculated for you\n  //additionalFee: 400000, //If fee is not set, this value will be added to the auto calculated value\n  //feeAssetId: undefined\n}, seed)\n```\n\nOutput will be a signed transfer transaction:\n```js\n{\n  id: '8NrUwgKRCMFbUbqXKQAHkGnspmWHEjKUSi5opEC6Havq',\n  type: 4,\n  version: 2,\n  recipient: '3P6fVra21KmTfWHBdib45iYV6aFduh4WwC2',\n  attachment: undefined,\n  feeAssetId: undefined,\n  assetId: undefined,\n  amount: 1,\n  fee: 100000,\n  senderPublicKey: '6nR7CXVV7Zmt9ew11BsNzSvVmuyM5PF6VPbWHW9BHgPq',\n  timestamp: 1536917842558,\n  proofs: [\n    '25kyX6HGjS3rkPTJRj5NVH6LLuZe6SzCzFtoJ8GDkojY9U5oPfVrnwBgrCHXZicfsmLthPUjTrfT9TQL2ciYrPGE'\n  ]\n}\n```\n\nNow you are able to POST it to Waves API or store for future purpose or you can add another signature from other party:\n```js\nconst otherPartySeed = 'other party seed phrase'\nconst transferSidnedWithTwoParties = transfer(signedTranserTx, seed)\n```\n\nSo now there are two proofs:\n```js\n{\n  id: '8NrUwgKRCMFbUbqXKQAHkGnspmWHEjKUSi5opEC6Havq',\n  type: 4,\n  version: 2,\n  recipient: '3P6fVra21KmTfWHBdib45iYV6aFduh4WwC2',\n  attachment: undefined,\n  feeAssetId: undefined,\n  assetId: undefined,\n  amount: 1,\n  fee: 100000,\n  senderPublicKey: '6nR7CXVV7Zmt9ew11BsNzSvVmuyM5PF6VPbWHW9BHgPq',\n  timestamp: 1536917842558,\n  proofs: [\n    '25kyX6HGjS3rkPTJRj5NVH6LLuZe6SzCzFtoJ8GDkojY9U5oPfVrnwBgrCHXZicfsmLthPUjTrfT9TQL2ciYrPGE',\n    'CM9emPzpe6Ram7ZxcYax6s7Hkw6698wXCMPSckveFAS2Yh9vqJpy1X9nL7p4RKgU3UEa8c9RGXfUK6mFFq4dL9z'\n  ]\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesplatform%2Fwaves-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavesplatform%2Fwaves-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesplatform%2Fwaves-rest/lists"}