@upsilon-x/theta-web-sdk
v0.0.1
Published
An SDK for UpsilonX's smart contracts to be used on the Theta mainnet.
Downloads
3
Readme
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/