![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
indy-request
Advanced tools
Make requests to Indy (i.e. Sovrin) nodes using node.js
let IndyReq = require('indy-request')
let node = IndyReq({
genesisTxn: '{"reqSignature":{},"txn":{"data":{"data":{"alias":"Node1","blskey":"4N8aUNHSgjQVgkpm8nhNEfDf6txHznoYREg9kirmJrkivgL4oSEimFF6nsQ6M41QvhM2Z33nves5vfSn9n1UwNFJBYtWVnHYMATn76vLuL3zU88KyeAYcHfsih3He6UHcXDxcaecHVz6jhCYz1P2UZn2bDVruL5wXpehgBfBaLKm3Ba","blskey_pop":"RahHYiCvoNCtPTrVtP7nMC5eTYrsUA8WjXbdhNc8debh1agE9bGiJxWBXYNFbnJXoXhWFMvyqhqhRoq737YQemH5ik9oL7R4NTTCz2LEZhkgLJzB3QRQqJyBNyv7acbdHrAT8nQ9UkLbaVL9NBpnWXBTw4LEMePaSHEw66RzPNdAX1","client_ip":"127.0.0.1","client_port":9702,"node_ip":"127.0.0.1","node_port":9701,"services":["VALIDATOR"]},"dest":"Gw6pDLhcBcoQesN72qfotTgFa7cbuqZpkX3Xo6pLhPhv"},"metadata":{"from":"Th7MpTaRZVRYnPiabds81Y"},"type":"0"},"txnMetadata":{"seqNo":1,"txnId":"fea82e10e894419fe2bea7d96296a6d46f50f93f9eeda954ec461b2ed2950b62"},"ver":"1"}'
})
let response = await node.send({
operation: {
type: IndyReq.type.GET_TXN + '',
ledgerId: 1,
data: 9
},
identifier: 'MSjKTWkPLtYoPEaTF1TUDb',
protocolVersion: 2
})
console.log(response)
conf.host
the host string i.e. 10.0.0.2
conf.port
the port of the indy node you want to connect toconf.serverKey
the Buffer of the node's curve25519 keyconf.timeout
(optional) how long to wait for responses in ms. Default is 1min.conf.genesisTxn
instead of host+port+serverKey you can simply pass a line from the genesis transaction to the node you wish to connect to.Send a request to the server. This will set a reqId
for you and track it. This returns a promise that will resolve when the response is recieved.
Send a ping to the indy node
This closes the zeromq socket. Any pending requests that have not yet been resolved will be rejected with a 'Closed'
error.
When an error not tied to any known request occurs.
When a pong is recieved from the indy node.
When node.close() is called.
MIT
FAQs
Make requests to Indy (i.e. Sovrin) nodes
The npm package indy-request receives a total of 3 weekly downloads. As such, indy-request popularity was classified as not popular.
We found that indy-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.