Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ordinalsbot
Advanced tools
The OrdinalsBot Node library provides convenient access to the OrdinalsBot API from applications written in JavaScript.
You can find examples here. For more information refer to our API docs.
Install the package with:
npm install ordinalsbot --save
or
yarn add ordinalsbot
The package needs to be configured with your account's API key which you can get by opening a ticket in our Discord for now. Our developer dashboard is coming soon...
const ordinalsbot = require('ordinalsbot');
// if no parameter given, default environment is 'live'
// API_KEY only required for creating collection orders
ordinalsbot.setCredentials('MY_API_KEY', 'dev');
try {
const order = await ordinalsbot.createOrder({
files: [
{
size: 10,
type: "plain/text",
name: "my-text-inscription-file.txt",
dataURL: "data:plain/text;base64,dGVzdCBvcmRlcg==",
}
],
lowPostage: true,
receiveAddress: "",
fee: 11
});
} catch (error) {
console.error(`${error.status} | ${error.message}`);
}
Every method returns a chainable promise which can be used instead of a regular callback:
// You can also use import
import ordinalsbot from 'ordinalsbot'
ordinalsbot.setCredentials('', 'dev');
// Create a new order
ordinalsbot.createOrder({
files: [
{
size: 10,
type: "plain/text",
name: "my-text-inscription-file.txt",
dataURL: "data:plain/text;base64,dGVzdCBvcmRlcg==",
}
],
lowPostage: true,
receiveAddress: "",
fee: 11
}).then(order => {
console.log(order);
}).catch(error => {
console.error(`${error.status} | ${error.message}`);
});
FAQs
Node.js library for OrdinalsBot API
The npm package ordinalsbot receives a total of 43 weekly downloads. As such, ordinalsbot popularity was classified as not popular.
We found that ordinalsbot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.