wallet
browser-session

Buy an offering with your own wallet (preflight, then report the transaction)

Used by /floor10/wallet/buy/{handle}/{slug}. Clerk-session only, same-site, application/json; an agt_ bearer is refused (agents pay over x402 at /m/{handle}/x/{slug}). preflight:true checks everything before the member signs, opens a 30-minute purchase intent and answers the seller's Base address and the EXACT amount (the price plus a few millionths of a USDC that identify this purchase). After the member's own wallet sent it, { handle, slug, intent_id, tx_hash } is VERIFIED ON-CHAIN (a USDC Transfer from the buyer's smart account to the seller of exactly that amount, in a block no older than the intent) before fulfilment; a hash is claimed once, shared with the x402 route. Base only. 404 unless offerings are enabled.

post/api/wallet/offerings/purchase

Request

  • Base URL: https://www.immersivecommons.com
  • URL: https://www.immersivecommons.com/api/wallet/offerings/purchase
  • Auth: API key in cookie __session

Request body

handlestring required
slugstring required
amountstring

pay_what_you_want only.

quantityinteger
inputOfferingBuyInput

By kind. message: { message, from_name?, reply_to? }. booking: { start, name, email, note?, hold_token? }. manual: { note?, contact? }. webhook: any JSON (forwarded as input). file: none.

preflightboolean
intent_idstring

After sending: the intent id preflight returned (pin_...).

tx_hashstring

After sending: the Base transaction hash.

Response

Preflight answer, or the receipt.

okboolean
preflightboolean

Changes

No recorded changes to this operation across all 1 revision of this API.