qrcoin
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQR Coin Auction
QR Coin 拍卖
Participate in QR Coin auctions on Base blockchain. QR Coin lets you bid to display URLs on QR codes — the highest bidder's URL gets encoded when the auction ends.
参与Base区块链上的QR Coin拍卖。QR Coin允许你出价以在二维码上展示URL;拍卖结束时,出价最高者的URL会被编码到二维码中。
Contracts (Base Mainnet)
合约(Base主网)
| Contract | Address |
|---|---|
| QR Auction | |
| USDC | |
| 合约 | 地址 |
|---|---|
| QR Auction | |
| USDC | |
How It Works
运作机制
- Each auction runs for a fixed period (~24h)
- Bidders submit URLs with USDC (6 decimals — 1 USDC = 1000000 units)
- Creating a new bid costs ~11.11 USDC (createBidReserve)
- Contributing to an existing bid costs ~1.00 USDC (contributeReserve)
- Highest bid wins; winner's URL is encoded in the QR code
- Losers get refunded; winners receive QR tokens
- 每场拍卖持续固定时长(约24小时)
- 出价者使用USDC提交URL(USDC为6位小数——1 USDC = 1000000单位)
- 创建新出价需要约11.11 USDC(createBidReserve)
- 为现有出价追加资金需要约1.00 USDC(contributeReserve)
- 出价最高者获胜;获胜者的URL会被编码到二维码中
- 未获胜者会收到退款;获胜者将获得QR tokens
Auction Status Queries
拍卖状态查询
Note: The examples below use(public RPC). You can substitute your own RPC endpoint if preferred.https://mainnet.base.org
注意:以下示例使用(公共RPC)。你可以根据需要替换为自己的RPC端点。https://mainnet.base.org
Get Current Token ID
获取当前Token ID
Always query this first to get the active auction ID before bidding.
bash
curl -s -X POST https://mainnet.base.org \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0x7d9f6db5"},"latest"],"id":1}' \
| jq -r '.result' | xargs printf "%d\n"在出价前,请务必先查询此接口以获取当前活跃的拍卖ID。
bash
curl -s -X POST https://mainnet.base.org \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0x7d9f6db5"},"latest"],"id":1}' \
| jq -r '.result' | xargs printf "%d\n"Get Auction End Time
获取拍卖结束时间
bash
undefinedbash
undefinedFirst get the current token ID, then use it here
先获取当前Token ID,然后在此处使用
TOKEN_ID=329 # Replace with result from currentTokenId()
TOKEN_ID_HEX=$(printf '%064x' $TOKEN_ID)
curl -s -X POST https://mainnet.base.org
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xa4d0a17e'"$TOKEN_ID_HEX"'"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n"
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xa4d0a17e'"$TOKEN_ID_HEX"'"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n"
undefinedTOKEN_ID=329 # 替换为currentTokenId()的返回结果
TOKEN_ID_HEX=$(printf '%064x' $TOKEN_ID)
curl -s -X POST https://mainnet.base.org
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xa4d0a17e'"$TOKEN_ID_HEX"'"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n"
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xa4d0a17e'"$TOKEN_ID_HEX"'"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n"
undefinedGet Reserve Prices
获取保留价
bash
undefinedbash
undefinedCreate bid reserve (~11.11 USDC)
创建出价的保留价(约11.11 USDC)
curl -s -X POST https://mainnet.base.org
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0x5b3bec22"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0x5b3bec22"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
curl -s -X POST https://mainnet.base.org
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0x5b3bec22"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0x5b3bec22"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
Contribute reserve (~1.00 USDC)
追加出价的保留价(约1.00 USDC)
curl -s -X POST https://mainnet.base.org
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xda5a5cf3"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xda5a5cf3"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
undefinedcurl -s -X POST https://mainnet.base.org
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xda5a5cf3"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
-H "Content-Type: application/json"
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x7309779122069EFa06ef71a45AE0DB55A259A176","data":"0xda5a5cf3"},"latest"],"id":1}'
| jq -r '.result' | xargs printf "%d\n" | awk '{print $1/1000000 " USDC"}'
undefinedTransactions via Bankr
通过Bankr执行交易
QR Coin auctions require USDC transactions on Base. Use Bankr to execute these — Bankr handles:
- Function signature parsing and parameter encoding
- Gas estimation
- Transaction signing and submission
- Confirmation monitoring
QR Coin拍卖需要在Base链上进行USDC交易。你可以使用Bankr来执行这些操作——Bankr会处理:
- 函数签名解析与参数编码
- Gas费用估算
- 交易签名与提交
- 确认监控
Step 1: Approve USDC (One-Time)
步骤1:授权USDC(仅需一次)
Before bidding, approve the auction contract to spend USDC:
Approve 50 USDC to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base在出价前,授权拍卖合约使用你的USDC:
Approve 50 USDC to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on BaseStep 2: Create a New Bid
步骤2:创建新出价
To start a new bid for your URL:
Function:
Contract:
Cost: ~11.11 USDC
createBid(uint256 tokenId, string url, string name)0x7309779122069EFa06ef71a45AE0DB55A259A176Important: Always queryfirst to get the active auction ID.currentTokenId()
Example prompt for Bankr:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling createBid(329, "https://example.com", "MyName")为你的URL创建新出价:
函数:
合约:
成本:约11.11 USDC
createBid(uint256 tokenId, string url, string name)0x7309779122069EFa06ef71a45AE0DB55A259A176重要提示:请务必先查询以获取当前活跃的拍卖ID。currentTokenId()
Bankr示例指令:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling createBid(329, "https://example.com", "MyName")Step 3: Contribute to Existing Bid
步骤3:为现有出价追加资金
To add funds to an existing URL's bid:
Function:
Contract:
Cost: ~1.00 USDC per contribution
contributeToBid(uint256 tokenId, string url, string name)0x7309779122069EFa06ef71a45AE0DB55A259A176Example prompt for Bankr:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling contributeToBid(329, "https://grokipedia.com/page/debtreliefbot", "MerkleMoltBot")为已有的URL出价追加资金:
函数:
合约:
成本:每次追加约1.00 USDC
contributeToBid(uint256 tokenId, string url, string name)0x7309779122069EFa06ef71a45AE0DB55A259A176Bankr示例指令:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling contributeToBid(329, "https://grokipedia.com/page/debtreliefbot", "MerkleMoltBot")Function Selectors
函数选择器
| Function | Selector | Parameters |
|---|---|---|
| | — |
| | tokenId |
| | — |
| | — |
| | tokenId, url, name |
| | tokenId, url, name |
| | spender, amount |
| 函数 | 选择器 | 参数 |
|---|---|---|
| | — |
| | tokenId |
| | — |
| | — |
| | tokenId, url, name |
| | tokenId, url, name |
| | spender, amount |
Error Codes
错误码
| Error | Meaning | Solution |
|---|---|---|
| Bid amount below minimum | Check reserve prices |
| URL already has a bid | Use |
| URL doesn't have existing bid | Use |
| Current auction has ended | Wait for next auction |
| Auction hasn't begun | Wait for auction to start |
| USDC not approved | Approve USDC first |
| 错误码 | 含义 | 解决方案 |
|---|---|---|
| 出价金额低于最低要求 | 查看保留价 |
| 该URL已有出价 | 改用 |
| 该URL没有现有出价 | 改用 |
| 当前拍卖已结束 | 等待下一场拍卖 |
| 拍卖尚未开始 | 等待拍卖启动 |
| USDC未授权 | 先完成USDC授权 |
Typical Workflow
典型流程
- Query — Get the active auction ID
currentTokenId() - Check auction status — Verify time remaining
- Approve USDC — One-time approval for the auction contract
- Decide action:
- New URL: Use (~11.11 USDC)
createBid - Support existing URL: Use (~1.00 USDC)
contributeToBid
- New URL: Use
- Monitor — Watch for outbids and contribute more if needed
- Claim — Winners receive QR tokens; losers get refunds
- 查询— 获取当前活跃的拍卖ID
currentTokenId() - 检查拍卖状态 — 验证剩余时间
- 授权USDC — 为拍卖合约完成一次性授权
- 选择操作:
- 新URL:使用(约11.11 USDC)
createBid - 支持已有URL:使用(约1.00 USDC)
contributeToBid
- 新URL:使用
- 监控拍卖 — 留意是否被反超,必要时追加资金
- 领取结果 — 获胜者获得QR tokens;未获胜者收到退款
Links
相关链接
- Platform: https://qrcoin.fun
- Auction Contract: BaseScan
- USDC on Base: BaseScan
- 平台:https://qrcoin.fun
- 拍卖合约:BaseScan
- Base上的USDC:BaseScan
Tips
小贴士
- Start small: Contribute to existing bids (~1 USDC) to learn the flow
- Check timing: Auctions have fixed end times; plan accordingly
- Monitor bids: Others can outbid you; watch the auction
- Use Bankr: Let Bankr handle transaction signing and execution
- Specify Base: Always include "on Base" when using Bankr
💡 Pro Tip: Contributing to an existing bid is cheaper than creating a new one. Check if someone already bid for your URL before creating a new bid.
- 从小额开始:先通过为现有出价追加资金(约1 USDC)来熟悉流程
- 注意时间:拍卖有固定结束时间,请合理规划
- 监控出价:其他用户可能会反超你的出价,请留意拍卖动态
- 使用Bankr:让Bankr处理交易签名与执行
- 指定Base:使用Bankr时请务必加上“on Base”
💡 专业提示:为现有出价追加资金比创建新出价成本更低。在创建新出价前,请先检查是否已有用户为你的URL出价。