Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@arianee/arianeejs-server
Advanced tools
Readme
use arianeejs with http
post(nameOfMethod,[params])
ex post('url.com/requestPoa)
process.env.useBDH => url of bdh to use bdh vault chain => testnet, mainnet...etc privateKey => private key of wallet
All methods available in arianeeJS's wallet object can be called in http.
Obviously you cannot call method like fromRandomKey
, or useBDH
. These methods are set with environment variables.
For method without parameter, just call method with empty parameters
curl -H Content-Type:application/json -H "authorization: Basic YourApiKey" POST https://arianeeexample.cleverapps.io/publicKey
// output: 0xAC6943CEA275E8392c49905c960e580CfEaC0bd5
You just need to pass data as an array. Parameters are exactly the same as arianeeJS doc.
curl POST https://arianeeexample.cleverapps.io/buyCredits -H Content-Type:application/json -H -d "["certificate",1]"
curl POST https://arianeeexample.cleverapps.io/createArianeeEvent -H Content-Type:application/json
-d "[{certificateId:certificateId,
content:{
$schema:'https://cert.arianee.org/version1/ArianeeEvent-i18n.json',
title:'My Title'
}
}]"
curl POST https://arianeeexample.cleverapps.io/storeArianeeEvent -H Content-Type:application/json
-d "["YourCertificateId",yourArianeeEventId,"yourArianeeEventContent","https://arianee.cleverapps.io/arianeetestnet/rpc"]"
(async function(){
const arianee = await new Arianee().init(chain);
const wallet = arianee.fromPrivateKey(privateKey);
const app=await arianeeServerFactory({
arianeeWallet:wallet
middlewareBefore?: Function
middlewareAfter?: Function
});
app.listen(port, () => console.log(`Arianee Server APP listening on port ${port}!`));
}())
FAQs
[![Build Status](https://travis-ci.org/Arianee/arianee-server.svg?branch=master)](https://travis-ci.org/Arianee/arianee-server)
The npm package @arianee/arianeejs-server receives a total of 27 weekly downloads. As such, @arianee/arianeejs-server popularity was classified as not popular.
We found that @arianee/arianeejs-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.