Skip to content
 
 

Repository files navigation

Automatic Releaser Code Coverage test npm version license

cryptfire-node

Official Cryptfire client node module. We now run our own high-performance, well-structured, Open Source NodeJS API and provide Cloud infrastructure for KVM Servers on 6 geographically distributed Bare Metal Nodes. We also rent out Bare Metal Nodes from Colocations around the world.

Installation

npm install @cryptfire/cryptfire-node

Usage

An API Key can be generated and acquired with curl, or the Cryptfire CLI.

Initialize

const cryptfireNode = require('@cryptfire/cryptfire-node')

// Initialize the instance with your configuration
const cryptfire = cryptfireNode.initialize();

// export this as CRYPTFIRE_API_KEY to .bashrc
cryptfire.account.registerAccount().then((response) =>
  console.log(apiKey);
);

Calling Endpoints

// Get Account Info
cryptfire.account.getAccountInfo().then((response) => {
  console.log(response)
})

// Get Ethereum Wallet
cryptfire.funding.getECryptoWallets().then((response) => {
  console.log(response)
})

// Deploy a minimal cloud server
cryptfire.cloud.deployMinimalInstance().then((response) => {
  console.log(response)
})

Documentation

This implements Cryptfire API V1. For documentation on all endpoints, please visit https://docs.cryptfire.io/api/.

For documentation specific to this client please visit the Github wiki.

Contributing

Feel free to send pull requests our way! Please see the contributing guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Cryptfire Authors

Vultr Authors

About

Cryptfire Node API client, literally templated from Vultr, adjusted to talk to Cryptfire API and thereby our own Cloud Infrastructure. Can still fallback to Vultr

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages