@bitcoin-s-ts/oracle-server-ts
TypeScript icon, indicating that this package has built-in type declarations

1.9.7 • Public • Published

OracleServerTS

This project is a NodeJS module for making calls to bitcoin-s oracleServer.

Install Dependencies

This project requires local NodeJS https://nodejs.org/. Run npm i in the project root to install project dependencies.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.

Test

Run npm run test to start JavaScript invocation test script.

Proof of System Working Programs

Typescript

import * as OracleServer from '@bitcoin-s-ts/oracle-server-ts'

OracleServer.ConfigureServerURL('http://localhost:9998/')
// Optional, if authorization is set on oracleServer
OracleServer.ConfigureAuthorizationHeader('Basic ' + Buffer.from('bitcoins:password').toString('base64'))

OracleServer.GetPublicKey().then(r => {
  console.debug('GetPublicKey()', r)
})

Javascript

const OracleServer = require('@bitcoin-s-ts/oracle-server-ts')

OracleServer.ConfigureServerURL('http://localhost:9998/')
// Optional, if authorization is set on oracleServer
OracleServer.ConfigureAuthorizationHeader('Basic ' + Buffer.from('bitcoins:password').toString('base64'))

OracleServer.GetPublicKey().then(r => {
  console.debug('GetPublicKey()', r)
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.9.7
    2
    • latest
  • 0.0.1
    0
    • 875f6d91

Version History

Package Sidebar

Install

npm i @bitcoin-s-ts/oracle-server-ts

Weekly Downloads

3

Version

1.9.7

License

none

Unpacked Size

170 kB

Total Files

80

Last publish

Collaborators

  • chris_stewart_5