Making your first Pledge
Making a Pledge only takes a couple of minutes and a few steps.
Sign up at 0xpledges.com
Select a Pledge app
Connect your wallet and data source
Configure your goal and beneficiary if you are unsuccessful
Send it onchain to Base
To see this in action, let's walk through an example of the Runner Pledge.
Pledge Example: Runner
The Runner Pledge integrates with Strava to help users stay accountable to their running goals. Users set a distance goal (in miles or kilometers) and a deadline, while pledging funds to an escrow account. If the goal is not met, the pledged amount is donated to a selected charity via Endaoment, a blockchain-based charity provider.
1. Set up the Pledge:
Define your running goal (e.g., “Run 5 miles by Sunday”) and deadline Round. Pledges operate on the basis of weekly Rounds that conclude on Sundays at 11:59 PM ET (Monday 4:59 AM UTC). Pledges can have a deadline of at most 4 Rounds into the future (i.e., 1 month).
Choose one of the available charities and its associated onchain address.
Specify the amount to be donated if you don’t meet your goal.
An example Runner Pledge might be: “I pledge to run 5 miles by this Sunday. If I fail, I'd like my $100 to be donated to St. Jude.”
2. Deploy Onchain:
Deploy the Pledge contract with your pledged amount (e.g., $100 in ETH).
The escrow contract is non-custodial, meaning your funds are locked until the goal deadline.
3. Goal Outcome:
At the deadline, data is fetched from the user's Strava account to check if the goal was met.
An oracle relays the result onchain.
Goal Met: The funds are returned to you (the deployer).
Goal Not Met: The pledged amount is donated to your selected charity.
By combining personal accountability with charitable and monetary incentives, Runner Pledges motivate users to achieve fitness goals while supporting causes they care about.
Last updated