qrcoin by bankrbot/clawdbot-skill
npx skills add https://github.com/bankrbot/clawdbot-skill --skill qrcoin参与 QR Coin 在 Base 区块链上的拍卖。QR Coin 允许您竞标在二维码上显示 URL——当拍卖结束时,出价最高者的 URL 将被编码到二维码中。
| 合约 | 地址 |
|---|---|
| QR 拍卖合约 | 0x7309779122069EFa06ef71a45AE0DB55A259A176 |
| USDC | 0x833589fCD6eDb6E08f4c7c32D4f71b54bdA02913 |
注意:以下示例使用
https://mainnet.base.org(公共 RPC)。您可以根据需要替换为您自己的 RPC 端点。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在出价前,请务必先查询此信息以获取活跃的拍卖 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":"0x7d9f6db5"},"latest"],"id":1}' \
| jq -r '.result' | xargs printf "%d\n"
# 首先获取当前代币 ID,然后在此处使用
TOKEN_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"
# 创建出价保留金(约 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"}'
# 追加资金保留金(约 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"}'
QR Coin 拍卖需要在 Base 上进行 USDC 交易。使用 Bankr 来执行这些操作——Bankr 处理:
在出价前,批准拍卖合约可以花费 USDC:
Approve 50 USDC to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
为您的 URL 创建新出价:
函数 : createBid(uint256 tokenId, string url, string name) 合约 : 0x7309779122069EFa06ef71a45AE0DB55A259A176 成本 : 约 11.11 USDC
重要:务必先查询
currentTokenId()以获取活跃的拍卖 ID。
Bankr 的示例提示:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling createBid(329, "https://example.com", "MyName")
为现有 URL 的出价追加资金:
函数 : contributeToBid(uint256 tokenId, string url, string name) 合约 : 0x7309779122069EFa06ef71a45AE0DB55A259A176 成本 : 每次追加约 1.00 USDC
Bankr 的示例提示:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling contributeToBid(329, "https://grokipedia.com/page/debtreliefbot", "MerkleMoltBot")
| 函数 | 选择器 | 参数 |
|---|---|---|
currentTokenId() | 0x7d9f6db5 | — |
auctionEndTime(uint256) | 0xa4d0a17e | tokenId |
createBidReserve() | 0x5b3bec22 | — |
contributeReserve() | 0xda5a5cf3 | — |
createBid(uint256,string,string) | 0xf7842286 | tokenId, url, name |
contributeToBid(uint256,string,string) | 0x7ce28d02 | tokenId, url, name |
approve(address,uint256) | 0x095ea7b3 | spender, amount |
| 错误 | 含义 | 解决方案 |
|---|---|---|
RESERVE_PRICE_NOT_MET | 出价金额低于最低要求 | 检查保留价格 |
URL_ALREADY_HAS_BID | URL 已有出价 | 改用 contributeToBid |
BID_NOT_FOUND | URL 没有现有出价 | 改用 createBid |
AUCTION_OVER | 当前拍卖已结束 | 等待下一场拍卖 |
AUCTION_NOT_STARTED | 拍卖尚未开始 | 等待拍卖开始 |
INSUFFICIENT_ALLOWANCE | USDC 未获批准 | 先批准 USDC |
currentTokenId() — 获取活跃的拍卖 IDcreateBid(约 11.11 USDC)contributeToBid(约 1.00 USDC)💡 专业提示 : 为现有出价追加资金比创建新出价更便宜。在创建新出价前,请检查是否已有人为您的 URL 出价。
每周安装数
1
代码仓库
GitHub 星标数
984
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
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.
| Contract | Address |
|---|---|
| QR Auction | 0x7309779122069EFa06ef71a45AE0DB55A259A176 |
| USDC | 0x833589fCD6eDb6E08f4c7c32D4f71b54bdA02913 |
Note : The examples below use
https://mainnet.base.org(public RPC). You can substitute your own RPC endpoint if preferred.
Always query this first to get the active auction ID before bidding.
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"
# First get the current token ID, then use it here
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"
# Create bid reserve (~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"}'
# Contribute reserve (~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"}'
QR Coin auctions require USDC transactions on Base. Use Bankr to execute these — Bankr handles:
Before bidding, approve the auction contract to spend USDC:
Approve 50 USDC to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
To start a new bid for your URL:
Function : createBid(uint256 tokenId, string url, string name) Contract : 0x7309779122069EFa06ef71a45AE0DB55A259A176 Cost : ~11.11 USDC
Important : Always query
currentTokenId()first to get the active auction ID.
Example prompt for Bankr:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling createBid(329, "https://example.com", "MyName")
To add funds to an existing URL's bid:
Function : contributeToBid(uint256 tokenId, string url, string name) Contract : 0x7309779122069EFa06ef71a45AE0DB55A259A176 Cost : ~1.00 USDC per contribution
Example prompt for Bankr:
Send transaction to 0x7309779122069EFa06ef71a45AE0DB55A259A176 on Base
calling contributeToBid(329, "https://grokipedia.com/page/debtreliefbot", "MerkleMoltBot")
| Function | Selector | Parameters |
|---|---|---|
currentTokenId() | 0x7d9f6db5 | — |
auctionEndTime(uint256) | 0xa4d0a17e | tokenId |
createBidReserve() | 0x5b3bec22 | — |
contributeReserve() |
| Error | Meaning | Solution |
|---|---|---|
RESERVE_PRICE_NOT_MET | Bid amount below minimum | Check reserve prices |
URL_ALREADY_HAS_BID | URL already has a bid | Use contributeToBid instead |
BID_NOT_FOUND | URL doesn't have existing bid | Use createBid instead |
AUCTION_OVER | Current auction has ended |
currentTokenId() — Get the active auction IDcreateBid (~11.11 USDC)contributeToBid (~1.00 USDC)💡 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.
Weekly Installs
1
Repository
GitHub Stars
984
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
营销心理学与心智模型应用指南 | 提升营销决策与客户行为理解
39,800 周安装
0xda5a5cf3 |
| — |
createBid(uint256,string,string) | 0xf7842286 | tokenId, url, name |
contributeToBid(uint256,string,string) | 0x7ce28d02 | tokenId, url, name |
approve(address,uint256) | 0x095ea7b3 | spender, amount |
| Wait for next auction |
AUCTION_NOT_STARTED | Auction hasn't begun | Wait for auction to start |
INSUFFICIENT_ALLOWANCE | USDC not approved | Approve USDC first |