News for hackers. Stuff that matters.

Ask HN: How would I send 1 dollar to everyone on Earth?

Let's assume that:

  * I am a billionaire with 8 billion dollars on my bank account
  * There are 8 billion humans on Earth
  * Around 6 billion of those humans have a bank account
  * I would like to send 1 dollar to every human on Earth
How would I go about doing this?

Some challenges that I believe I'd face:

  1. Getting the bank account numbers of the people who already have a bank account
  2. Getting 1 dollar to people who don't have a bank account
  3. Verifying that I'm not sending 1 dollar to the same person several times
  4. Building or finding some kind of service that makes sure I don't have to do 8 billion manual transfers
  5. Making sure I don't break any international laws in the process
  6. How do we handle children?
Some ideas for how to perhaps deal with these challenges:

  1. Create a website where I promise to send money if you send me your bank account -- doesn't sound shady at all.
  2. Use the same website to also allow people to send their address instead of a bank account number, and then simply send 1 dollar through regular mail? How would postal services in poor or corrupt countries deal with this, once they know there are millions of dollars being sent through the mail?
  3. No idea.
  4. Would a simple script that iterates over 8 billion rows and sends Stripe commands do the trick?
  5. Am I allowed to send money to North Korea? What happens if I send money to a known terrorist? No idea.
  6. No idea.
