/mirra:cryptofrom mirra
Monitors cryptocurrency prices and sends tokens via Mirra API. Covers getPrice, sendToken, monitorPrice, and other REST operations.
Ships in mirra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cryptocurrency price monitoring and token transfers
You need the user's API key. Ask for these if not provided:
API_KEY: Mirra API key (generated in Mirra app > Settings > API Keys)API_URL: Defaults to https://api.fxn.world (only ask if they mention a custom server)All operations use a single POST endpoint with the resource ID and method in the body:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{
"resourceId": "crypto",
"method": "{operation}",
"params": { ...args }
}' | jq .
Replace {operation} with the operation name from the table below.
Legacy alternative:
POST ${API_URL}/api/sdk/v1/crypto/{operation}with args as the request body also works but is not recommended for new integrations.
| Operation | Description |
|---|---|
getPrice | Get the current price of a crypto asset. Returns normalized flat structure. IMPORTANT: Not all to... |
sendToken | Send cryptocurrency or tokens (creates pending transaction for signing). Returns normalized flat ... |
monitorPrice | Set up automated price monitoring with progressive alerts. Returns normalized flat structure. |
listSubscriptions | List all active crypto price monitoring assignments. Returns normalized flat structures. |
unsubscribeAsset | Stop monitoring a crypto asset. Returns normalized flat structure. |
refreshTransaction | Refresh an expired transaction with new blockhash and updated details. Returns normalized flat st... |
getPriceGet the current price of a crypto asset. Returns normalized flat structure. IMPORTANT: Not all tokens are supported by the pricing service. Before using this operation in a Flow or automation, always make a test call first to verify the token is supported. If the call fails with "not supported", do NOT create the Flow — inform the user that price tracking is not available for that token.
Arguments:
tokenAddress (string, required): Token contract address (EVM: 0x..., SVM: base58)chainName (string, optional): Specific chain name (auto-detected if not provided)Returns:
AdapterOperationResult: Returns FLAT structure with: tokenAddress, chain, chainName, priceUsd, timestamp (ISO 8601), block, source. No nested objects.
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"crypto","method":"getPrice","params":{"tokenAddress":"<value>"}}' | jq .
sendTokenSend cryptocurrency or tokens (creates pending transaction for signing). Returns normalized flat structure.
Arguments:
recipient (string, required): Contact username, user ID, or Solana wallet addresstoken (string, required): Token symbol (SOL, USDC), name, or mint addressamount (number, required): Amount to send (in UI units)Returns:
AdapterOperationResult: Returns FLAT structure with: type, transferId, transaction (base64), signerWallet, tokenMint, tokenSymbol, tokenName, tokenDecimals, amount, recipientAddress, recipientDisplayName, isContact, estimatedFee, senderAddress, expiresAt (ISO 8601). No nested objects.
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"crypto","method":"sendToken","params":{"recipient":"<value>","token":"<value>","amount":10}}' | jq .
Warning: This is a destructive operation. Confirm with the user before executing.
monitorPriceSet up automated price monitoring with progressive alerts. Returns normalized flat structure.
Arguments:
tokenAddress (string, required): Token contract address to monitordirection (string, required): Alert direction: "above" or "below"targetPrice (number, required): Target price in USD to trigger alertscriptId (string, required): ID of the script to execute when price target is reachedchainName (string, optional): Chain name (auto-detected if not provided)percentStep (number, optional): Progressive alert step percentage (default: 0.1 = 10%)Returns:
AdapterOperationResult: Returns FLAT structure with: flowId, tokenAddress, chain, chainName, currentPrice, targetPrice, direction, percentStep, status. No nested objects.
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"crypto","method":"monitorPrice","params":{"tokenAddress":"<value>","direction":"<value>","targetPrice":10,"scriptId":"<ID>"}}' | jq .
listSubscriptionsList all active crypto price monitoring assignments. Returns normalized flat structures.
Returns:
AdapterOperationResult: Returns { monitors[], count }. Each monitor has FLAT fields: assignmentId, title, tokenAddress, chain, chainName, direction, targetPrice, currentStep, maxSteps, nextThreshold, stepValue, status, createdAt. No nested objects.
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"crypto","method":"listSubscriptions","params":{}}' | jq .
unsubscribeAssetStop monitoring a crypto asset. Returns normalized flat structure.
Arguments:
tokenAddress (string, required): Token address to stop monitoringReturns:
AdapterOperationResult: Returns FLAT structure with: tokenAddress, chain, deletedAssignments[], count, status, message (optional). No nested objects.
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"crypto","method":"unsubscribeAsset","params":{"tokenAddress":"<value>"}}' | jq .
refreshTransactionRefresh an expired transaction with new blockhash and updated details. Returns normalized flat structure.
Arguments:
feedItemId (string, required): Feed item ID containing the transaction to refreshtransferId (string, required): Original transfer IDrecipient (string, required): Recipient addresstoken (string, required): Token symbol or mint addressamount (number, required): Amount to sendtokenMint (string, optional): Token mint address (optional, will resolve if not provided)tokenDecimals (number, optional): Token decimals (optional)Returns:
AdapterOperationResult: Returns FLAT structure with: type, transferId, transaction (base64), signerWallet, tokenMint, tokenSymbol, tokenName, tokenDecimals, amount, recipientAddress, recipientDisplayName, isContact, estimatedFee, senderAddress, expiresAt, refreshedAt (ISO 8601). No nested objects.
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"crypto","method":"refreshTransaction","params":{"feedItemId":"<ID>","transferId":"<ID>","recipient":"<value>","token":"<value>","amount":10}}' | jq .
All SDK responses return the operation payload wrapped in a standard envelope:
{
"success": true,
"data": { ... }
}
The data field contains the operation result. Error responses include:
{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message"
}
}
jq . to pretty-print responses, jq .data to extract just the payloaddata.results or directly in data (check examples)--fail-with-body to curl to see error details on HTTP failuresexport API_KEY="your-key"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub oz-networks/mirra-sdk --plugin mirra39 skills in this plugin
/aiUse Mirra to access ai services for chat, decisions, and streaming with multi-provider support. Covers all AI Services SDK operations via REST API./channelsUse Mirra to the places a space publishes to — its corporate x, blog, newsletter — and the drafted copy waiting to go out to them. use listchannels to see what this space.... Covers all Space Channels SDK operations via REST API./contactsUse Mirra to manage user contacts - list, add, remove, search, block, and unblock contacts. Covers all Contacts SDK operations via REST API.Other plugins' skills for the same job