1.13.12 • Published 3 years ago

@liquality/bitcoin-wallet-provider v1.13.12

Weekly downloads
102
License
MIT
Repository
github
Last release
3 years ago

Chain Abstraction Layer

Build Status Coverage Status Standard Code Style MIT License Gitter Telegram Greenkeeper badge

:warning: This project is under heavy development. Expect bugs & breaking changes.

:pencil: Introductory Blog Post: The Missing Tool to Cross-Chain Development

Query different blockchains with account management using a single and simple interface.

Packages

PackageVersion
@liquality/bitcoin-bitcoinjs-lib-swap-providerChainAbstractionLayer
@liquality/bitcoin-ledger-providerChainAbstractionLayer
@liquality/bitcoin-networksChainAbstractionLayer
@liquality/bitcoin-rpc-providerChainAbstractionLayer
@liquality/bitcoin-wallet-node-providerChainAbstractionLayer
@liquality/bitcoin-swap-providerChainAbstractionLayer
@liquality/bitcoin-esplora-api-providerChainAbstractionLayer
@liquality/bitcoin-esplora-swap-find-providerChainAbstractionLayer
@liquality/bitcoin-utilsChainAbstractionLayer
@liquality/bundleChainAbstractionLayer
@liquality/clientChainAbstractionLayer
@liquality/cryptoChainAbstractionLayer
@liquality/debugChainAbstractionLayer
@liquality/errorsChainAbstractionLayer
@liquality/ethereum-erc20-providerChainAbstractionLayer
@liquality/ethereum-erc20-swap-providerChainAbstractionLayer
@liquality/ethereum-ledger-providerChainAbstractionLayer
@liquality/ethereum-metamask-providerChainAbstractionLayer
@liquality/ethereum-networksChainAbstractionLayer
@liquality/ethereum-rpc-providerChainAbstractionLayer
@liquality/ethereum-swap-providerChainAbstractionLayer
@liquality/ethereum-blockscout-swap-find-providerChainAbstractionLayer
@liquality/ethereum-scraper-swap-find-providerChainAbstractionLayer
@liquality/ethereum-utilsChainAbstractionLayer
@liquality/jsonrpc-providerChainAbstractionLayer
@liquality/ledger-providerChainAbstractionLayer
@liquality/metamask-providerChainAbstractionLayer
@liquality/providerChainAbstractionLayer
@liquality/schemaChainAbstractionLayer
@liquality/utilsChainAbstractionLayer
@liquality/wallet-providerChainAbstractionLayer

Usage

import Client from '@liquality/client'
import BitcoinRpcProvider from '@liquality/bitcoin-rpc-provider'
import EthereumRpcProvider from '@liquality/ethereum-rpc-provider'

import BitcoinLedgerProvider from '@liquality/bitcoin-ledger-provider'
import EthereumLedgerProvider from '@liquality/ethereum-ledger-provider'

import BitcoinNetworks from '@liquality/bitcoin-networks'
import EthereumNetworks from '@liquality/ethereum-networks'

const bitcoin = new Client()
const ethereum = new Client()

bitcoin.addProvider(new BitcoinRpcProvider(
  'https://liquality.io/bitcointestnetrpc/', 'bitcoin', 'local321'
))
ethereum.addProvider(new EthereumRpcProvider(
  'https://rinkeby.infura.io/v3/xxx'
))

bitcoin.addProvider(new BitcoinLedgerProvider(
  { network: BitcoinNetworks.bitcoin_testnet }
))
ethereum.addProvider(new EthereumLedgerProvider(
  { network: EthereumNetworks.rinkeby }
))

// Fetch addresses from Ledger wallet using a single-unified API
const [ bitcoinAddress ] = await bitcoin.wallet.getAddresses(0, 1)
const [ ethereumAddress ] = await ethereum.wallet.getAddresses(0, 1)

// Sign a message
const signedMessageBitcoin = await bitcoin.wallet.signMessage(
  'The Times 3 January 2009 Chancellor on brink of second bailout for banks', bitcoinAddress
)
const signedMessageEthereum = await ethereum.wallet.signMessage(
  'The Times 3 January 2009 Chancellor on brink of second bailout for banks', ethereumAddress
)

// Send a transaction
await bitcoin.chain.sendTransaction(<to>, 1000)
await ethereum.chain.sendTransaction(<to>, 1000)

Development

npm install
npm run bootstrap
npm run watch

Production

npm run build

Publish

npm run new:version # prepare
npm run publish:all # publish

License

MIT

1.13.11

3 years ago

1.13.12

3 years ago

1.13.9

3 years ago

1.13.8

3 years ago

1.13.10

3 years ago

1.12.0-next.0

4 years ago

1.12.0-next.1

4 years ago

1.12.0

3 years ago

1.13.2

3 years ago

1.13.1

3 years ago

1.13.0

3 years ago

1.13.6

3 years ago

1.13.5

3 years ago

1.13.4

3 years ago

1.13.3

3 years ago

1.13.7

3 years ago

1.11.2

4 years ago

1.11.1

4 years ago

1.10.0

4 years ago

1.9.3

4 years ago

1.9.2

4 years ago

1.11.0

4 years ago

1.9.1

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.13

4 years ago

1.6.12

4 years ago

1.6.14

4 years ago

1.6.9

4 years ago

1.6.8

4 years ago

1.6.11

4 years ago

1.6.10

4 years ago

1.6.7

4 years ago

1.6.6

4 years ago

1.6.4

4 years ago

1.6.5

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.1

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-beta.5

4 years ago

1.0.0-beta.4

4 years ago

1.0.0-beta.3

4 years ago

0.10.4

4 years ago

1.0.0-beta.2

4 years ago

1.0.0-beta.1

4 years ago

1.0.0-beta.0

4 years ago

0.10.3

4 years ago

0.10.2

4 years ago

0.10.1

4 years ago

0.9.2-next.0

4 years ago

0.9.2

4 years ago

0.10.0

4 years ago

0.9.1

4 years ago

0.9.0-next.0

4 years ago

0.9.0

4 years ago

0.8.15

4 years ago

0.8.14

4 years ago

0.8.13

4 years ago

0.8.12

4 years ago

0.8.11

4 years ago

0.8.9

5 years ago

0.8.8

5 years ago

0.8.7

5 years ago

0.8.5

5 years ago

0.8.6

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.1

5 years ago

0.8.2

5 years ago

0.8.0

5 years ago

0.7.15

5 years ago

0.7.14

5 years ago

0.7.13

5 years ago

0.7.11

5 years ago

0.7.12

5 years ago

0.7.10

5 years ago

0.7.9

5 years ago

0.7.8

5 years ago

0.7.7

5 years ago

0.7.6

5 years ago

0.7.5

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.9

5 years ago

0.6.8

5 years ago

0.6.7

5 years ago

0.6.6

5 years ago

0.6.5

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.5.0-alpha.2

5 years ago

0.5.0-alpha.1

5 years ago

0.5.0-alpha.0

5 years ago