XPTransfers

Register a new XP transfer offer

Register a new XP transfer offer for selling XP at a specified price. The offer will be available for other users to claim by providing a valid USDC transfer transaction.

post/xp/offer

Request body

expiry_durationinteger

Duration in seconds until offer expires (minimum 3600 = 1 hour, maximum 86400 = 24 hours)

pricestring

Price in USDC (as string to handle precision)

takerstring

Address of the taker (buyer)

xp_amountinteger

Amount of XP to transfer

Example request

{
  "expiry_duration": 86400,
  "price": "1000",
  "taker": "0x1234567890abcdef",
  "xp_amount": 100
}

Response

Offer registered successfully

Example response

{
  "offer": {
    "claimed_at": 1640995200000000000,
    "created_at": 1640995200000000000,
    "expires_at": 1640995200000000000,
    "id": "offer_123",
    "maker": "0x1234567890abcdef",
    "price": "1000",
    "sequence": 1,
    "taker": "0xfedcba0987654321",
    "tx_hash": "0xabcdef1234567890...",
    "xp_amount": 100
  }
}

Changes