
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
web3exchange-api
Advanced tools
npm i web3exchange-api
Generate the private key here or another place trusted by you.
Get Address
var builder = require('web3exchange-api');
var privateKey = "cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4";
var apiUrl = "http://ethnamed.io:8081";
var address = builder.getAddress(privateKey);
Contact to API's admin and privide him your address
He have to put your public address into the config.json/recaptcha/whitelist on the server
Init the API
var builder = require('web3exchange-api');
var privateKey = "cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4";
var apiUrl = "http://ethnamed.io:8081";
builder.createApi({ apiUrl, privateKey }, (err, api)=> {
api.convert({ from, to, value, address }, cb);
});
var request = {
clientid: api.createClientid(),
from: "ETH",
to: "USD",
value: "1", //ETH
address: "0000 0000 0000 0000"
}
var cb = (err, data) {
//Send 1 ETH Here
console.log(data.address);
}
api.convert(request, cb);
var request = {
clientid: api.createClientid(),
from: "USD",
to: "ETH",
value: "100", //USD
address: "0xbd7ac0f279dc56b61fb10faeaa7fd8da54e92408" //Your ETH address to receive coins
}
var cb = (err, data) {
console.log(data.checkout_url);
}
api.convert(request, cb);
You can get an error KYC is required so please follow next steps
var request = {
clientid: request.clientid,
email: "you@email.com",
clientid: ""
firstname: "John",
lastname: "Melburn"
address: "8913 3rd Street Brooklyn, NY 11223",
photo: "data:" // Encoded base64, please make sure that photo in correct format
bill: "data:" // Encoded base64, please make sure that bill in correct format
}
var cb = (err, data) {
console.log(data.checkout_url);
}
api.kyc(request, cb);
Here is information how to encode the image.
FAQs
API for web3 exchange
We found that web3exchange-api 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.