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.