Skip to main content
Backers give DAI on Arbitrum, ETH on Base or XLM, and the campaign's progress bar fills.Backers give DAI on Arbitrum, ETH on Base or XLM, and the campaign's progress bar fills.
Funding intents Per-intent destination Hosted checkout

The idea

A backer loves your community garden campaign. They also hold DAI on Arbitrum and nothing else. That should not be the end of the story. Let them back it with what they have, and send the money straight to the campaign’s own account while your progress bar fills up.

How it plays out

1

A backer pledges

They choose an amount. Your server creates a funding intent whose destination is the campaign’s own Stellar account.
2

They pay with what they hold

Send them to the hosted checkout, or share its link: it works on any device and needs no frontend code.
3

The bar moves

On funding.credited, add the pledge to the campaign’s total and thank the backer. The value has already settled to the campaign’s account.

The code

Make it your own

  • Tip jars. Three buttons, 1, 5 and 10 USDC, each creating an intent for a creator’s own account. Same code, smaller numbers.
  • Stretch goals. Your totals come from funding.credited, so unlocking a stretch goal is a check after each one.
  • Back it from anywhere. Backers on Base, Arbitrum or Ethereum pay the same link; the route bridges their payment and converts it.

Good to know

  • The campaign’s account must exist and, for USDC, hold a USDC trustline. Useroutr checks before anyone pays and refuses the intent with INVALID_DESTINATION otherwise, so check it when a campaign signs up.
  • An intent settles to one destination. If your platform takes a fee, settle to your own account and pay campaigns out yourself, or collect the fee separately.
  • Pledges are exact amounts. A backer who sends more gets the extra back automatically; see Refunds.