privacy.wasmnow uses one unified function,
createTransaction, for creating transactions.
txParamsis a JSON string. It can have these fields:
SenderSK: base64-encoded form of the 32-byte private key for your spending coins
PaymentInfo: array of receivers, each of which must have PaymentAddress and Amount
InputCoins: the coins that will be spent
Fee: transaction fee (must be in PRV)
Metadata: extra information used for special types of transaction such as pDex / Staking feature transactions
Info: an optional message from sender
CoinCache: an object of random (encrypted) coins in the Incognito network, used to hide sender identity
TokenParams: some more parameters, exclusive to
initBurningRequestTxare aliases to this same function. They serve compatibility purpose only.
createTransactiontakes an optional parameter :
lockTime. When it is omitted or equals zero, the function will use its internal OS time when making the transaction.
CoinDetailsEncryptedcontains the coin's encrypted receiver information and amount
Valueis zero if the coin is encrypted, otherwise the plain amount is shown
KeyImageis used for verification when spending
Infois an optional message from sender