New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fetchai-ledger-api

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetchai-ledger-api

Fetch.AI Ledger Javascript API

  • 0.0.1-alpha.4
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Fetch.AI Ledger JavaScript API

Official JavaScript client library for interacting with the Fetch.AI Ledger https://fetch.ai

Requirements:
Installation
npm install
Testing:
npm run test
To Debug Jest Tests Graphically:

Open In Chrome the following URL:

chrome://inspect

Click on "Open dedicated DevTools for Node"

In terminal under project directory

npm run test:debug

Note: optionally set breakpoint by typing "debugger;" within your code

To Generate the docs:
npm run generate-docs

Note: It will create docs/ directory. Open index.html in browser to see the generated document.

Test Example:
  • Balance:

    make balance

  • wealth:

    make wealth

Directories:
- examples: Working examples of ledger javascript apis
- fetchai: All javascript api for ledger
- tests: Test cases
Building this library:

To build this repository(dist)

npm run build
Linting
make lint
Check transaction status:

curl 127.0.0.1:8000/api/status/tx/<tx_hash>

Output:
{"charge_rate": 0, "charge": 0, "exit_code": 0, "fee": 0, "tx": "/X66ZMfPKuQ4HE63gQBmbfAGWxnhUoT1t3IMYYTOZJU=", "status": "Unknown"}
Install updated google chrome stable version:
sudo apt-get upgrade google-chrome-stable

FAQs

Package last updated on 19 Dec 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc