
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Status: Alpha (this is for eosjs library developers)
General purpose library for the EOS blockchain.
Eos = require('eosjs') // Or Eos = require('.')
// API, note: testnet uses eosd at localhost (until there is a testnet)
testnet = Eos.Testnet()
// For promises instead of callbacks, use something like npmjs 'sb-promisify'
callback = (err, res) => {err ? console.error(err) : console.log(res)}
// All API methods print help when called with no-arguments.
// More docs at https://github.com/eosjs/api
testnet.getBlock()
// Your going to need localhost:8888
testnet.getBlock(1, callback)
// Transaction
testnet.transaction({
messages: [
{// work-in-progress - transaction error 'Bad Cast'
code: 'eos',
recipients: [ 'inita', 'initb' ],
authorization: [],
type: 'transfer',
data: {
from: 'inita',
to: 'initb',
amount: { amount: '1', symbol: 'EOS' },
memo: '爱'
}
}
],
sign: ['5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3'],
permissions: [],
}, callback)
These lower level libraries are exported from eosjs
or may be used separately.
var {json, api, ecc} = Eos.modules
var {json} = Eos.modules
// The node console will print more documentation and other example messages
json.schema.Message
json.schema.transfer
// Another view of this data, structure oriented
var {structs} = Eos({defaults: true})
structs.newaccount.toObject()
structs.newaccount.toObject().owner
Node 6+ and browser (browserify, webpack, etc)
FAQs
Talk to eos API
The npm package eosjs receives a total of 49,766 weekly downloads. As such, eosjs popularity was classified as popular.
We found that eosjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.