Help & Support

Funding Sponsorships

This guide covers how to fund your Lens Sponsorship contract.

To sponsor transactions for your users, you need to periodically fund your Lens Sponsorship.

You can do this by sending native tokens (e.g., $GRASS on Testnet) to the Lens Sponsorship contract address.

This can be done either through a wallet or programmatically via code.

Example
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://rpc.testnet.lens.dev");const wallet = new ethers.Wallet("<YOUR_PRIVATE_KEY>", provider);
const response = await wallet.sendTransaction({  to: "<SPONSORSHIP_ADDRESS>",  value: ethers.parseEther("100"), // Amount in native tokens});
const receipt = await response.wait();
// funded