{"id":13454183,"url":"https://github.com/steemit/steem-js","last_synced_at":"2025-05-15T13:06:46.380Z","repository":{"id":9942025,"uuid":"63857882","full_name":"steemit/steem-js","owner":"steemit","description":"Steem.js the official JavaScript library for Steem blockchain","archived":false,"fork":false,"pushed_at":"2025-02-18T18:06:13.000Z","size":12750,"stargazers_count":471,"open_issues_count":107,"forks_count":228,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-05-06T11:46:56.301Z","etag":null,"topics":["blockchain","steem"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/steem","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/steemit.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,"zenodo":null}},"created_at":"2016-07-21T09:54:16.000Z","updated_at":"2025-04-27T20:50:26.000Z","dependencies_parsed_at":"2024-01-16T04:30:52.011Z","dependency_job_id":"746d82fb-311f-4e07-895f-ff83f31e1979","html_url":"https://github.com/steemit/steem-js","commit_stats":{"total_commits":634,"total_committers":48,"mean_commits":"13.208333333333334","dds":0.7318611987381703,"last_synced_commit":"bb322832bb9ccc037bf4499835ce1fbc1e7dbf19"},"previous_names":["adcpm/steem"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fsteem-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fsteem-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fsteem-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fsteem-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steemit","download_url":"https://codeload.github.com/steemit/steem-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"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":["blockchain","steem"],"created_at":"2024-07-31T08:00:51.664Z","updated_at":"2025-05-15T13:06:46.350Z","avatar_url":"https://github.com/steemit.png","language":"JavaScript","funding_links":[],"categories":["SDKs","JavaScript","Cryptocurrencies"],"sub_categories":[],"readme":"[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/steemit/steem-js/blob/master/LICENSE)\n[![Steem.js channel on steemit.chat](https://img.shields.io/badge/chat-steemit.chat-1c56a4.svg)](https://steemit.chat/channel/steemjs)\n\n# Steem.js\nSteem.js the JavaScript API for Steem blockchain\n\n# Documentation\n\n- [Install](https://github.com/steemit/steem-js/tree/master/doc#install)\n- [Browser](https://github.com/steemit/steem-js/tree/master/doc#browser)\n- [Config](https://github.com/steemit/steem-js/tree/master/doc#config)\n- [Database API](https://github.com/steemit/steem-js/tree/master/doc#api)\n    - [Subscriptions](https://github.com/steemit/steem-js/tree/master/doc#subscriptions)\n    - [Tags](https://github.com/steemit/steem-js/tree/master/doc#tags)\n    - [Blocks and transactions](https://github.com/steemit/steem-js/tree/master/doc#blocks-and-transactions)\n    - [Globals](https://github.com/steemit/steem-js/tree/master/doc#globals)\n    - [Keys](https://github.com/steemit/steem-js/tree/master/doc#keys)\n    - [Accounts](https://github.com/steemit/steem-js/tree/master/doc#accounts)\n    - [Market](https://github.com/steemit/steem-js/tree/master/doc#market)\n    - [Authority / validation](https://github.com/steemit/steem-js/tree/master/doc#authority--validation)\n    - [Votes](https://github.com/steemit/steem-js/tree/master/doc#votes)\n    - [Content](https://github.com/steemit/steem-js/tree/master/doc#content)\n    - [Witnesses](https://github.com/steemit/steem-js/tree/master/doc#witnesses)\n- [Login API](https://github.com/steemit/steem-js/tree/master/doc#login)\n- [Follow API](https://github.com/steemit/steem-js/tree/master/doc#follow-api)\n- [Broadcast API](https://github.com/steemit/steem-js/tree/master/doc#broadcast-api)\n- [Broadcast](https://github.com/steemit/steem-js/tree/master/doc#broadcast)\n- [Auth](https://github.com/steemit/steem-js/tree/master/doc#auth)\n\n\nHere is full documentation:\nhttps://github.com/steemit/steem-js/tree/master/doc\n\n## Browser\n```html\n\u003cscript src=\"./steem.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nsteem.api.getAccounts(['ned', 'dan'], function(err, response){\n    console.log(err, response);\n});\n\u003c/script\u003e\n```\n\n## CDN\nhttps://cdn.jsdelivr.net/npm/steem/dist/steem.min.js\u003cbr/\u003e\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js\"\u003e\u003c/script\u003e\n```\n\n## Webpack\n[Please have a look at the webpack usage example.](https://github.com/steemit/steem-js/blob/master/examples/webpack-example)\n\n## Server\n## Install\n```\n$ npm install steem --save\n```\n\n## RPC Servers\nhttps://api.steemit.com By Default\u003cbr/\u003e\n\n## Examples\n### Broadcast Vote\n```js\nvar steem = require('steem');\n\nvar wif = steem.auth.toWif(username, password, 'posting');\nsteem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {\n\tconsole.log(err, result);\n});\n```\n\n### Broadcast Vote with Promises\n```js\nvar steem = require('steem');\n\nvar wif = steem.auth.toWif(username, password, 'posting');\n// Using Promises\nsteem.broadcast.vote(wif, voter, author, permlink, weight)\n  .then(result =\u003e console.log(result))\n  .catch(error =\u003e console.error(error));\n\n// Or using async/await\nasync function castVote() {\n  try {\n    const result = await steem.broadcast.vote(wif, voter, author, permlink, weight);\n    console.log(result);\n  } catch (error) {\n    console.error(error);\n  }\n}\n```\n\n### Get Accounts\n```js\nsteem.api.getAccounts(['ned', 'dan'], function(err, result) {\n\tconsole.log(err, result);\n});\n```\n\n### Get State\n```js\nsteem.api.getState('/trends/funny', function(err, result) {\n\tconsole.log(err, result);\n});\n```\n\n### Reputation Formatter\n```js\nvar reputation = steem.formatter.reputation(user.reputation);\nconsole.log(reputation);\n```\n\n### Steem Testnet\nSteem-js requires some configuration to work on the public Steem testnet.\n\nYou need to set two Steem API options, `address_prefix` and `chain_id`.\n```js\nsteem.api.setOptions({\n  address_prefix: 'TST',\n  chain_id: '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32',\n  useTestNet: true,\n});\n```\n\nThe Chain ID could change. If it does, it may not be reflected here, but will be documented on any testnet launch announcements.\n\n## Contributions\nPatches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list.\n\n## Issues\nWhen you find issues, please report them!\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteemit%2Fsteem-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteemit%2Fsteem-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteemit%2Fsteem-js/lists"}