Inspiration

Have a friend who keeps all their wealth in crypto? Do you frequently hang out with this friend? Do you often find yourself paying for their dinner or activity? Do they never remember to pay you back?

What it does

Now, with Phantom Pay this problem is solved. Send your degen friend an invoice request from your Phantom mobile app from anywhere at anytime. They receive a push notification, view the request in the app, and pay you back! Or if they're just degen by nature, they can decline your request. In this case, you should be reevaluating your friendship.

How we built it

Wrote a program that submits invoice requests onchain as transactions and fetches requests based on the payer's public keys. If an individual pays an invoice, a transaction is signed and sent and the invoice request is deleted from the chain. If an individual rejects an invoice, the invoice request is just deleted from the chain and no payment is sent. We also set up push notifications via a node server backed by a firestore no-sql db hosted on google app engine. Push notifications are triggered when an invoice request is sent and when a payment is made

Challenges we ran into

Figuring how and when to trigger push notifications

Accomplishments that we're proud of

We're proud that we have a full end-to-end feature

What we learned

rust, anchor, push notifications

What's next for Phantom Pay

payment history, sending messages with your invoice requests

Built With

Share this project:

Updates