Deprecated! Consider using lightrpc instead.
Tiny Steem library - batteries not included
Steem Mini is a minimal library for interacting with Steem nodes via HTTP JSON RPC. It is designed to be 1KB in size and work in browser and server. You have freedom of sending any message you want.
npm install steem-mini
or
yarn add steem-mini
git clone https://github.com/Sekhmet/steem-mini.git
cd steem-mini
npm install
<script src="https://unpkg.com/[email protected]/dist/steem-mini.js"></script>
Or if you want to use not minified version
<script src="https://unpkg.com/[email protected]/dist/steem-mini.min.js"></script>
// using UMD (browser)
const client = window.SteemMini.createClient('https://api.steemit.com');
// using CommonJS
const createClient = require('steem-mini').createClient;
const client = createClient('https://api.steemit.com');
// using ES6 modules
import { createClient } from 'steem-mini';
const client = createClient('https://api.steemit.com');
// sending requests
const message = {
method: 'get_accounts',
jsonrpc: '2.0',
params: [usernames]
};
client.send(message, function(err, result) {
if (err !== null) console.error(err);
console.log('response', result);
});
You can run lint and tests using npm script
npm run test
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Wiktor Tkaczyński - Sekhmet
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details