0.0.14-alpha.0 • Published 1 year ago

@bloom-trade/positions-connector v0.0.14-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1 year ago

0.0.13

1 year ago

0.0.10

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.6-alpha.0

1 year ago

0.0.5-alpha.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago