0.15.0 • Published 2 years ago
ptokens-pbtc v0.15.0
ptokens-pbtc
Module for interacting only with pBTC.
Installation:
npm install ptokens-pbtc
Usage:
import { pBTC } from 'ptokens-pbtc'
import { HttpProvider } from 'ptokens-providers'
import { Node } from 'ptokens-node'
const pbtc = new pBTC({
blockchain: 'ETH', // or EOS
network: 'testnet', // 'testnet' or 'mainnet', default 'testnet'
// if you want to be more detailed
hostBlockchain: 'ETH',
hostNetwork: 'testnet_ropsten', // possible values are testnet_jungle2, testnet_ropsten and mainnet
nativeBlockchain: 'BTC'
nativeNetwork: 'testnet'
// optionals
ethPrivateKey: 'Eth private key',
ethProvider: 'Eth provider', // or instance of Web3 provider
eosPrivateKey: 'Eos Private Key',
eosRpc: 'https:/...' // or also an instance of JsonRpc
eosSignatureProvider: '....' // instance of JsSignatureProvider
defaultNode: new Node({
pToken: 'pBTC',
blockchain: 'ETH',
provider: new HttpProvider(
'node endpoint',
{
'Access-Control-Allow-Origin': '*',
...
}
)
})
})
0.15.0
2 years ago
0.14.0
3 years ago
0.13.1
3 years ago
0.13.0
3 years ago
0.12.0
3 years ago
0.11.0
3 years ago
0.10.0
3 years ago
0.9.0
3 years ago
0.8.0
3 years ago
0.7.1
4 years ago
0.7.0
4 years ago
0.6.1
4 years ago
0.6.0
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.2
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.1
4 years ago
0.2.1-alpha.1
4 years ago