Skip to content
On this page

Autocompound Ethereum

The autocompound namespace contains method used for sending transactions on autocompound. The unique method to the autocompound namespace is:

  • autocompound(address): Claims all autocompound user rewards and restakes them into pool.

Autocompound Code Example

ts
// Import SDK
import { Ethereum } from '@everstake/wallet-sdk';

// User Public Address
const address = '0x7CB380672D37E6Cc2e1dE28616076Cf3Cexample';

// Autocompound - return Raw Transaction
const txnRequest = await Ethereum.autocompound(address);
console.log(txnRequest); // Raw Transaction