BuckMe

Developers

Take BUCK payments and sign people in with the BuckMe app. One script tag, no API keys, no account.

Take payments

Drop in the button with your address and a price. On a computer it shows a QR code for the BuckMe app; on a phone it opens the app. It fires paid once the transfer is on Buckme Chain.

<script src="https://getbuck.me/sdk/buckme-pay.js" defer></script>

<buckme-pay-button
  to="0xYourAddress"
  amount="5"
  memo="order-1042"
  return-url="https://shop.example.com/orders/1042"
></buckme-pay-button>

<script>
  document.querySelector('buckme-pay-button').addEventListener('paid', (event) => {
    const { orderId, tx } = event.detail
    // Ask your server to check the payment (see below) before you ship anything.
    fetch(`/api/orders/${orderId}/check`, { method: 'POST' })
  })
</script>
AttributeWhat it does
toYour address, or your @name.
amountPrice in BUCK, such as 5 or 0.25.
memoYour order id, up to 120 characters. Left out, the button makes a fresh one per click.
return-urlOptional https page the app opens after paying on a phone.
timeout-msHow long to wait for the payment. Default 15 minutes.
Eventevent.detail
payment{ orderId, deepLink } as the sheet opens. Store the order id.
paid{ orderId, tx }, where tx has hash, from, value (wei) and blockNumber.
cancel{ orderId } when the buyer closes the sheet.
error{ error } for bad attributes or a timeout.

Your own checkout UI

The same pieces without the button, as an ES module:

import { createPayment, waitForPayment } from 'https://getbuck.me/sdk/buckme-pay.mjs'

const payment = createPayment({ to: '0xYourAddress', amount: '5' })
// payment.orderId  → a fresh memo like "bm-7k2q9x4m1c8r"; save it with the order
// payment.qrSvg    → show on desktop
// payment.deepLink → open on a phone

const tx = await waitForPayment({
  to: '0xYourAddress',
  memo: payment.orderId,
  minAmount: '5',
  timeoutMs: 10 * 60 * 1000,
})
console.log('paid in', tx.hash)
buckme://pay?to=0xYourAddress&amount=5&memo=order-1042&returnUrl=https%3A%2F%2Fshop.example.com%2Fdone&chainId=31337420
ParamValue
toA 0x address or an @name.
amountDecimal BUCK. The buyer can't change it.
memoUp to 120 characters, written on chain with the transfer. Put your order id here.
returnUrlOptional. Must be https:// (http://localhost works while you develop). The app shows its host before the buyer pays.
chainId31337420

Percent-encode every value. After the transfer is confirmed, the app opens returnUrl with the result appended:

https://shop.example.com/done?buckme_status=success&buckme_tx=0x9f2c…
https://shop.example.com/done?buckme_status=cancelled

On a computer, show the same link as a QR code; you don't need returnUrl there.

Check a payment on your server

Never ship because of buckme_status=success. Anyone can type that URL.

  • Look the transfer up on Buckme Chain: incoming, your memo, at least your price.
  • Use a fresh order id for every checkout, so an old payment can't match a new order.
  • Store the transaction hash with a unique constraint, so one transfer pays for one order.
// Runs anywhere with fetch: Node 18+, Deno, Bun, Cloudflare Workers.
const RPC = 'https://rpc.getbuck.me'

export async function findPayment({ merchant, orderId, minWei }) {
  const res = await fetch(RPC, {
    method: 'POST',
    headers: { 'content-type': 'application/json' },
    body: JSON.stringify({
      jsonrpc: '2.0',
      id: 1,
      method: 'buckme_getActivity',
      params: [merchant, { limit: 100 }],
    }),
  })
  const { result } = await res.json()
  return (
    result.items.find(
      (item) =>
        item.kind === 'transfer' &&
        item.direction === 'in' &&
        item.memo === orderId &&
        BigInt(item.value) >= minWei,
    ) ?? null
  )
}

const tx = await findPayment({ merchant: '0xYourAddress', orderId: 'order-1042', minWei: 5n * 10n ** 18n })
if (tx) await markOrderPaid('order-1042', tx.hash) // keep tx.hash unique in your database

Transfers are final as soon as they appear: Buckme Chain puts each one in its own block, and blocks never reorganise. The browser SDK's waitForPayment runs the same check.

Sign in with BuckMe

Let people prove they own a BuckMe address without a password. It's Sign-In with Ethereum (EIP-4361) on Chain ID 31337420.

  1. signIn() writes a sign-in message for your domain and opens a session on the getbuck.me relay.
  2. The user scans the QR code, or taps Open BuckMe on a phone. The app shows your domain and signs the message.
  3. The signature comes back through the relay. The SDK checks it in the browser; your server checks it again before trusting it.
import { signIn } from 'https://getbuck.me/sdk/buckme-pay.mjs'

// A nonce from your server, so it can tell this attempt from a replayed one.
const { nonce } = await fetch('/auth/nonce').then((r) => r.json())

const { address, message, signature } = await signIn({
  statement: 'Sign in to Sticker Shop',
  nonce,
})

await fetch('/auth/verify', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ message, signature }),
})

signIn resolves with { address, message, signature, name }, where name is the user's @name if they have one. It rejects with code ABORTED when the user closes the sheet and EXPIRED after 10 minutes.

