@upsilon-x/theta-web-sdk

0.0.1 • Public • Published

UpsilonX | Theta Web SDK

This tiny package makes use of the Theta web sdk to allow users to use UpsilonX's ICOs.

async purchaseICO(string buyerPrivateKey, number icoId, number amount)

buyerPrivateKey (string): the address of the wallet that you're using to sign the purchase transaction.
icoId (number): the id of the ico that you want to buy from.
amount (number): the amount of TFuel you intend to send (3.5 for 3.5 TFuel).

Use this function to purchase from ICOs without needing to use a wallet.

async purchaseICOThetaWallet(number icoId, number amount)

icoId (number): the id of the ico that you want to buy from.
amount (number): the amount of TFuel you intend to send (3.5 for 3.5 TFuel).

Use this function to purchase from ICOs using the Theta Web Wallet browser extension.

async getListOfICOs()

Returns a json of the current ICOs available.

// https://www.freecodecamp.org/news/how-to-make-a-beautiful-tiny-npm-package-and-publish-it-2881d4307f78/

Readme

Keywords

Package Sidebar

Install

npm i @upsilon-x/theta-web-sdk

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

9.01 kB

Total Files

4

Last publish

Collaborators

  • upsilon-x