Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@tradle/cb-proxy

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tradle/cb-proxy

proxy for common-blockchain API, that temporarily caches calls. Currently supports Blockr

latest
Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
20
42.86%
Maintainers
3
Weekly downloads
 
Created
Source

cb-proxy

This module is used by Tradle

Proxy for common-blockchain APIs, that throttles and stores results of cacheable calls

Helps be a better user of blockchain APIs, and avoid getting throttled

Motivation

Fetching a raw block from blockr requires upwards of (1 + block.transactions.length) calls, which had me hitting the rate limit almost immediately. This module does basic throttling and stores cacheable results in a local database, to avoid hitting blockr.io more than necessary.

Support

cb-blockr

Usage

# specify port
node app 54545
var Blockchain = require('cb-blockr')
var blockchain = new Blockchain('testnet', 'http://localhost:54545/?url=')

Cached paths

blocks/info
blocks/raw
tx/info
tx/raw

Keywords

proxy

FAQs

Package last updated on 03 Mar 2016

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