Century Pay

A discord bot to let users pay in discord! The bot will let users sign transactions with their wallets and send transaction.

Superhack 2024Shipped August 2, 2024Prize winner#payments#privacy#nft#dao#infra#base
Visit Repo
Century Pay banner

About

# Introduction

Century Pay is a **Discord bot** designed to simplify on-chain payments. Users can effortlessly connect their wallets and perform transactions using simple Discord commands. Whether it's sending ETH, accessing a faucet, or staking ETH for the ETHGlobal hackathon, Century Pay streamlines the process.

Thanks to the integration with **AA wallets**, on-chain interactions have never been easier. Users can sign in securely with a passkey, and their gas fees will be covered by a paymaster. When interactions require sending values—such as voting or minting NFTs—the bot provides clear guidance to help users navigate smart contract interactions seamlessly! ## Features

## `/connect`

- Description: It let a user to connect to a wallet, and the bot will save the user's address in database (for the future usage). ![connect](https://github.com/chengggkk/century-pay/blob/master/assets/cp-connect.gif?raw=true)

## `/check`

- Description: It let a user to check which wallet he/she is connecting to. It outputs an Ethereum address. ![check](https://github.com/chengggkk/century-pay/blob/master/assets/cp-check.gif?raw=true)

## `/send`

- Description: It lets the sender to specify the receiver's address and how much will be sent - Inputs - `amount`: `string` - parse ETH in string - e.g. `0.001` means 0.001 ETH - `to_address`: `string` - Either an Ethereum account or tag a user - e.g. `0x123...` or `@vivi432` - After a transaction is sent, it notifies both sender and receiver with a private chat message. ![send](https://github.com/chengggkk/century-pay/blob/master/assets/cp-send.gif?raw=true)

## `/faucet`

- Description: It automatically sends some ETH (0.001 ETH) to the user's wallet if the user has connected to an address. - Options: `Sepolia`, `OptimismSepolia`, `BaseSepolia` ![faucet](https://github.com/chengggkk/century-pay/blob/master/assets/cp-faucet.gif?raw=true)

## `/createVote`

  • Description: It enables each user to create a vote session and everyone can join the vote by an AA wallet.
  • Inputs

- `topic`: `string`

- The topic to be voted for - `option1`,...,`option10`: `string` - The candidates of the vote - min: 2, max: 10

![create](https://github.com/chengggkk/century-pay/blob/master/assets/cp-create.gif?raw=true)

## `/vote`

  • Description: It allows users to find which vote session is happening, and users can vote for the specified session. After users choose an option, the bot redirects users to confirm the vote with an AA wallet.
  • Selectors

- `topic`

- The topic of the vote - `option` - The option of the vote

![vote](https://github.com/chengggkk/century-pay/blob/master/assets/cp-vote.gif?raw=true)

## `/tally`

- Description: Users can close the vote session with the tally command. It also redirects the user to connect an AA account to confirm the transaction. ![tally](https://github.com/chengggkk/century-pay/blob/master/assets/cp-tally.gif?raw=true)

## `/result`

- Description: Users can view the result of every finished vote session. - Selectors - `topic` - The topic of the vote ![result](https://github.com/chengggkk/century-pay/blob/master/assets/cp-result.gif?raw=true)

# Authentication

The wallet authentication should be connected through an embedd frontend framework. Here is an example of using **Alchemy Embedded Account** through **Passkey** authentication.

![auth](https://github.com/chengggkk/century-pay/blob/master/assets/cp-auth.gif?raw=true)

How it's made

1. [Alchemy Embedded Accounts](https://aa-sdk-site-alpha.vercel.app/react/quickstart): Alchemy provides AA accounts infrastructure and its gas master. It allows users to send transaction without having ETH at first. 2. [Base smart wallet](https://www.coinbase.com/wallet/smart-wallet): It is one of the AA accounts infrastructure. It allows users to create an smart wallet easily. 3. [WalletConnect](https://walletconnect.com/): We use the wallet connect frontend components to let users connect their own wallets. It supports many networks and many wallets. 4. [Blockscout](https://www.blockscout.com/): Blockscout makes users' transactions more visible and clear in this app and it supports multiple chains. 5. [Discord bot](https://discord.com/developers/docs/intro): The discord bot is used to handle the requests and send responses to users. 6. [Mongodb](https://www.mongodb.com/): It handles user's data and connect the discord bot and the Century Pay website.

Prizes

  • Blockscout · Use Blockscout Block Explorer! · Use Blockscout Block Explorer!
  • Mode · Best UX/UI in DeFi · Best UX/UI in DeFi
  • Base · Best apps built for payments on Base · Best apps built for payments on Base
  • ETHGlobal · ETHGlobal · 🏆 Superhack 2024 Finalist

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Century Pay 2025

An AI-powered Discord bot that seamlessly executes on-chain transactions and automates off-chain actions—all within your server. 🚀

Phoenix Pay

Phoenix Pay Bot is a Telegram bot designed to simplify multi-chain cryptocurrency payments and split expenses.

EZ-Pay

A crypto wallet app for seamless transactions and payments via links or QR codes, offering quick, secure transfers with just a few clicks for both personal and business use.