# txproxy

Latest version **1.0.6** (published 2019-02-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install txproxy
pnpm add txproxy
yarn add txproxy
bun add txproxy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-02-23 |
| First published | 2019-02-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rawad Rifai |
| Maintainers | rawad.rifai |
| Keywords | blockchain, ethereum, bitcoin, ripple, transaction, proxy |

## Links

- npm: https://www.npmjs.com/package/txproxy
- Repository: https://github.com/rawadrifai/txproxy-sdk
- Homepage: https://github.com/rawadrifai/txproxy-sdk#readme
- Issues: https://github.com/rawadrifai/txproxy-sdk/issues
- npm.io page: https://npm.io/package/txproxy

## Dependencies (4)

- [web3](https://npm.io/package/web3.md) ^1.0.0-beta.46
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [ripple-lib](https://npm.io/package/ripple-lib.md) ^1.1.2
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.26.0

## Recent versions

- 1.0.6 (latest) — 2019-02-23
- 1.0.5 — 2019-02-22
- 1.0.4 — 2019-02-22
- 1.0.3 — 2019-02-22
- 1.0.2 — 2019-02-22
- 1.0.1 — 2019-02-21
- 1.0.0 — 2019-02-21

## README

# txproxy-sdk

This is a bridge to several blockchains. There are only 2 functions. getTx and broadcastTx.

## Installation

---

`yarn add txproxy`

## Examples

---

`const TxProxy = require('txproxy').TxProxy;`  
`const tx = TxProxy.getTx('your tx hash', 'bitcoin', 'testnet');`

The first parameter is your transaction hash.  
The second parameter is the blockchain: bitcoin | ethereum | ripple.  
The third parameter is the network: testnet | mainnet

## Networks

---

We use the following bridges:

### BITCOIN

testnet: 'https://api.blockcypher.com/v1/btc/test3'  
mainnet: 'https://blockexplorer.com'

### ETHEREUM

testnet: 'https://ropsten.infura.io/'  
mainnet: 'https://mainnet.infura.io/'

### RIPPLE

testnet: 'wss://s.altnet.rippletest.net'  
mainnet: 'wss://s1.ripple.com'

---
_Source: https://npm.io/package/txproxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
