sign-multichain-solana-transaction

sign-multichain-solana-transaction is a skill for Cursor from MetaMask/metamask-connect-cursor-plugin. It costs 61 tokens per session (2,265 once invoked), scanned A, original, MIT.

A guide to signing and sending Solana transactions through a multichain client, including signing messages and building transactions.

In plain words
What is it for?
Use it for Solana transaction flows with @solana/web3.js, mainnet or devnet selection, message signing, and apps that also connect to EVM networks.
Why use it?
It explains how to use the client’s methods, encode transaction data, choose the correct Solana network, and disconnect only Solana sessions when needed.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the metamask-connect plugin — 18 skills, 3 agents shipped together

Good fit Use it for Solana transaction flows with @solana/web3.js, mainnet or devnet selection, message signing, and apps that also connect to EVM networks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metamask/metamask-connect-cursor-plugin/sign-multichain-solana-transaction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MetaMask/metamask-connect-cursor-plugin --skill sign-multichain-solana-transaction
Clone the repo
git clone --depth 1 https://github.com/MetaMask/metamask-connect-cursor-plugin

Made for: Cursor.

Or install metamask-connect, the plugin that ships this one along with the rest of its 18 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sign-multichain-solana-transaction

README.md
[![agentmods](https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/sign-multichain-solana-transaction/github.svg)](https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/sign-multichain-solana-transaction)
Your own site
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/sign-multichain-solana-transaction"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/sign-multichain-solana-transaction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sign-multichain-solana-transaction

Your own site · 80×15
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/sign-multichain-solana-transaction"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/sign-multichain-solana-transaction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.02265
Opus 5 $0.00030 $0.01132
Sonnet 5 $0.00012 $0.00453
Haiku 4.5 $0.00006 $0.00227

Measured 11d ago against content hash 948c4760f5c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

sign-multichain-solana-transaction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sign-multichain-solana-transaction/SKILL.md · 242 lines

How it starts

The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sign Solana Transactions via Multichain Client

When to use

Use this skill when:

  • Signing or sending Solana transactions through invokeMethod on a multichain client
  • Building Solana transactions with @solana/web3.js and encoding them for the multichain API
  • Signing Solana messages through the multichain client
  • Selecting the correct Solana CAIP-2 scope (mainnet, devnet)
  • Disconnecting only Solana scopes while keeping EVM sessions active

Workflow

Step 1: Connect with Solana scopes

import { createMultichainClient, getInfuraRpcUrls } from '@metamask/connect-multichain';

const client = await createMultichainClient({
  dapp: { name: 'My DApp', url: window.location.href },
  api: {
    supportedNetworks: {
      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', caipChainIds: ['eip155:1', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'] }),
    },
  },
});

await client.connect(
  [
    'eip155:1',
    'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', // mainnet
  ],
  [],
); // resolves with no value — read session via client.provider.getSession()

Solana CAIP-2 scope identifiers:

Network CAIP-2 Scope
Mainnet solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Devnet solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
Testnet solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z

All three Solana scopes are modeled by the SDK; non-mainnet availability depends on the connected MetaMask build/version, so handle connection errors rather than assuming a cluster is present.

Step 2: Understand Solana RPC routing

All Solana methods route through the wallet. Unlike EVM where read calls go to an RPC node, every Solana invokeMethod call is handled by MetaMask. There is no RPC node fallback for Solana.

Step 3: Sign a message (signMessage)

Method names have no solana_ prefix. The message must be base64 encoded, and the signing account is passed as account: { address }.

const message = btoa('Hello from Solana via MetaMask!');

const result = await client.invokeMethod({
  scope: 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',
  request: {
    method: 'signMessage',
    params: {
      account: { address: 'YourSolanaAddressBase58' },
      message,
    },
  },
});

// result: { signature: <base58 string>, signedMessage: <base64>, signatureType: 'ed25519' }
console.log('Signature:', result.signature);

Read the full file on GitHub · 242 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 242 lines · 61 tokens per session scan A 948c4760f5c5

Subscribe to this mod's changes

sign-multichain-solana-transaction is a skill published in the GitHub repository MetaMask/metamask-connect-cursor-plugin (2 stars, last pushed 2mo ago), licensed MIT. It adds 61 tokens to every session and 2,265 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.