Claim reward Polygon
The transaction
namespace contains methods used for sending transactions. The unique method to the transaction
namespace is:
reward(address, isPOL = false)
: Reward user tokens (Claim reward).
Claim Reward Code Example
ts
// Import SDK
import { Polygon } from '@everstake/wallet-sdk';
const address = '2f92e...6761b'
// Reward user tokens - return transaction
const rewardResp = await Polygon.reward(address, false);
console.log(rewardResp); // Raw Transaction