1.0.6 • Published 5 years ago

txproxy v1.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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'

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago