{"id":23263188,"url":"https://github.com/wavesplatform/transaction-broadcaster","last_synced_at":"2025-06-24T09:33:39.729Z","repository":{"id":56027306,"uuid":"267883051","full_name":"wavesplatform/transaction-broadcaster","owner":"wavesplatform","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-30T12:06:34.000Z","size":102,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-03T07:53:12.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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":"2020-05-29T14:49:24.000Z","updated_at":"2021-11-28T17:52:55.000Z","dependencies_parsed_at":"2022-08-15T11:40:47.260Z","dependency_job_id":null,"html_url":"https://github.com/wavesplatform/transaction-broadcaster","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wavesplatform/transaction-broadcaster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Ftransaction-broadcaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Ftransaction-broadcaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Ftransaction-broadcaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Ftransaction-broadcaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavesplatform","download_url":"https://codeload.github.com/wavesplatform/transaction-broadcaster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesplatform%2Ftransaction-broadcaster/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261643548,"owners_count":23188892,"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:13.905Z","updated_at":"2025-06-24T09:33:39.671Z","avatar_url":"https://github.com/wavesplatform.png","language":"Go","readme":"## API\n### GET /sequences/:id\n#### Responses: ####\n\n*200 OK*\n```\n{\n    \"id\": \u003cnumber\u003e,\n    \"broadcastedCount\": \u003cnumber\u003e,\n    \"totalCount\": \u003cnumber\u003e,\n    \"state\" :\u003cstring\u003e,   // one of sequence states\n    \"errorMessage\": \u003cstring\u003e,\n    \"createdAt\": \u003cnumber\u003e,\n    \"updatedAt\": \u003cnumber\u003e\n}\n```\n\n*404 Not Found*\n```\n{\n    \"message\": \"Sequence not found\"\n}\n```\n\n### POST /sequences\n#### Request: ####\n```\n{\n    \"transactions\": [\u003carray of object transaction\u003e]\n}\n```\n\n#### Responses: ####\n*201 Created*\n```\n{\n    \"id\": \u003cnumber\u003e  // sequence id\n}\n```\n*400 Bad Request*\n```\n{\n    \"errors\": [\n        {\n            \"code\": \u003cnumber\u003e,\n            \"message\": \u003cstring\u003e,\n            \"details: \u003cRecord\u003cstring,any\u003e\u003e\n        }\n    ]\n}\n```\n\n## Sequence states\n\n1. `pending` - sequence is pending processing\n2. `processing` - sequence is being processed\n3. `done` - after last tx there is `HEIGHTS_AFTER_LAST_TX` blocks in the blockchain\n4. `error` - check the `errorMessage` sequence field\n\n\n## Service environment variables\n| # | Name | Type | Default | Description |\n| - | ---- | ---- | ------- | ----------- |\n| 1 | `PORT` | number | 3000 | Service port |\n| 2 | `DEV` | boolean | false | Is dev mode |\n| 3 | `PGHOST` | string | - | PostgreSQL host |\n| 4 | `PGPORT` | number | 5432 | PostgreSQL port |\n| 5 | `PGDATABASE` | string | - | PostgreSQL used database |\n| 6 | `PGUSER` | string | - | PostgreSQL writer user login |\n| 7 | `PGPASSWORD` | string | - | PostgreSQL writer user password |\n| 8 | `WAVES_NODE_URL` | string | - | Node URL that will be used to validate and broadcast txs |\n| 9 | `WAVES_NODE_API_KEY` | string | - | Node API Key, that will be used to validate txs |\n| 10 | `WAVES_WAIT_FOR_TX_STATUS_DELAY` | number | 1000 | Number in ms - delay to recheck tx status |\n| 11 | `WAVES_WAIT_FOR_TX_TIMEOUT` | number | 90000 | Number in ms - time after which tx status checking is considering as failed (by default ~1.5 block) |\n| 12 | `WAVES_WAIT_FOR_NEXT_HEIGHT_DELAY` | number | 1000 | Number in ms - time after which worker will check the blockchain height again |\n| 13 | `DISPATCHER_LOOP_DELAY` | number | 1000 | Number in ms - check for hanging sequences delay |\n| 14 | `DISPATCHER_SEQUENCE_TTL` | number | 5000 | Number in ms - in which time sequences in state `processing` were not updated and have to be reseted, and dispatcher will take them out |\n| 15 | `WORKER_TX_OUTDATE_TIME` | number | 14400000 | Number in ms - after which time the service consider current processing transaction as outdated |\n| 16 | `WORKER_TX_PROCESSING_TTL` | number | 3000 | Number in ms - after which time transactions in state `processing` were not updated and have to be retaken |\n| 17 | `WORKER_HEIGHTS_AFTER_LAST_TX` | number | 6 | Number - after which blocks number sequence is considered as done |\n| 18 | `WORKER_WAIT_FOR_NEXT_HEIGHT_DELAY` | number | 1000 | Number in ms - time after which worker will check the blockchain height again |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesplatform%2Ftransaction-broadcaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavesplatform%2Ftransaction-broadcaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesplatform%2Ftransaction-broadcaster/lists"}