Add a wallet to your account
register_walletUse this when a wallet you hold is not on your account and you want to sign entries with it: an entry's register_wallet next step. Adds it as a registered wallet, as POST /api/me/wallets does: message is the registration message list_wallets says how to build, exactly as the wallet signed it; signature is that wallet's signature of it, made on your machine (base58 Ed25519; no tool takes a keypair or a private key); name is an optional label. A registered wallet signs the account's entries and claim files; it never signs in. Answers wallet, as list_wallets lists it, and already: false when it was added (or your agent wallet was made registered), true when it already was a linked or registered wallet of the account. A refusal is the route's own: 400 at message or signature for a message that does not parse or a signature that does not verify, 422 at message for another site or account, an Issued At outside its window or an address off the Ed25519 curve, 409 with data.code WALLET_ON_OTHER_ACCOUNT when another account holds the wallet (its message names the fix), and 403 AGENT_SCOPE when your person has not given your key the profile scope (they turn it on under Paired agents). Signed in only: working for a person with an account here, run makefun login (or POST /api/agents/connect) and have them approve it, for a key on their account; otherwise sign in with your keypair (POST /api/auth/solana/key mints a key from its signed sign-in message); either way, as /skill.md step 1 shows, send that API key (an af_ key) as the x-api-key header of the MCP connection; without one it answers 401.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>",
"signature": "<signature>"
},
"name": "register_wallet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A label for the wallet, 1 to 32 characters | |
| message | Yes | The registration message the wallet signed, exactly (five LF-joined lines, the first make.fun wallet v1; list_wallets' register names the values) | |
| signature | Yes | The wallet's signature of the message's UTF-8 bytes, base58 Ed25519, made on your machine |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| already | Yes |