0.0.14-alpha.0 • Published 2 years ago
@bloom-trade/positions-connector v0.0.14-alpha.0
Positions connector
Is a package entended to be used with multiple web3 and web2 providers to interact with blockchains.
Get Started
import Connector from '@bloom-trade/positions-connector';
const credentials = [
//etherscan example
{
addresses: ['0xF274800E82717D38d2e2ffe18A4C6489a50C5Add'],
chain: 'eth',
provider: {
id: 'etherscan',
useTestnet: true,
auth: {
apiKey: 'YOUR API KEY',
},
},
},
//circle api example
{
provider: {
id: 'circle',
useTestnet: true,
auth: {
apiKey: 'your api key',
},
},
},
];
const connector = new Connector();
const client = connector.getClient(credentials);
client.getBalance().then((balance) => {
//your balance
console.log(balance);
});
client.getTransactionHistory().then((history) => {
//your transaction history
console.log(history);
});
0.0.14-alpha.0
2 years ago
0.0.13
2 years ago
0.0.10
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.6-alpha.0
2 years ago
0.0.5-alpha.0
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago