Set a Degen Games display name or X handle
base167_set_display_nameSet the display name or X handle shown next to a wallet on the boards.
This is the one action that needs a signature FROM THE USER'S OWN WALLET, so it runs in two steps:
Call with address and name (or handle) and NO signature. The tool returns the exact message to sign and the expiry it was built with.
Have the user sign that message byte for byte, then call again with the signature and the SAME expiry.
The message must match exactly or the answer is 401. Both plain wallets and smart contract wallets are accepted.
Set EXACTLY ONE of name or handle per call -- they are separate actions on separate routes, signed with deliberately different message prefixes so a signature captured for one can never be replayed as the other. Passing both is refused rather than guessed at. The expiry from step 1 is valid for at most 900 seconds; an open-ended one is rejected, not ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name, up to 24 printable ASCII characters. Mutually exclusive with handle. | |
| expiry | No | The expiry returned by step 1, echoed back unchanged. Omit on step 1. At most 900 seconds ahead of now -- a longer window is rejected, not clamped. | |
| handle | No | X handle without the @, up to 15 characters. Mutually exclusive with name. | |
| address | Yes | An Ethereum address on Base mainnet, 0x followed by 40 hex characters. | |
| signature | No | The signature over the returned message. Omit on step 1. |