magicblock login
magicblock_loginExchange a signed challenge for a bearer token to access private Solana balances and transfers.
Instructions
Exchange a signed challenge for a bearer token (step 2 of PER auth flow). The token is used for private-balance and private transfers..
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": {
"pubkey": "<pubkey>",
"challenge": "<challenge>",
"signature": "<signature>"
},
"name": "magicblock_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pubkey | Yes | Wallet pubkey that signed the challenge | |
| cluster | No | Cluster: 'mainnet', 'devnet', or custom RPC URL | |
| challenge | Yes | Challenge string from magicblock_challenge | |
| signature | Yes | Wallet signature over the challenge string |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |