Tronsave
🇬🇧 English
Search
K

Approve WTRX

You must approve WTRX token with HUB contract
You must approve before sending the request
Method ApproveTronSave() with 3 parameters value (WTRX unit approve), options ( options method contract send https://developers.tron.network/reference/methodsend ), and paymentMethod
Example
const onApproveWtrx = async () => {
await tronSave.approveTronSave({
value: value,
options: options,
paymentMethod: paymentMethod
})
}
Params
Default
Description
Required
value
WTRX unit approve
true
options
options method contract send
false
paymentMethod
1
Approve for TronSave with token
false