ordinalsbot
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -16,2 +16,3 @@ export interface OrdinalsBotFile { | ||
additionalFee?: number; | ||
timeout?: number; | ||
webhookUrl?: string; | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "ordinalsbot", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Node.js library for OrdinalsBot API", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "pnpm build && mocha", | ||
"test": "pnpm build && nyc mocha", | ||
"build": "rm -rf dist/ && tsc", | ||
@@ -28,5 +28,13 @@ "prepack": "pnpm build" | ||
"mocha": "^9.2.2", | ||
"nyc": "^15.1.0", | ||
"pnpm": "^8.6.12", | ||
"typescript": "^4.9.5" | ||
} | ||
}, | ||
"keywords": [ | ||
"bitcoin", | ||
"lightning network", | ||
"ordinals", | ||
"api", | ||
"ordinalsbot" | ||
] | ||
} |
# OrdinalsBot Node.js Library | ||
[![Version](https://img.shields.io/npm/v/ordinalsbot.svg)](https://www.npmjs.org/package/ordinalsbot) | ||
[![](https://badgen.net/npm/dt/ordinalsbot)](https://www.npmjs.com/package/ordinalsbot) | ||
[![Try ordinalsbot on RunKit](https://badge.runkitcdn.com/ordinalsbot.svg)](https://npm.runkit.com/ordinalsbot) | ||
@@ -57,2 +58,6 @@ | ||
```js | ||
// You can also use import | ||
import ordinalsbot from 'ordinalsbot' | ||
ordinalsbot.setCredentials('', 'dev'); | ||
// Create a new order | ||
@@ -59,0 +64,0 @@ ordinalsbot.createOrder({ |
@@ -42,2 +42,8 @@ export interface OrdinalsBotFile { | ||
/* Order timeout in minutes. | ||
Generated payment invoice will be valid for this duration only. Payments that are sent after this will not be processed. | ||
default=4320 (3 days) | ||
*/ | ||
timeout?: number, | ||
/** URL to receive a POST request when each file in the order is inscribed */ | ||
@@ -44,0 +50,0 @@ webhookUrl?: string, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41576
29
751
81
6