Governance Mining Functions

Execute Exchange

claimable_tokens

function claimable_tokens(
    address addr,
).call()
  • Description: Claim governance rewards

  • Contract: Gauge

  • Parameters:

Parameter Name
Type
Description

addr

address

Address of the user

  • Return:hash

  • Example:Claim governance rewards from the USDDOLD 2pool LP (USDDOLD+USDT) mining pool

const gauge_con = await tronWeb.contract(gaugeabi, gauge_addr)
const claimable_tokens_ = await gauge_con.claimable_tokens(self_address).send() //单独领取治理奖励
console.log(claimable_tokens_)

Note: To withdraw all rewards including both staking and governance rewards, use withdraw(0).

Last updated