( 101 comments | 3 points | on HN )
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by philipswood on Wednesday November 09, 2022 @07:41AM (#33530715)
Let me help you to clarify step 1:

Make a disposable $8,000,000,000.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ohadron on Wednesday November 09, 2022 @07:38AM (#33530686)
Interesting challenge. Sounds like you will need a bit more than 8 billion for all the logistics involved.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by muzani on Wednesday November 09, 2022 @07:53AM (#33530841)
It's probably 8 billion dollars to build a solution for a single large country.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by IfOnlyYouKnew on Wednesday November 09, 2022 @07:40AM (#33530711)
Donate the money to an organization fighting climate change. It's the closest you will get to an equitable distribution.

Or, if you want to distribute it as regressive as possible: burn all your money. This will lower inflation and people will benefit in proportion to their spending.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by paulluuk on Wednesday November 09, 2022 @07:49AM (#33530795)
Interesting. How would deflation affect people with zero or negative assets, though?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by TurkishPoptart on Wednesday November 09, 2022 @08:02AM (#33530960)
How will one of these organizations "fight" climate change? I think the only solution to climate change is American ingenuity, private-sector technology.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by mirekrusin on Wednesday November 09, 2022 @08:14AM (#33531105)
Director will stop using his SUV to go to work and won’t heat his residence in winter anymore (no need in tropical islands).
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ISL on Wednesday November 09, 2022 @08:18AM (#33531153)
The latter proposal is a good one, if you first buy up currency from every country in proportion to the population.

It may not be as regressive as it appears at first blush: the impoverished hold cash as a greater proportion of their net worth than many of the wealthy.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by serf on Wednesday November 09, 2022 @07:49AM (#33530791)
build something globally accessible that provides at least one dollar in value, that's the only way I can think to overcome most of the hurdles you face with currency.

(maybe you can even do that cheaper than 8b.)

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by graderjs on Wednesday November 09, 2022 @07:50AM (#33530805)
Easy: get everyone on earth to sign up for Stripe connect on your platform 1dollarforyouandyouandyou…com and then API the shiznit outta that thing.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by kome on Wednesday November 09, 2022 @07:54AM (#33530860)
"1. Create a website where I promise to send money if you send me your bank account -- doesn't sound shady at all."

Strange for an American perhaps, not for an European, i give and receive payments to my bank account routinely thanks to my IBAN; and it's safe.

p.s.: can you send money?

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Cthulhu_ on Wednesday November 09, 2022 @08:16AM (#33531134)
Yeah but you wouldn't just send it to a random offering you money - that's Nigerian prince territory.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by kome on Wednesday November 09, 2022 @11:43AM (#33534172)
I could publish it on my website for donations, what difference would it make?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Ptchd on Wednesday November 09, 2022 @08:01AM (#33530957)
I had this idea for a world crypto where everyone would start with the same amount... the biggest challenge that I saw was how to verify identities so that no-one could claim other's crypto.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by jakelazaroff on Wednesday November 09, 2022 @08:12AM (#33531075)
Have you considered building a device that will scan people's retinas, then recruiting volunteers to deploy it around the world?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Ptchd on Wednesday November 09, 2022 @08:44PM (#33541067)
seems really expensive... there must be a better way
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by wnkrshm on Friday November 11, 2022 @08:48AM (#33560750)
Can you make a retina scanner good enough that it recognizes a retina correctly with 99.999999% accuracy? Retinas can change, get damaged.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by hugh-avherald on Wednesday November 09, 2022 @08:13AM (#33531090)
You enter into a contract with each national government. It obviously won't be perfect, but I doubt any other method will be better.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by NicoJuicy on Wednesday November 09, 2022 @08:27AM (#33531271)
Nice one!

Reducing 8 billion problems to 195 problems.

Additionally, some further improvements are possible. Eg. Redirecting to the EU, instead of associated countries.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by sheeeep86 on Wednesday November 09, 2022 @08:33AM (#33531331)
This is the most likely route I can think of which could actually work
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by thfuran on Wednesday November 09, 2022 @08:42AM (#33531445)
There are some countries for which it might conceivably work (presuming you also pay a lot extra to cover the costs of the project), many for which it might nearly work, and several for which it absolutely won't.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by notahacker on Wednesday November 09, 2022 @08:45AM (#33531485)
The problem then becomes that some of those dollars end up going to one person rather than 10 million people, and government effectiveness at distributing the money across their population is inversely correlated with where the people that would benefit most from receiving a dollar live (this correlation exists within populations of countries with good banking systems too: your working person that wouldn't pick a dollar up if they saw it on the street probably gets a dollar automatically paid to them via the same system they receive tax rebates from, but many homeless people don't)
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by NicoJuicy on Wednesday November 09, 2022 @03:03PM (#33537069)
There will also be overhead fees ( eg. Banking) which need to be concluded in.

Either way, some of that money will always end with different people ( banks or persons).

25% overhead fee would be the extreme minimum due to the small amount per person.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ALittleLight on Wednesday November 09, 2022 @01:21PM (#33535722)
But why would the national governments agree to do this? Most people wouldn't really care if they got a dollar or not so I expect that there wouldn't be overwhelming public pressure for most governments to do this, and the governments would correctly think that doing this would be more trouble than it is worth.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by muunbo on Wednesday November 09, 2022 @08:15AM (#33531112)
Drones with cameras and facial recognition. And a “money gun” that shoots a dollar at every new person it sees
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by knicholes on Wednesday November 09, 2022 @08:36AM (#33531367)
Those who are desperate could start swapping wigs and prosthetics to fool the image recognition system. They'd shoot down the drones and take all of the money.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by nathancahill on Wednesday November 09, 2022 @08:45AM (#33531488)
I think I saw that movie.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by twic on Wednesday November 09, 2022 @08:15AM (#33531114)
Subcontract. Put out a call for tenders for other people to deliver the money in particular countries, or regions, or to particular demographics within regions. Choose the proposals which are satisfactorily reliable and at the cheapest price.

There probably isn't a systematic way to get a dollar to everyone on earth. A mechanism which which works in the US won't necessarily work in India, Western Sahara, or the Netherlands. The best way to find a mechanism suited to local conditions is to get people with local knowledge to select it.

I'd be interested to see the proposal for North Sentinel Island.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by mejutoco on Wednesday November 09, 2022 @08:17AM (#33531142)
I will bite. Using the postal service.

Send an physical envelope with 1$ for every address in the countries that are not banned in your jurisdiction, assuming x people per household.

Not everybody has an address, and other errors (how many people per address, cost of postage) but I think this would have less errors, would be cheaper and less prone to abuse than any alternative I can imagine.

Another option is providing the value for that money to everybody by doing something with it, and saving in all the logistics.

One last option, that requires government cooperation. Give 1$ to everybody after they vote.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by yellowstuff on Wednesday November 09, 2022 @08:17AM (#33531147)
During the pandemic the US government tried to send money to just its own citizens, this was generally successful, but plagued by a ton of fraud. I don't think any organization has the capacity to get close to the goal of sending $1 to every human on earth. Also, the US is able to enforce its laws on dollar transactions happening outside its borders, so sending money into countries the US has sanctioned will be very difficult from most places.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by scandox on Wednesday November 09, 2022 @08:18AM (#33531155)
Entrust 8 million people with solving the problem locally for their 1,000. Expect fraud.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by bemmu on Wednesday November 09, 2022 @08:19AM (#33531159)
Worldcoin (cofounded by Sam Altman) is trying to do this. They plan to have contractors do eyeball scanning of everyone as identification.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Yizahi on Wednesday November 09, 2022 @09:44AM (#33532274)
And it worked just as we all expected: https://www.buzzfeednews.com/article/richardnieva/worldcoin-...

Note that it was months ago, now it's probably even worse with all scams being exposed and general downturn of the pyramid schemes.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by davidivadavid on Wednesday November 09, 2022 @11:55AM (#33534377)
I honestly don't get how people like Sam Altman still have any semblance of reputation after investing in that crap. Could something look any more transparently dystopian?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Scarblac on Wednesday November 09, 2022 @01:16PM (#33535666)
What about people without eyeballs?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by bombcar on Wednesday November 09, 2022 @08:21AM (#33531185)
This cannot be done for anywhere near your $8b. You need many times that amount of money just to handle some of the problems.

If you are willing to miss some people this is likely the best solution possible. Establish a very large NGO with offices in every country in the world. You'll need enough people to cover the entire planet at the same time - and then setup desks where everyone can come in, get their dollar, and get their left hand stamped with an ink that cannot be washed off in less than a day. This is what countries do to prevent duplicate votes.

And this won't get everyone, but it should prevent most duplications.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by petegordon on Wednesday November 09, 2022 @08:44AM (#33531477)
“Establish a very large NGO with offices in every country in the world”

This reminded me of what the non profit Stellar Development Foundation (SDF) is trying to do with Anchors around the world.

https://stellar.org/blog/stellar-anchor-basics-webinar-recap

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by bombcar on Wednesday November 09, 2022 @08:57AM (#33531642)
Yeah, in practicality you'd want to partner with different existing NGOs (or even governments) depending on the country (some countries can reach almost every single person via a church, for example).

You'd also run into the opposite problem in some countries like the US; I don't know if I could be arsed to walk down the block for a dollar. Maybe if it was a cool limited-edition dollar coin or something.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Gigachad on Thursday November 10, 2022 @02:40AM (#33543423)
What kind of ink can’t be washed off? I haven’t ever heard of this method before.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by pdksam on Thursday November 10, 2022 @03:15AM (#33543634)
Used in India's elections to mark a person hash already voted.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by warrenm on Thursday November 10, 2022 @10:31AM (#33547899)
Do you not recall the first post-Saddam elections in Iraq?

https://www.dvidshub.net/image/3237/elections-iraqi-man-prou...

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by donatj on Wednesday November 09, 2022 @08:22AM (#33531193)
I think the overhead of proving individuals don’t get more than a dollar would wind up costing more than the money itself.

I think the lowest overhead way would be to set up a couple thousand booths around the world simultaneously where people could come to get their dollar in exchange for staining their fingers with “election ink”. Would make it pretty difficult though not impossible to double dip.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by moolcool on Wednesday November 09, 2022 @08:22AM (#33531198)
In many developed and developing countries, you could likely work with the state and build it into their taxation schemes.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by bsldld on Wednesday November 09, 2022 @08:23AM (#33531206)
You also need to account for exchange rate and processing fees. Some recipients may not receive 1 dollar.

Edit0: Also, I just realised, many poor people do not have means to exchange dollar into their local currency. So sending them 1 dollar through post is going to be a waste.

Edit1: Most countries will not allow this due to hawala which creates black money.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by walthamstow on Wednesday November 09, 2022 @08:23AM (#33531217)
How many $1 bills are even in circulation?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by laurencei on Wednesday November 09, 2022 @08:26AM (#33531251)
At the risk of been downvoted: you cant. It is impossible.

Even if you had $30 billion, and your goal was to guarantee the distribution of only $1 to everyone, it still wouldnt occur with all the excess.

When you factor in corruption, fraud, inadequate infrastructure, and vague defining of the parameters.

Just think of the edge cases to understand why this couldnt be achieved:

1. A subset of the population will ACTIVELY reject your attempt to give them $1, as they will consider it spam, anti-god, conspiracy or one of hundreds of other reasons (look at recent world events to see that there is always a % of the pop on the other side)

2. A subset of the population will ACTIVELY attempt to fraud you for extra money. Claim multiple times, or claim on behalf of other people (their dead grandmother)

3. A subset of the population will ACTIVELY use corruption for extra money. Consider state actors such as North Korera, or third world countries with poor controls

I could go on - but those 3 reasons alone are enough edge cases to start with.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by readthenotes1 on Wednesday November 09, 2022 @08:38AM (#33531390)
Not to mention having to keep going because babies are born and the money can't be delivered instantaneously...
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by lelandfe on Wednesday November 09, 2022 @08:47AM (#33531511)
Not to mention getting anything into the hands of off-the-grid homesteading hermits – or even finding them to begin with.

(Or getting a buck into the hands of every Sentinelese)

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by BWStearns on Wednesday November 09, 2022 @01:58PM (#33536275)
> Sentinelese

I mean, that's probably fairly easy but whoever does it better be really committed to this project.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Isamu on Wednesday November 09, 2022 @10:22AM (#33532851)
It would be interesting to estimate the millions of people in the world that are likely to be completely inaccessible and would never get a dollar.

For example, North Korea. The government would insist on running the distribution itself, and because they are always in dire need of foreign cash, most or all of it would be diverted to some other purpose.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by paulluuk on Friday November 11, 2022 @03:21AM (#33558401)
OP here: I don't see why you'd be downvoted for this, it's a fair point! I agree with each of your three points, and in response I'll change the requirements a bit:

How can I get 1 dollar to as many people as possible, while spending the least amount of money on transactional costs or fighting fraud/corruption?

I think all of the edge cases you named above can be dealt with given this new requirement. Some fraud and corruption will happen for sure, just like with any financial transaction anywhere in the world. I would say that fighting fraud/corruption is only worth it, if the cost of fighting it is less than what you'd lose to it if left unchecked. A dead grandma will be too expensive to disprove, but someone making thousands of fake personas must be detectable somehow, such as re-using the same bank account or adress a thousand times.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ynniv on Wednesday November 09, 2022 @08:27AM (#33531269)
Remove $8B worth of carbon from the atmosphere.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by tonmoy on Wednesday November 09, 2022 @08:41AM (#33531423)
That will not be an equal distribution as the rich and the old won’t gain as much benefit as a poor child
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by k_ on Wednesday November 09, 2022 @08:49AM (#33531545)
Now that's the kind of inequality I can live with.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by maccard on Wednesday November 09, 2022 @09:07AM (#33531774)
The same is true of a dollar. If I gave a new born baby a dollar and a person on their deathbed a dollar, the baby will gain much more of a benefit.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Scarblac on Wednesday November 09, 2022 @01:13PM (#33535612)
Also people living in countries where the US dollar is actually used will gain much more of a benefit.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by adwww on Wednesday November 09, 2022 @08:38AM (#33531389)
Planting an $8bn forest would actually be pretty neat.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by buggythebug on Wednesday November 09, 2022 @08:31AM (#33531320)
Give it to me - I'll take care of it.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by distcs on Wednesday November 09, 2022 @08:37AM (#33531379)
Nevermind that this is a very difficult problem to solve but even if it was possible to do this, you should not do it. Many people can accept "free" money due to their immigration status in countries they reside in. If you send money to them and they receive it they could be in violation of their entry permit rules.

So by sending money to everyone in the world you would create problems for a huge population of immigrant workers.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by werber on Wednesday November 09, 2022 @08:37AM (#33531381)
Start walking and handing out larger sums and asking each person to help carry your one dollar idea to reach every person? For a decent amount of countries that would probably be the best method, just walk for the next 40 years
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by aceazzameen on Wednesday November 09, 2022 @08:39AM (#33531397)
It's probably not possible to get everyone a dollar. But maybe add an incentive on top to get local community involvement with assisting you? Create multiple million dollar lottos per region. To enter the lotto, proof of receipt of the dollar is necessary. How that's figured out is another issue. Even with this you still won't reach everyone on Earth. Getting past terrorist leaders, or anyone who doesn't want their people to claim a dollar will be a big hurdle. But adding incentives to accept the dollar might get you the most recipients.

Also once you achieve your goal, global chaos will ensue.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by mesozoic on Wednesday November 09, 2022 @08:40AM (#33531406)
I think technically if you just burn the money the deflationary effect would be equivalent to $1 to everyone and would be the cheapest way to do it.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by pjerem on Wednesday November 09, 2022 @08:54AM (#33531600)
It doesn't works like this. Inflation/deflation is not something tangible. It's something that is computed with arbitrary rules and it have barely no meaning on a worldwide basis.

If you give $1 to everyone on earth, in some countries, you'll pay for an extra topping on your pizza, and in others you'll allow people to eat for one or more days.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by nonrandomstring on Wednesday November 09, 2022 @08:43AM (#33531454)
Do something that increases the absolute wealth of every person on the planet by at least one dollar.

You could invent something.

Perhaps it is just something you say that brings wealth to the world. Ideas can (rarely) have bare value, and can travel around the world in a day.

If you make "improving the lot of every single person by a dollar" the centre of your life philosophy, you'll reap that back many times over.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by shafyy on Wednesday November 09, 2022 @08:43AM (#33531459)
A bit off-topic, but giving everybody one dollar wouldn't change a thing in the world. However, investing that $8bn in a project/org that's effective at improving the world, would change a lot. Not sure where I'm going with this, just an interesting thought..
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by academia_hack on Wednesday November 09, 2022 @08:45AM (#33531494)
100 years ago, you could have just set the money on fire and had a pretty similar net effect (reduce the money supply, increase the value of the remaining money for everyone else). There are some caveats. Money burning benefits aren't distributed evenly - rich people gain more than poor people since they have more of the remaining money. You also have to already have at least some money to benefit from it.

Still, it's possible the low overhead and fraud risks of burning money compared to distributing it might make it a more cost effective way to equitably distribute the $8 billion globally than any other route.

Modern finance is unfortunately more complicated. Burning money doesn't necessarily have any impact on the value of money.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by f_devd on Wednesday November 09, 2022 @04:00PM (#33537752)
If 100 years go, This is probably the most practically doable answer but not one that accomplishes any of the goals. It only benefits pre-existing holders of USD, and this problem exists even in holders of USD. Since USD is not distributed equally among the population, the actual effect would proportional to the existing holdings; most people would effectively receive a lot less than 1$.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by bmdavi3 on Wednesday November 09, 2022 @08:46AM (#33531499)
I'd say destroy your $8b and take it out of the money supply, making everyone else's money slightly more valuable. No overhead.

Except it wouldn't evenly distribute the value and most of it would go to rich people.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Joeboy on Wednesday November 09, 2022 @08:46AM (#33531503)
This sounds like a similar challenge to the one The World Food Programme faces[0]. In their case, they pick from a number of disbursement mechanisms on a case by case basis. Sometimes they physically deliver food or arrange in-kind aid via vouchers, sometimes it's direct bank account or Western Union transfers to individuals.

[0] https://www.wfp.org/cash-transfers

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by academia_hack on Wednesday November 09, 2022 @08:56AM (#33531625)
There might be some distopian way of doing this using biometrics and cryptocurrency. Submit your "human hash" (e.g. some set of cheaply collectable and individually unique biometric signatures) and receive one USDT or similar fixed value digital currency. Then just slowly allow people to register ownership of their dollar as/when they decide to collect it. This only gets to people who can get access to a computer and the crypto-dollar is functionally useless to most of them but it's pretty cheap to distribute. The biometrics bit may also be literally impossible - no idea what the state of the art there is like.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by jimmytucson on Wednesday November 09, 2022 @08:56AM (#33531633)
Another potential problem is people being born or dying after you’re collecting your data and running your job.

#3, that’s a good one. I started a long-running job like this and it failed in the middle after sending money to N people, and Airflow or L1 support just mashed restart. Now the first N people who got a dollar before the job failed each get 2 dollars (or 3 if mash retry again). Now you ran out of money, or you treated the last M people unfairly. (That’s how I learned “idempotent”.)

One solution is to keep a log of the people you sent the money to and do a left outer join with the people_to_send_dollar_to table when the job starts. Then you filter out anybody in the people_we_already_sent_dollar_to table in your query so your job never iterates over them again.

But now it’s worth thinking about if you succeeded sending somebody the dollar but they failed receiving it (it got stolen out of their mailbox or it fell out of the delivery truck). Do we need people to tell us when they received the dollar and resend it periodically until we get the confirmation message? What if we never get the confirmation message? Is this the 2 generals problem? What if some people never confirm so they can keep getting dollars in the mail?

Is the answer cryptocurrency?

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by yodi on Wednesday November 09, 2022 @09:01AM (#33531702)
Global distribution is complex. So there is no easy way to do it. Now, what is the option here? Your assumption, around 6 billion of those humans have a bank account. So, we can leverage the bank network to do the distribution.

There is a chance of the same person opening multiple account. Integrating with one bank at a time will help not to do manual transfer and build a centralized database for verification simultaneously. There is no time limit here, I assume this is fine.

How about the rest, the unbankable? Via country social aid. There is a high correlation that the unbankable is similar to under poverty population. With social aid, it will reach them. Cross-check with the central database for verification.

Now, what if the 1 dollar doesn't need in the form of physical money? There are so many alternatives to this. I said, follow on how people spend money.

You can use it to pay each Taxpayer all countries, pay the debt of each person in the bank, and subsidize commodities that the unbankable population consume: data, rice, bread, electricity, vaccine and others thing that people spend. So, understand how unbankable people spend and receive money.

There is a cost of distribution. My rough intuition is probably around 30-40%, if we are looking for precise in-person equal distribution. Yes, that is really expensive, even more for unbankable, because most of them will receive cash.

Thank you for the question @paulluuk. This is a good brain exercise and seems like consulting interview question for me hahaha

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by maccard on Wednesday November 09, 2022 @09:04AM (#33531737)
I think you're also not asking the question of "how many people are there"? Someone else mentioned North Sentinel Island, which has "between 50 and 100" people, well which is it? Do you send them 50 or 100 dollars?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by AHOHA on Wednesday November 09, 2022 @09:12AM (#33531842)
You definitely needs more than $8 Bil, but I would break it down to

- Create a verification platform tat verify Bio-metrics of the individuals, it can be do with blockchain too. Challenge: A lot will refuse due to concerns of having a db of every..single..person on earth that can be used in a lot of evil ways.

- Create your decentralized currency or use an existing one, you can't easily distribute that money going through the usual banking system with all policies around that, either sanctions to a whole country, or even within the country itself as some individuals have their bank account restricted to start with, so no banks. Challenge: all the challenges that comes with Defi crypto, and the challenges with the the fact that there are people who doesn't even know the crypto exists let alone using it, some don't even have access to technology at all.

- Create a referral-system-like where people are encouraged to bring in there friends, family, others in the villages, etc., that will spread the word faster and more efficient as you only need to convince few and they will be your ambassadors on the ground, but also they might take care of the no-access to tech (or lack of knowledge) with others. This also can be used to have a hybrid system where ambassador1 get paid for X individuals and then they pay in local currencies, need some sort of verification mechanism to ensure they actually get paid too.

I would say personally the biggest challenge is having a system/DB that contains every individual on earth.. that would be nearly impossible, and honestly, I don't think it is even a good idea to start with.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ArtWomb on Wednesday November 09, 2022 @09:40AM (#33532218)
Proof of Humanity, the "third rail" of decentralized fintech innovation

https://www.proofofhumanity.id/

My design is basic: create new crypto account at birth and hash genome as key. Fund it day zero with the total lifetime allocation. In this example $1, but why not $1M hypothetically. Distributions are received as a timely allowance. And the principal can be borrowed against. But not put at any great risk. That's passed on to future generations and the cycle begins anew. ;)

The best solution I saw so far for the actual physical distributing is the bootstrapped peer-to-peer exchange that occurs everyday. Where local people find each other over the internet, meet, and connect their devices and accounts in person to swap digital crypto for paper fiat hand to hand. You can't top it. So how do you build trust in it? Raising the consciousness!

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ludston on Wednesday November 09, 2022 @09:51PM (#33541596)
Steal the key from someone and where does that lead to?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by bananarchist on Thursday November 10, 2022 @10:45AM (#33548113)
> hash genome as key

What about twins? Do they have to share a key?

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by lost_tourist on Wednesday November 09, 2022 @09:59AM (#33532482)
Elon?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by jenscow on Wednesday November 09, 2022 @10:45AM (#33533242)
> I would like to send 1 dollar to every human on Earth

Your task doesn't mention them receiving the dollar...

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by karmakaze on Wednesday November 09, 2022 @12:22PM (#33534807)
Not to seem unempathetic but that seems like a waste of $8B that could be put to some good. For most recipients that $1 will amount to no difference. Interesting as a logistics exercise.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ASalazarMX on Wednesday November 09, 2022 @12:34PM (#33534986)
The most sensible option is offering anyone who gives you not their bank account, but a number like the Mexican CLABE or the European IBAN, which are safe to receive money. This implies that you will need to transfer some of that money to different countries, losing part of it to commissions.

Even you had enough money to cover administrative expenses, people with more than one bank account, or the ability to generate more of these numbers, will get more than one dollar. And don't even think about crypto, that would only add another layer of abstraction to the donation.

As PC says, it's best to direct that money towards maximum impact, than diluting its effect among everyone.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by chaostheory on Wednesday November 09, 2022 @01:15PM (#33535651)
It sounds like a crypto startup problem
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by jareklupinski on Wednesday November 09, 2022 @12:37PM (#33535025)
I would distribute a gadget that is integrated with POS/card-reader terminals, since those are already being sent to stores/businesses that probably have a way to give a dollar to whoever shows up.

Instead of a regular card-reader that scans a card, this scans as many items of personally identifiable material as feasible (at least 10 fingerprints and/or a retinal scan, maybe a pulse check), stores a hash of the above in a central db to prevent abuse, and only authorizes the vendor to dispense a dollar for unique metrics captured. The physical 'dollar' actually comes from the store/business till using the local currency, and the business then invoices you seperately for every dollar they gave out.

The cost of the terminals would probably come from the millions that you wouldn't be able to send a dollar to anyway, like you said terrorism or other concerns.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ALittleLight on Wednesday November 09, 2022 @01:28PM (#33535833)
Though I dislike cryptocurrency, it seems like the most plausible route for this. I would try to use my wealth to setup some NGO that would offer a "Citizen ID" solution to replace something like SSNs with a modern equivalent system using symmetric key cryptography, a yubikey like thing, and biometrics for people who lose their key. Once we get a satisfactory solution designed we start convincing more and governments to use it so we can get every individual human id'd, or, at least, most of them.

Once everyone has a unique ID we create a cryptocurrency stablecoin backed by cash hoard. We create a wallet for every individual person and give them a stablecoin that they can redeem for one dollar. At that point I would consider the challenge more or less complete.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by postalrat on Wednesday November 09, 2022 @01:55PM (#33536220)
Infect everyone with a virus that will kill them in a few years unless they get the vaccine.

Offer to give the vaccine and $1 to anyone who tests negative for previously taking the vaccine.

In a few years everyone on earth will either have the $1 or will be dead.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by IYasha on Friday November 11, 2022 @05:57AM (#33559219)
Horrendously good and working answer... Mr. Gates, pls login.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by wnkrshm on Friday November 11, 2022 @08:52AM (#33560793)
What about people who think it's not real and who will be randomly immune?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by asolanaruiz on Wednesday November 09, 2022 @04:16PM (#33537963)
You find something that everyone uses and you spend the money reducing costs so that people will save a dollar the next time they buy it.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by flyingsky on Wednesday November 09, 2022 @04:19PM (#33537998)
This is very interesting! Might be sorta hard to find sth that everyone pays for that is "subsidisable"
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by 0x0000000 on Wednesday November 09, 2022 @04:57PM (#33538510)
I think it'd still be impossible to ensure -everyone- gets the discount -exactly once-, even if you found that "something."
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by funshed on Wednesday November 09, 2022 @05:37PM (#33539081)
Count down the number of people in each country, send that amount to the government contracted to only be spent only on reducing national debt.

Has same effect? Perhaps greater as not only reducing debt but interest the people's taxes had to fund.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by ReflectedImage on Wednesday November 09, 2022 @06:53PM (#33539982)
Create a new crypocurrency with 8 billion tokens each worth one dollar.

Set up an exchange for 1000 tokens to $1000 dollars.

Set an online identity verification service for issuing a token.

Not all tokens will be exchanged back to real money, which means you have money for the online identity verification service and associated bank fees.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by simne on Wednesday November 09, 2022 @08:31PM (#33540964)
Technically, every person in the world have cellular phone (many people have more than one).

So you just need to rent 8b lines in call centers, and make site with 2fa auth with voice recognition, and call all people at once, so nobody could use 2 phones simultaneous.

Second, in every country now possible to go to nearest bank (may be abroad), and there got their dollar, if tell secret code (there are lot of payment systems working such way, or you could create your own for some territories).

Also or for some cases, you could just send to each verified phone sms with money code, for example some crypto, like btc.

That's all, may be you will spend few b for call centers and for payment systems fees, and to establish your own payment systems for some cases.

Children in most countries are not allowed to deal with strangers, only adults allowed, so you could not send money to children directly.

PS North Korea in reality is proxy country, most their citizens are allowed to go to fulltime work to China.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Markoff on Thursday November 10, 2022 @02:29AM (#33543345)
Create website where people can claim their money for themselves and their kids upon verification, it's much easier than trying to distribute it by yourself.

Though people without internet won't be able to claim their money without help of someone with internet and it will be still PITA to deliver them the money.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by Jasonbe on Thursday November 10, 2022 @04:22AM (#33544080)
Avoid the banks, governments and middlemen and use bitcoin. You'll save a ton of time and money by avoiding transaction fees and bureaucracy. Every person with a cellphone can accept the donation.
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by alxmng on Thursday November 10, 2022 @04:24AM (#33544092)
How would you ensure each person gets the same amount?
Re:Ask HN: How would I send 1 dollar to everyone on Earth? by lucozade on Thursday November 10, 2022 @07:16AM (#33545341)
> Avoid the banks, governments and middlemen and use bitcoin

Somewhat tangential. Some years ago, I was in a meeting where we were trying to solve a really thorny business issue. It was quite a small group but included some of the most knowledgeable people, in the company, on the problem at hand. We couldn't find a solution, even in theory.

As we were breaking up, one of the participants said that, although we hadn't found a solution, it was alright because the new system being built would solve it. The only identifying feature of that system at that time was that it was written in Python. Around the group there were a number of sage nods as they departed the conference room.

Statements like the Bitcoin one, remind me of that meeting. There's pretty much nothing about the nature of Bitcoin that helps this problem. In fact, one of its defining features (pseudo-anonymity) makes it worse than useless at trying to ensure everyone gets their allocation and just their allocation. And yet, with all seriousness, it can be proposed as a "solution". As if it has some kind of magic property that allows it to solve unsolvable problems. Like Python.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by hayst4ck on Thursday November 10, 2022 @04:59AM (#33544384)
Travel to New Dehli and take a car ride around the city imagine what it would take to distribute dollars in a slum. Imagine the emotional turmoil caused by a billionaire tickling themselves by "using" people for an exercise in amusement. It is practically an act of domination.

There aren't just legal barriers, but language barriers and human locating barriers. Imagine trying to get people to distribute dollars which is an action that has no practical purpose other than amusement. How would you motivate people to participate?

There are islands on this planet that have no concept of international law because their inhabitants kill almost anyone that tries to get on their island. AFAIK international law says attempts to communicate with these people are illegal. Furthermore, we don't know what their concept of value is, nor would they have any understanding of what a dollar is. There is no exchange rate. To these people a dollar is a piece of paper.

That ignores that dollar distribution is poorly defined. Old people die and new people are born constantly. This makes the problem poorly defined since the act of sending is not and cannot be instantaneous.

I would take some of that money and travel to get perspective. If you've traveled for understanding rather than self amusement this question is a non starter.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by deserted on Thursday November 10, 2022 @05:01AM (#33544407)
Lobby to pass a law in your country that gives everyone a $1 per person in household tax credit. Agree to fund it.

Use that as an example, get it inserted into the next big trade agreement as a mandatory thing.

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by cnees on Thursday November 10, 2022 @11:45PM (#33557390)
I guess I make a thumbprint database. Anyone who submits a previously unseen thumbprint pair to the database gets a dollar sent to the account they specify. That way, each thumbprint set is effectively worth one dollar, minus the trouble of submitting it.

Aggregators emerge to pay other people a bit less than a dollar for their prints (upon confirmation of uniqueness), and they leech off some of the money, but they distribute a lot of it and reach people and places I couldn't.

Some new problems to solve are 1. Can I avoid hosting and comparing uniqueness of eight billion thumbprint sets? 2. How do I avoid accepting fake, computer-generated thumbprints? 3. Is there a better alternative to thumbprints?

Re:Ask HN: How would I send 1 dollar to everyone on Earth? by memalign on Friday November 11, 2022 @05:11AM (#33558923)
It might also be important to verify that the thumbs are attached to a living body…