Verify on your server

import { verifyMessage } from 'viem'
import { parseSiweMessage } from 'viem/siwe'

export async function verifyBuckmeSignIn({ message, signature }, { domain, nonce }) {
  const siwe = parseSiweMessage(message)
  if (siwe.domain !== domain) throw new Error('signed for another site')
  if (siwe.nonce !== nonce) throw new Error('unknown nonce') // issue it yourself, accept it once
  if (siwe.chainId !== 31337420) throw new Error('wrong chain')
  if (!siwe.expirationTime || siwe.expirationTime <= new Date()) throw new Error('expired')

  // Every Buckme account is a plain key pair, so this needs no RPC call.
  const valid = await verifyMessage({ address: siwe.address, message, signature })
  if (!valid) throw new Error('bad signature')
  return siwe.address
}

The relay carries the signature; it doesn't vouch for it. Check the domain and your nonce every time, and accept each nonce once.

Relay API

For wallets and custom sign-in screens. CORS is open; the deep link is buckme://sign?session=<id>&relay=https://getbuck.me.

POST /api/sessions          { "message": "<SIWE message>" }        → 201 { "id", "expiresAt" }
GET  /api/sessions/:id                                             → { "message", "origin", "status", "expiresAt", "address"?, "signature"? }
POST /api/sessions/:id      { "address": "0x…", "signature": "0x…" } → { "status": "signed" }
  • The Origin of the first request must match the message's domain and URI.
  • The message's address line holds 0x000…000 until someone signs. The signer writes its own checksummed address there and signs that text; it's the only change allowed.
  • A session takes one signature, within 10 minutes. Later attempts get 409 or 410.
  • Each IP can open 30 sessions and post 30 signatures per 10 minutes.
shop.example.com wants you to sign in with your Ethereum account:
0x0000000000000000000000000000000000000000

Sign in to Sticker Shop

URI: https://shop.example.com
Version: 1
Chain ID: 31337420
Nonce: 6Fq2x9TbLr0wVn8K
Issued At: 2026-12-01T10:00:00.000Z
Expiration Time: 2026-12-01T10:10:00.000Z

Add Buckme Chain to MetaMask or Rabby

Use the button, or add a custom network with these values.

Network name
Buckme Chain
RPC URL
https://rpc.getbuck.me
Chain ID
31337420 (0x1de2bcc)
Currency
BUCK, 18 decimals

Buckme Chain has no block explorer and no contracts. Wallets can send, receive and sign; token lists and dapps that call contracts won't find anything.

viem

import { createPublicClient, createWalletClient, defineChain, http, parseEther, stringToHex } from 'viem'
import { privateKeyToAccount } from 'viem/accounts'

export const buckme = defineChain({
  id: 31337420,
  name: 'Buckme Chain',
  nativeCurrency: { name: 'Buck', symbol: 'BUCK', decimals: 18 },
  rpcUrls: { default: { http: ['https://rpc.getbuck.me'] } },
  testnet: true,
})

const client = createPublicClient({ chain: buckme, transport: http() })
const balance = await client.getBalance({ address: '0xYourAddress' })

// A payment with a memo: the memo travels as UTF-8 calldata.
const wallet = createWalletClient({ chain: buckme, transport: http(), account: privateKeyToAccount(process.env.KEY) })
const hash = await wallet.sendTransaction({
  to: '0xMerchantAddress',
  value: parseEther('5'),
  data: stringToHex('order-1042'),
})

Every transfer costs 0.000021 BUCK (21,000 gas at a fixed 1 gwei, burned). Get test BUCK from buckme_faucet.

RPC methods

JSON-RPC 2.0 over POST https://rpc.getbuck.me, single or batched. CORS is open.

Buckme extras

MethodReturns
buckme_getActivity(address, { limit?, cursor? })History, newest first: { items, nextCursor }. Each item has hash, kind, direction, from, to, value, fee, memo, blockNumber and timestamp. limit is 1–100, default 25.
buckme_faucet(address)100 BUCK, once per address per day. Error -32005 with data.retryAfter in seconds when used up.
buckme_info()Chain, currency, fee and faucet settings.
buckme_getProfile(address)The profile of an in-game character's account, or null.
buckme_getProfiles()All character profiles.

Arriving with usernames, Family Savings and check-in

MethodReturns
buckme_resolveName(name)The address behind an @name, or null.
buckme_lookupAddress(address)The address's name, or null.
buckme_namePrice(name){ available, priceWei, reason? }
buckme_getSavings(address)Family Savings positions and totals.
buckme_getCheckIn(address)Daily check-in streak and today's reward.

Standard methods

BehaviourMethods
As on Ethereumeth_chainId, net_version, eth_blockNumber, eth_getBalance, eth_getTransactionCount, eth_gasPrice, eth_maxPriorityFeePerGas, eth_feeHistory, eth_estimateGas, eth_sendRawTransaction, eth_getTransactionByHash, eth_getTransactionReceipt, eth_getBlockByNumber, eth_getBlockByHash, web3_clientVersion
Always emptyeth_call and eth_getCode return 0x; eth_getLogs returns []. There are no contracts.
Latest state onlyBalance and nonce reads for an older block return -32000.
Not availableeth_sendTransaction, eth_sign, personal_*: sign on the client. Filters and subscriptions: poll instead.