{"id":13772651,"url":"https://github.com/bitcoinjs/bip69","last_synced_at":"2025-05-11T05:33:17.447Z","repository":{"id":36040791,"uuid":"40337951","full_name":"bitcoinjs/bip69","owner":"bitcoinjs","description":"Lexicographical Indexing of Transaction Inputs and Outputs","archived":false,"fork":false,"pushed_at":"2017-11-04T03:57:16.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-08T15:21:05.375Z","etag":null,"topics":["bip69","bitcoin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bitcoinjs.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}},"created_at":"2015-08-07T02:55:40.000Z","updated_at":"2024-01-02T22:20:31.000Z","dependencies_parsed_at":"2022-08-26T02:50:33.625Z","dependency_job_id":null,"html_url":"https://github.com/bitcoinjs/bip69","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fbip69","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fbip69/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fbip69/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fbip69/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcoinjs","download_url":"https://codeload.github.com/bitcoinjs/bip69/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225017575,"owners_count":17407791,"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":["bip69","bitcoin"],"created_at":"2024-08-03T17:01:06.619Z","updated_at":"2024-11-17T08:30:22.029Z","avatar_url":"https://github.com/bitcoinjs.png","language":"JavaScript","readme":"# bip69\n\n[![NPM Package](https://img.shields.io/npm/v/bip69.svg?style=flat-square)](https://www.npmjs.org/package/bip69)\n[![Build Status](https://img.shields.io/travis/bitcoinjs/bip69.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/bitcoinjs/bip69)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nLexicographical Indexing of Transaction Inputs and Outputs.\n\nSee [BIP69](https://github.com/bitcoin/bips/blob/master/bip-0069.mediawiki).\n\n\\* *Works only with node.js 0.11 or greater (because require Buffer.compare)*\n\n## Example\n\n``` javascript\nvar bitcoinjs = require('bitcoinjs-lib')\nvar bip69 = require('bip69')\n\nvar inputs = [{\n\t\"txId\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\n\t\"vout\": 0\n}, ...]\nvar outputs = [{\n\t\"script\": new Buffer(\"76a9145be32612930b8323add2212a4ec03c1562084f8488ac\", \"hex\"),\n\t\"value\": 40000000000\n}, ...]\n\n// ...\n\nvar sortedInputs = bip69.sortInputs(inputs)\nvar sortedOutputs = bip69.sortOutputs(outputs)\n\nvar txb = new bitcoinjs.TransactionBuilder()\n\nsortedInputs.forEach(function (input) {\n\ttxb.addInput(input.txId, input.vout)\n})\n\nsortedOutputs.forEach(function (output) {\n\ttxb.addOutput(bitcoinjs.Script.fromBuffer(output.script), output.value)\n})\n\n// ... and so on\n```\n\n## LICENSE [MIT](LICENSE)\n","funding_links":[],"categories":["List of content"],"sub_categories":["BIPs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoinjs%2Fbip69","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcoinjs%2Fbip69","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoinjs%2Fbip69/lists"}