[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-metamask-sign-multichain-solana-transaction":3,"mdc-qbi56t-key":35,"related-org-metamask-sign-multichain-solana-transaction":4038,"related-repo-metamask-sign-multichain-solana-transaction":4196},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":25,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"sign-multichain-solana-transaction","sign and send Solana transactions","Sign and send Solana transactions using the multichain client's invokeMethod. Covers signTransaction, signAndSendTransaction, signMessage, building transactions with @solana\u002Fweb3.js, base64 encoding, mainnet\u002Fdevnet scopes, and selective disconnect.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"metamask","MetaMask","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmetamask.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Blockchain","blockchain","tag",{"name":17,"slug":18,"type":15},"Web3","web3",{"name":20,"slug":21,"type":15},"Solana","solana",{"name":23,"slug":24,"type":15},"API Development","api-development",2,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin","2026-07-13T06:12:26.089509",null,[],{"repoUrl":26,"stars":25,"forks":25,"topics":31,"description":32},[],"Cursor plugin for building dApps with the MetaMask Connect SDK — skills, rules, and agents for EVM, Solana, and multichain integrations","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fsign-multichain-solana-transaction","---\nname: sign-multichain-solana-transaction\ndescription: Sign and send Solana transactions using the multichain client's invokeMethod. Covers signTransaction, signAndSendTransaction, signMessage, building transactions with @solana\u002Fweb3.js, base64 encoding, mainnet\u002Fdevnet scopes, and selective disconnect.\n---\n# Sign Solana Transactions via Multichain Client\n\n## When to use\n\nUse this skill when:\n- Signing or sending Solana transactions through `invokeMethod` on a multichain client\n- Building Solana transactions with `@solana\u002Fweb3.js` and encoding them for the multichain API\n- Signing Solana messages through the multichain client\n- Selecting the correct Solana CAIP-2 scope (mainnet, devnet)\n- Disconnecting only Solana scopes while keeping EVM sessions active\n\n## Workflow\n\n### Step 1: Connect with Solana scopes\n\n```typescript\nimport { createMultichainClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-multichain';\n\nconst client = await createMultichainClient({\n  dapp: { name: 'My DApp', url: window.location.href },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', caipChainIds: ['eip155:1', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'] }),\n    },\n  },\n});\n\nawait client.connect(\n  [\n    'eip155:1',\n    'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', \u002F\u002F mainnet\n  ],\n  [],\n); \u002F\u002F resolves with no value — read session via client.provider.getSession()\n```\n\n**Solana CAIP-2 scope identifiers:**\n\n| Network  | CAIP-2 Scope |\n|----------|-------------|\n| Mainnet  | `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` |\n| Devnet   | `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` |\n| Testnet  | `solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z` |\n\nAll three Solana scopes are modeled by the SDK; non-mainnet availability depends on the connected MetaMask build\u002Fversion, so handle connection errors rather than assuming a cluster is present.\n\n### Step 2: Understand Solana RPC routing\n\n**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.\n\n### Step 3: Sign a message (signMessage)\n\nMethod names have **no `solana_` prefix**. The message must be **base64 encoded**, and the signing account is passed as `account: { address }`.\n\n```typescript\nconst message = btoa('Hello from Solana via MetaMask!');\n\nconst result = await client.invokeMethod({\n  scope: 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',\n  request: {\n    method: 'signMessage',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      message,\n    },\n  },\n});\n\n\u002F\u002F result: { signature: \u003Cbase58 string>, signedMessage: \u003Cbase64>, signatureType: 'ed25519' }\nconsole.log('Signature:', result.signature);\n```\n\n### Step 4: Build a Solana transaction with @solana\u002Fweb3.js\n\nBuild the transaction using `@solana\u002Fweb3.js`, serialize it, then base64-encode for `invokeMethod`.\n\n```typescript\nimport {\n  Connection,\n  PublicKey,\n  SystemProgram,\n  Transaction,\n  clusterApiUrl,\n} from '@solana\u002Fweb3.js';\n\nconst connection = new Connection(clusterApiUrl('mainnet-beta'));\nconst fromPubkey = new PublicKey('YourSolanaPublicKey');\nconst toPubkey = new PublicKey('RecipientSolanaPublicKey');\n\nconst transaction = new Transaction().add(\n  SystemProgram.transfer({\n    fromPubkey,\n    toPubkey,\n    lamports: 1_000_000, \u002F\u002F 0.001 SOL\n  }),\n);\n\ntransaction.recentBlockhash = (await connection.getLatestBlockhash()).blockhash;\ntransaction.feePayer = fromPubkey;\n\nconst serialized = transaction.serialize({\n  requireAllSignatures: false,\n  verifySignatures: false,\n});\nconst base64Transaction = Buffer.from(serialized).toString('base64');\n```\n\n### Step 5: Sign a transaction (signTransaction)\n\nReturns the signed transaction without broadcasting it.\n\n```typescript\nconst SOLANA_MAINNET = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp';\n\nconst signResult = await client.invokeMethod({\n  scope: SOLANA_MAINNET,\n  request: {\n    method: 'signTransaction',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      transaction: base64Transaction,\n      scope: SOLANA_MAINNET,\n    },\n  },\n});\n\n\u002F\u002F The result field is `signedTransaction` (base64), not `transaction`\nconsole.log('Signed transaction:', signResult.signedTransaction);\n```\n\nYou can then broadcast the signed transaction yourself:\n\n```typescript\nconst signedBuffer = Buffer.from(signResult.signedTransaction, 'base64');\nconst txId = await connection.sendRawTransaction(signedBuffer);\nconsole.log('Transaction ID:', txId);\n```\n\n### Step 6: Sign and send a transaction (signAndSendTransaction)\n\nSigns and broadcasts the transaction in one step.\n\n```typescript\nconst sendResult = await client.invokeMethod({\n  scope: SOLANA_MAINNET,\n  request: {\n    method: 'signAndSendTransaction',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      transaction: base64Transaction,\n      scope: SOLANA_MAINNET,\n    },\n  },\n});\n\n\u002F\u002F sendResult: { signature: \u003Cbase58 transaction signature> }\nconsole.log('Transaction signature:', sendResult.signature);\n```\n\n### Step 7: Devnet transactions\n\nConnect with the devnet scope and point `@solana\u002Fweb3.js` at the devnet cluster:\n\n```typescript\nconst SOLANA_DEVNET = 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1';\n\nawait client.connect([SOLANA_DEVNET], []);\n\nconst connection = new Connection(clusterApiUrl('devnet'));\n\n\u002F\u002F Build transaction with devnet connection...\nconst base64Tx = buildAndSerializeTransaction(connection);\n\nconst result = await client.invokeMethod({\n  scope: SOLANA_DEVNET,\n  request: {\n    method: 'signAndSendTransaction',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      transaction: base64Tx,\n      scope: SOLANA_DEVNET,\n    },\n  },\n});\n```\n\n### Step 8: Selective disconnect\n\nDisconnect only Solana scopes while keeping EVM sessions active:\n\n```typescript\n\u002F\u002F Disconnect only Solana mainnet — EVM scopes remain connected\nawait client.disconnect(['solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp']);\n\n\u002F\u002F Disconnect all scopes (full session teardown)\nawait client.disconnect();\n```\n\n### Step 9: Error handling\n\n`invokeMethod` errors are wrapped in `RPCInvokeMethodErr` — its own `code` is always `53`, and the wallet's original EIP-1193 \u002F JSON-RPC code (e.g. `4001` user rejection) is on `rpcCode`:\n\n```typescript\nimport { RPCInvokeMethodErr } from '@metamask\u002Fconnect-multichain';\n\ntry {\n  await client.invokeMethod({\n    scope: SOLANA_MAINNET,\n    request: {\n      method: 'signAndSendTransaction',\n      params: {\n        account: { address: 'YourSolanaAddressBase58' },\n        transaction: base64Tx,\n        scope: SOLANA_MAINNET,\n      },\n    },\n  });\n} catch (err) {\n  if (err instanceof RPCInvokeMethodErr && err.rpcCode === 4001) {\n    \u002F\u002F User rejected the transaction in MetaMask — not an app error\n  } else {\n    console.error('Solana transaction error:', err);\n  }\n}\n```\n\n## Important Notes\n\n- **All Solana methods go to the wallet.** There is no RPC node routing for Solana — every `invokeMethod` call with a Solana scope prompts MetaMask.\n- **Base64 encoding required.** Transactions and messages must be base64-encoded strings, not raw buffers or hex.\n- **Use `@solana\u002Fweb3.js` to build transactions.** Construct `Transaction` objects, set `recentBlockhash` and `feePayer`, serialize with `requireAllSignatures: false`, then base64-encode.\n- **CAIP-2 genesis hash IDs.** Mainnet is `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`. Devnet is `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1`. These are not cluster URLs — they are genesis hash identifiers.\n- **Solana networks.** Mainnet, devnet, and testnet scopes are all modeled by the SDK; non-mainnet availability depends on the connected MetaMask build\u002Fversion, so handle connection errors rather than assuming a cluster is present.\n- **Selective disconnect preserves other scopes.** Passing specific Solana scopes to `disconnect()` only revokes those scopes. EVM scopes remain active.\n- **Connected scopes required.** `invokeMethod` fails if the Solana scope was not included in the original `connect()` call.\n- **Method names have no `solana_` prefix.** The MetaMask Multichain API methods are `signMessage`, `signTransaction`, and `signAndSendTransaction`, each taking `account: { address }` in params. (`solana_*`-prefixed names are WalletConnect's schema, not MetaMask's.)\n- **`signTransaction` vs `signAndSendTransaction`:** Use `signTransaction` when you need to inspect or modify the signed output before broadcasting (result field: `signedTransaction`, base64). Use `signAndSendTransaction` for the common case where you want a single atomic operation (result field: `signature`, base58).\n",{"data":36,"body":37},{"name":4,"description":6},{"type":38,"children":39},"root",[40,49,56,62,109,115,122,648,657,735,740,746,763,769,803,1147,1153,1171,1874,1880,1885,2227,2232,2392,2398,2403,2701,2707,2719,3140,3146,3151,3254,3260,3308,3767,3773,4032],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"sign-solana-transactions-via-multichain-client",[46],{"type":47,"value":48},"text","Sign Solana Transactions via Multichain Client",{"type":41,"tag":50,"props":51,"children":53},"h2",{"id":52},"when-to-use",[54],{"type":47,"value":55},"When to use",{"type":41,"tag":57,"props":58,"children":59},"p",{},[60],{"type":47,"value":61},"Use this skill when:",{"type":41,"tag":63,"props":64,"children":65},"ul",{},[66,81,94,99,104],{"type":41,"tag":67,"props":68,"children":69},"li",{},[70,72,79],{"type":47,"value":71},"Signing or sending Solana transactions through ",{"type":41,"tag":73,"props":74,"children":76},"code",{"className":75},[],[77],{"type":47,"value":78},"invokeMethod",{"type":47,"value":80}," on a multichain client",{"type":41,"tag":67,"props":82,"children":83},{},[84,86,92],{"type":47,"value":85},"Building Solana transactions with ",{"type":41,"tag":73,"props":87,"children":89},{"className":88},[],[90],{"type":47,"value":91},"@solana\u002Fweb3.js",{"type":47,"value":93}," and encoding them for the multichain API",{"type":41,"tag":67,"props":95,"children":96},{},[97],{"type":47,"value":98},"Signing Solana messages through the multichain client",{"type":41,"tag":67,"props":100,"children":101},{},[102],{"type":47,"value":103},"Selecting the correct Solana CAIP-2 scope (mainnet, devnet)",{"type":41,"tag":67,"props":105,"children":106},{},[107],{"type":47,"value":108},"Disconnecting only Solana scopes while keeping EVM sessions active",{"type":41,"tag":50,"props":110,"children":112},{"id":111},"workflow",[113],{"type":47,"value":114},"Workflow",{"type":41,"tag":116,"props":117,"children":119},"h3",{"id":118},"step-1-connect-with-solana-scopes",[120],{"type":47,"value":121},"Step 1: Connect with Solana scopes",{"type":41,"tag":123,"props":124,"children":129},"pre",{"className":125,"code":126,"language":127,"meta":128,"style":128},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createMultichainClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-multichain';\n\nconst client = await createMultichainClient({\n  dapp: { name: 'My DApp', url: window.location.href },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', caipChainIds: ['eip155:1', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'] }),\n    },\n  },\n});\n\nawait client.connect(\n  [\n    'eip155:1',\n    'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', \u002F\u002F mainnet\n  ],\n  [],\n); \u002F\u002F resolves with no value — read session via client.provider.getSession()\n","typescript","",[130],{"type":41,"tag":73,"props":131,"children":132},{"__ignoreMap":128},[133,198,207,247,330,348,365,478,487,496,512,520,548,557,578,604,617,630],{"type":41,"tag":134,"props":135,"children":138},"span",{"class":136,"line":137},"line",1,[139,145,151,157,162,167,172,177,182,188,193],{"type":41,"tag":134,"props":140,"children":142},{"style":141},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[143],{"type":47,"value":144},"import",{"type":41,"tag":134,"props":146,"children":148},{"style":147},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[149],{"type":47,"value":150}," {",{"type":41,"tag":134,"props":152,"children":154},{"style":153},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[155],{"type":47,"value":156}," createMultichainClient",{"type":41,"tag":134,"props":158,"children":159},{"style":147},[160],{"type":47,"value":161},",",{"type":41,"tag":134,"props":163,"children":164},{"style":153},[165],{"type":47,"value":166}," getInfuraRpcUrls",{"type":41,"tag":134,"props":168,"children":169},{"style":147},[170],{"type":47,"value":171}," }",{"type":41,"tag":134,"props":173,"children":174},{"style":141},[175],{"type":47,"value":176}," from",{"type":41,"tag":134,"props":178,"children":179},{"style":147},[180],{"type":47,"value":181}," '",{"type":41,"tag":134,"props":183,"children":185},{"style":184},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[186],{"type":47,"value":187},"@metamask\u002Fconnect-multichain",{"type":41,"tag":134,"props":189,"children":190},{"style":147},[191],{"type":47,"value":192},"'",{"type":41,"tag":134,"props":194,"children":195},{"style":147},[196],{"type":47,"value":197},";\n",{"type":41,"tag":134,"props":199,"children":200},{"class":136,"line":25},[201],{"type":41,"tag":134,"props":202,"children":204},{"emptyLinePlaceholder":203},true,[205],{"type":47,"value":206},"\n",{"type":41,"tag":134,"props":208,"children":210},{"class":136,"line":209},3,[211,217,222,227,232,237,242],{"type":41,"tag":134,"props":212,"children":214},{"style":213},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[215],{"type":47,"value":216},"const",{"type":41,"tag":134,"props":218,"children":219},{"style":153},[220],{"type":47,"value":221}," client ",{"type":41,"tag":134,"props":223,"children":224},{"style":147},[225],{"type":47,"value":226},"=",{"type":41,"tag":134,"props":228,"children":229},{"style":141},[230],{"type":47,"value":231}," await",{"type":41,"tag":134,"props":233,"children":235},{"style":234},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[236],{"type":47,"value":156},{"type":41,"tag":134,"props":238,"children":239},{"style":153},[240],{"type":47,"value":241},"(",{"type":41,"tag":134,"props":243,"children":244},{"style":147},[245],{"type":47,"value":246},"{\n",{"type":41,"tag":134,"props":248,"children":250},{"class":136,"line":249},4,[251,257,262,266,271,275,279,284,288,292,297,301,306,311,316,320,325],{"type":41,"tag":134,"props":252,"children":254},{"style":253},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[255],{"type":47,"value":256},"  dapp",{"type":41,"tag":134,"props":258,"children":259},{"style":147},[260],{"type":47,"value":261},":",{"type":41,"tag":134,"props":263,"children":264},{"style":147},[265],{"type":47,"value":150},{"type":41,"tag":134,"props":267,"children":268},{"style":253},[269],{"type":47,"value":270}," name",{"type":41,"tag":134,"props":272,"children":273},{"style":147},[274],{"type":47,"value":261},{"type":41,"tag":134,"props":276,"children":277},{"style":147},[278],{"type":47,"value":181},{"type":41,"tag":134,"props":280,"children":281},{"style":184},[282],{"type":47,"value":283},"My DApp",{"type":41,"tag":134,"props":285,"children":286},{"style":147},[287],{"type":47,"value":192},{"type":41,"tag":134,"props":289,"children":290},{"style":147},[291],{"type":47,"value":161},{"type":41,"tag":134,"props":293,"children":294},{"style":253},[295],{"type":47,"value":296}," url",{"type":41,"tag":134,"props":298,"children":299},{"style":147},[300],{"type":47,"value":261},{"type":41,"tag":134,"props":302,"children":303},{"style":153},[304],{"type":47,"value":305}," window",{"type":41,"tag":134,"props":307,"children":308},{"style":147},[309],{"type":47,"value":310},".",{"type":41,"tag":134,"props":312,"children":313},{"style":153},[314],{"type":47,"value":315},"location",{"type":41,"tag":134,"props":317,"children":318},{"style":147},[319],{"type":47,"value":310},{"type":41,"tag":134,"props":321,"children":322},{"style":153},[323],{"type":47,"value":324},"href ",{"type":41,"tag":134,"props":326,"children":327},{"style":147},[328],{"type":47,"value":329},"},\n",{"type":41,"tag":134,"props":331,"children":333},{"class":136,"line":332},5,[334,339,343],{"type":41,"tag":134,"props":335,"children":336},{"style":253},[337],{"type":47,"value":338},"  api",{"type":41,"tag":134,"props":340,"children":341},{"style":147},[342],{"type":47,"value":261},{"type":41,"tag":134,"props":344,"children":345},{"style":147},[346],{"type":47,"value":347}," {\n",{"type":41,"tag":134,"props":349,"children":351},{"class":136,"line":350},6,[352,357,361],{"type":41,"tag":134,"props":353,"children":354},{"style":253},[355],{"type":47,"value":356},"    supportedNetworks",{"type":41,"tag":134,"props":358,"children":359},{"style":147},[360],{"type":47,"value":261},{"type":41,"tag":134,"props":362,"children":363},{"style":147},[364],{"type":47,"value":347},{"type":41,"tag":134,"props":366,"children":368},{"class":136,"line":367},7,[369,374,379,383,388,393,397,401,406,410,414,419,423,428,432,437,441,445,449,454,458,463,468,473],{"type":41,"tag":134,"props":370,"children":371},{"style":147},[372],{"type":47,"value":373},"      ...",{"type":41,"tag":134,"props":375,"children":376},{"style":234},[377],{"type":47,"value":378},"getInfuraRpcUrls",{"type":41,"tag":134,"props":380,"children":381},{"style":153},[382],{"type":47,"value":241},{"type":41,"tag":134,"props":384,"children":385},{"style":147},[386],{"type":47,"value":387},"{",{"type":41,"tag":134,"props":389,"children":390},{"style":253},[391],{"type":47,"value":392}," infuraApiKey",{"type":41,"tag":134,"props":394,"children":395},{"style":147},[396],{"type":47,"value":261},{"type":41,"tag":134,"props":398,"children":399},{"style":147},[400],{"type":47,"value":181},{"type":41,"tag":134,"props":402,"children":403},{"style":184},[404],{"type":47,"value":405},"YOUR_INFURA_KEY",{"type":41,"tag":134,"props":407,"children":408},{"style":147},[409],{"type":47,"value":192},{"type":41,"tag":134,"props":411,"children":412},{"style":147},[413],{"type":47,"value":161},{"type":41,"tag":134,"props":415,"children":416},{"style":253},[417],{"type":47,"value":418}," caipChainIds",{"type":41,"tag":134,"props":420,"children":421},{"style":147},[422],{"type":47,"value":261},{"type":41,"tag":134,"props":424,"children":425},{"style":153},[426],{"type":47,"value":427}," [",{"type":41,"tag":134,"props":429,"children":430},{"style":147},[431],{"type":47,"value":192},{"type":41,"tag":134,"props":433,"children":434},{"style":184},[435],{"type":47,"value":436},"eip155:1",{"type":41,"tag":134,"props":438,"children":439},{"style":147},[440],{"type":47,"value":192},{"type":41,"tag":134,"props":442,"children":443},{"style":147},[444],{"type":47,"value":161},{"type":41,"tag":134,"props":446,"children":447},{"style":147},[448],{"type":47,"value":181},{"type":41,"tag":134,"props":450,"children":451},{"style":184},[452],{"type":47,"value":453},"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",{"type":41,"tag":134,"props":455,"children":456},{"style":147},[457],{"type":47,"value":192},{"type":41,"tag":134,"props":459,"children":460},{"style":153},[461],{"type":47,"value":462},"] ",{"type":41,"tag":134,"props":464,"children":465},{"style":147},[466],{"type":47,"value":467},"}",{"type":41,"tag":134,"props":469,"children":470},{"style":153},[471],{"type":47,"value":472},")",{"type":41,"tag":134,"props":474,"children":475},{"style":147},[476],{"type":47,"value":477},",\n",{"type":41,"tag":134,"props":479,"children":481},{"class":136,"line":480},8,[482],{"type":41,"tag":134,"props":483,"children":484},{"style":147},[485],{"type":47,"value":486},"    },\n",{"type":41,"tag":134,"props":488,"children":490},{"class":136,"line":489},9,[491],{"type":41,"tag":134,"props":492,"children":493},{"style":147},[494],{"type":47,"value":495},"  },\n",{"type":41,"tag":134,"props":497,"children":499},{"class":136,"line":498},10,[500,504,508],{"type":41,"tag":134,"props":501,"children":502},{"style":147},[503],{"type":47,"value":467},{"type":41,"tag":134,"props":505,"children":506},{"style":153},[507],{"type":47,"value":472},{"type":41,"tag":134,"props":509,"children":510},{"style":147},[511],{"type":47,"value":197},{"type":41,"tag":134,"props":513,"children":515},{"class":136,"line":514},11,[516],{"type":41,"tag":134,"props":517,"children":518},{"emptyLinePlaceholder":203},[519],{"type":47,"value":206},{"type":41,"tag":134,"props":521,"children":523},{"class":136,"line":522},12,[524,529,534,538,543],{"type":41,"tag":134,"props":525,"children":526},{"style":141},[527],{"type":47,"value":528},"await",{"type":41,"tag":134,"props":530,"children":531},{"style":153},[532],{"type":47,"value":533}," client",{"type":41,"tag":134,"props":535,"children":536},{"style":147},[537],{"type":47,"value":310},{"type":41,"tag":134,"props":539,"children":540},{"style":234},[541],{"type":47,"value":542},"connect",{"type":41,"tag":134,"props":544,"children":545},{"style":153},[546],{"type":47,"value":547},"(\n",{"type":41,"tag":134,"props":549,"children":551},{"class":136,"line":550},13,[552],{"type":41,"tag":134,"props":553,"children":554},{"style":153},[555],{"type":47,"value":556},"  [\n",{"type":41,"tag":134,"props":558,"children":560},{"class":136,"line":559},14,[561,566,570,574],{"type":41,"tag":134,"props":562,"children":563},{"style":147},[564],{"type":47,"value":565},"    '",{"type":41,"tag":134,"props":567,"children":568},{"style":184},[569],{"type":47,"value":436},{"type":41,"tag":134,"props":571,"children":572},{"style":147},[573],{"type":47,"value":192},{"type":41,"tag":134,"props":575,"children":576},{"style":147},[577],{"type":47,"value":477},{"type":41,"tag":134,"props":579,"children":581},{"class":136,"line":580},15,[582,586,590,594,598],{"type":41,"tag":134,"props":583,"children":584},{"style":147},[585],{"type":47,"value":565},{"type":41,"tag":134,"props":587,"children":588},{"style":184},[589],{"type":47,"value":453},{"type":41,"tag":134,"props":591,"children":592},{"style":147},[593],{"type":47,"value":192},{"type":41,"tag":134,"props":595,"children":596},{"style":147},[597],{"type":47,"value":161},{"type":41,"tag":134,"props":599,"children":601},{"style":600},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[602],{"type":47,"value":603}," \u002F\u002F mainnet\n",{"type":41,"tag":134,"props":605,"children":607},{"class":136,"line":606},16,[608,613],{"type":41,"tag":134,"props":609,"children":610},{"style":153},[611],{"type":47,"value":612},"  ]",{"type":41,"tag":134,"props":614,"children":615},{"style":147},[616],{"type":47,"value":477},{"type":41,"tag":134,"props":618,"children":620},{"class":136,"line":619},17,[621,626],{"type":41,"tag":134,"props":622,"children":623},{"style":153},[624],{"type":47,"value":625},"  []",{"type":41,"tag":134,"props":627,"children":628},{"style":147},[629],{"type":47,"value":477},{"type":41,"tag":134,"props":631,"children":633},{"class":136,"line":632},18,[634,638,643],{"type":41,"tag":134,"props":635,"children":636},{"style":153},[637],{"type":47,"value":472},{"type":41,"tag":134,"props":639,"children":640},{"style":147},[641],{"type":47,"value":642},";",{"type":41,"tag":134,"props":644,"children":645},{"style":600},[646],{"type":47,"value":647}," \u002F\u002F resolves with no value — read session via client.provider.getSession()\n",{"type":41,"tag":57,"props":649,"children":650},{},[651],{"type":41,"tag":652,"props":653,"children":654},"strong",{},[655],{"type":47,"value":656},"Solana CAIP-2 scope identifiers:",{"type":41,"tag":658,"props":659,"children":660},"table",{},[661,680],{"type":41,"tag":662,"props":663,"children":664},"thead",{},[665],{"type":41,"tag":666,"props":667,"children":668},"tr",{},[669,675],{"type":41,"tag":670,"props":671,"children":672},"th",{},[673],{"type":47,"value":674},"Network",{"type":41,"tag":670,"props":676,"children":677},{},[678],{"type":47,"value":679},"CAIP-2 Scope",{"type":41,"tag":681,"props":682,"children":683},"tbody",{},[684,701,718],{"type":41,"tag":666,"props":685,"children":686},{},[687,693],{"type":41,"tag":688,"props":689,"children":690},"td",{},[691],{"type":47,"value":692},"Mainnet",{"type":41,"tag":688,"props":694,"children":695},{},[696],{"type":41,"tag":73,"props":697,"children":699},{"className":698},[],[700],{"type":47,"value":453},{"type":41,"tag":666,"props":702,"children":703},{},[704,709],{"type":41,"tag":688,"props":705,"children":706},{},[707],{"type":47,"value":708},"Devnet",{"type":41,"tag":688,"props":710,"children":711},{},[712],{"type":41,"tag":73,"props":713,"children":715},{"className":714},[],[716],{"type":47,"value":717},"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",{"type":41,"tag":666,"props":719,"children":720},{},[721,726],{"type":41,"tag":688,"props":722,"children":723},{},[724],{"type":47,"value":725},"Testnet",{"type":41,"tag":688,"props":727,"children":728},{},[729],{"type":41,"tag":73,"props":730,"children":732},{"className":731},[],[733],{"type":47,"value":734},"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",{"type":41,"tag":57,"props":736,"children":737},{},[738],{"type":47,"value":739},"All three Solana scopes are modeled by the SDK; non-mainnet availability depends on the connected MetaMask build\u002Fversion, so handle connection errors rather than assuming a cluster is present.",{"type":41,"tag":116,"props":741,"children":743},{"id":742},"step-2-understand-solana-rpc-routing",[744],{"type":47,"value":745},"Step 2: Understand Solana RPC routing",{"type":41,"tag":57,"props":747,"children":748},{},[749,754,756,761],{"type":41,"tag":652,"props":750,"children":751},{},[752],{"type":47,"value":753},"All Solana methods route through the wallet.",{"type":47,"value":755}," Unlike EVM where read calls go to an RPC node, every Solana ",{"type":41,"tag":73,"props":757,"children":759},{"className":758},[],[760],{"type":47,"value":78},{"type":47,"value":762}," call is handled by MetaMask. There is no RPC node fallback for Solana.",{"type":41,"tag":116,"props":764,"children":766},{"id":765},"step-3-sign-a-message-signmessage",[767],{"type":47,"value":768},"Step 3: Sign a message (signMessage)",{"type":41,"tag":57,"props":770,"children":771},{},[772,774,787,789,794,796,802],{"type":47,"value":773},"Method names have ",{"type":41,"tag":652,"props":775,"children":776},{},[777,779,785],{"type":47,"value":778},"no ",{"type":41,"tag":73,"props":780,"children":782},{"className":781},[],[783],{"type":47,"value":784},"solana_",{"type":47,"value":786}," prefix",{"type":47,"value":788},". The message must be ",{"type":41,"tag":652,"props":790,"children":791},{},[792],{"type":47,"value":793},"base64 encoded",{"type":47,"value":795},", and the signing account is passed as ",{"type":41,"tag":73,"props":797,"children":799},{"className":798},[],[800],{"type":47,"value":801},"account: { address }",{"type":47,"value":310},{"type":41,"tag":123,"props":804,"children":806},{"className":125,"code":805,"language":127,"meta":128,"style":128},"const message = btoa('Hello from Solana via MetaMask!');\n\nconst result = await client.invokeMethod({\n  scope: 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',\n  request: {\n    method: 'signMessage',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      message,\n    },\n  },\n});\n\n\u002F\u002F result: { signature: \u003Cbase58 string>, signedMessage: \u003Cbase64>, signatureType: 'ed25519' }\nconsole.log('Signature:', result.signature);\n",[807],{"type":41,"tag":73,"props":808,"children":809},{"__ignoreMap":128},[810,856,863,903,931,947,976,992,1035,1047,1054,1061,1076,1083,1091],{"type":41,"tag":134,"props":811,"children":812},{"class":136,"line":137},[813,817,822,826,831,835,839,844,848,852],{"type":41,"tag":134,"props":814,"children":815},{"style":213},[816],{"type":47,"value":216},{"type":41,"tag":134,"props":818,"children":819},{"style":153},[820],{"type":47,"value":821}," message ",{"type":41,"tag":134,"props":823,"children":824},{"style":147},[825],{"type":47,"value":226},{"type":41,"tag":134,"props":827,"children":828},{"style":234},[829],{"type":47,"value":830}," btoa",{"type":41,"tag":134,"props":832,"children":833},{"style":153},[834],{"type":47,"value":241},{"type":41,"tag":134,"props":836,"children":837},{"style":147},[838],{"type":47,"value":192},{"type":41,"tag":134,"props":840,"children":841},{"style":184},[842],{"type":47,"value":843},"Hello from Solana via MetaMask!",{"type":41,"tag":134,"props":845,"children":846},{"style":147},[847],{"type":47,"value":192},{"type":41,"tag":134,"props":849,"children":850},{"style":153},[851],{"type":47,"value":472},{"type":41,"tag":134,"props":853,"children":854},{"style":147},[855],{"type":47,"value":197},{"type":41,"tag":134,"props":857,"children":858},{"class":136,"line":25},[859],{"type":41,"tag":134,"props":860,"children":861},{"emptyLinePlaceholder":203},[862],{"type":47,"value":206},{"type":41,"tag":134,"props":864,"children":865},{"class":136,"line":209},[866,870,875,879,883,887,891,895,899],{"type":41,"tag":134,"props":867,"children":868},{"style":213},[869],{"type":47,"value":216},{"type":41,"tag":134,"props":871,"children":872},{"style":153},[873],{"type":47,"value":874}," result ",{"type":41,"tag":134,"props":876,"children":877},{"style":147},[878],{"type":47,"value":226},{"type":41,"tag":134,"props":880,"children":881},{"style":141},[882],{"type":47,"value":231},{"type":41,"tag":134,"props":884,"children":885},{"style":153},[886],{"type":47,"value":533},{"type":41,"tag":134,"props":888,"children":889},{"style":147},[890],{"type":47,"value":310},{"type":41,"tag":134,"props":892,"children":893},{"style":234},[894],{"type":47,"value":78},{"type":41,"tag":134,"props":896,"children":897},{"style":153},[898],{"type":47,"value":241},{"type":41,"tag":134,"props":900,"children":901},{"style":147},[902],{"type":47,"value":246},{"type":41,"tag":134,"props":904,"children":905},{"class":136,"line":249},[906,911,915,919,923,927],{"type":41,"tag":134,"props":907,"children":908},{"style":253},[909],{"type":47,"value":910},"  scope",{"type":41,"tag":134,"props":912,"children":913},{"style":147},[914],{"type":47,"value":261},{"type":41,"tag":134,"props":916,"children":917},{"style":147},[918],{"type":47,"value":181},{"type":41,"tag":134,"props":920,"children":921},{"style":184},[922],{"type":47,"value":453},{"type":41,"tag":134,"props":924,"children":925},{"style":147},[926],{"type":47,"value":192},{"type":41,"tag":134,"props":928,"children":929},{"style":147},[930],{"type":47,"value":477},{"type":41,"tag":134,"props":932,"children":933},{"class":136,"line":332},[934,939,943],{"type":41,"tag":134,"props":935,"children":936},{"style":253},[937],{"type":47,"value":938},"  request",{"type":41,"tag":134,"props":940,"children":941},{"style":147},[942],{"type":47,"value":261},{"type":41,"tag":134,"props":944,"children":945},{"style":147},[946],{"type":47,"value":347},{"type":41,"tag":134,"props":948,"children":949},{"class":136,"line":350},[950,955,959,963,968,972],{"type":41,"tag":134,"props":951,"children":952},{"style":253},[953],{"type":47,"value":954},"    method",{"type":41,"tag":134,"props":956,"children":957},{"style":147},[958],{"type":47,"value":261},{"type":41,"tag":134,"props":960,"children":961},{"style":147},[962],{"type":47,"value":181},{"type":41,"tag":134,"props":964,"children":965},{"style":184},[966],{"type":47,"value":967},"signMessage",{"type":41,"tag":134,"props":969,"children":970},{"style":147},[971],{"type":47,"value":192},{"type":41,"tag":134,"props":973,"children":974},{"style":147},[975],{"type":47,"value":477},{"type":41,"tag":134,"props":977,"children":978},{"class":136,"line":367},[979,984,988],{"type":41,"tag":134,"props":980,"children":981},{"style":253},[982],{"type":47,"value":983},"    params",{"type":41,"tag":134,"props":985,"children":986},{"style":147},[987],{"type":47,"value":261},{"type":41,"tag":134,"props":989,"children":990},{"style":147},[991],{"type":47,"value":347},{"type":41,"tag":134,"props":993,"children":994},{"class":136,"line":480},[995,1000,1004,1008,1013,1017,1021,1026,1030],{"type":41,"tag":134,"props":996,"children":997},{"style":253},[998],{"type":47,"value":999},"      account",{"type":41,"tag":134,"props":1001,"children":1002},{"style":147},[1003],{"type":47,"value":261},{"type":41,"tag":134,"props":1005,"children":1006},{"style":147},[1007],{"type":47,"value":150},{"type":41,"tag":134,"props":1009,"children":1010},{"style":253},[1011],{"type":47,"value":1012}," address",{"type":41,"tag":134,"props":1014,"children":1015},{"style":147},[1016],{"type":47,"value":261},{"type":41,"tag":134,"props":1018,"children":1019},{"style":147},[1020],{"type":47,"value":181},{"type":41,"tag":134,"props":1022,"children":1023},{"style":184},[1024],{"type":47,"value":1025},"YourSolanaAddressBase58",{"type":41,"tag":134,"props":1027,"children":1028},{"style":147},[1029],{"type":47,"value":192},{"type":41,"tag":134,"props":1031,"children":1032},{"style":147},[1033],{"type":47,"value":1034}," },\n",{"type":41,"tag":134,"props":1036,"children":1037},{"class":136,"line":489},[1038,1043],{"type":41,"tag":134,"props":1039,"children":1040},{"style":153},[1041],{"type":47,"value":1042},"      message",{"type":41,"tag":134,"props":1044,"children":1045},{"style":147},[1046],{"type":47,"value":477},{"type":41,"tag":134,"props":1048,"children":1049},{"class":136,"line":498},[1050],{"type":41,"tag":134,"props":1051,"children":1052},{"style":147},[1053],{"type":47,"value":486},{"type":41,"tag":134,"props":1055,"children":1056},{"class":136,"line":514},[1057],{"type":41,"tag":134,"props":1058,"children":1059},{"style":147},[1060],{"type":47,"value":495},{"type":41,"tag":134,"props":1062,"children":1063},{"class":136,"line":522},[1064,1068,1072],{"type":41,"tag":134,"props":1065,"children":1066},{"style":147},[1067],{"type":47,"value":467},{"type":41,"tag":134,"props":1069,"children":1070},{"style":153},[1071],{"type":47,"value":472},{"type":41,"tag":134,"props":1073,"children":1074},{"style":147},[1075],{"type":47,"value":197},{"type":41,"tag":134,"props":1077,"children":1078},{"class":136,"line":550},[1079],{"type":41,"tag":134,"props":1080,"children":1081},{"emptyLinePlaceholder":203},[1082],{"type":47,"value":206},{"type":41,"tag":134,"props":1084,"children":1085},{"class":136,"line":559},[1086],{"type":41,"tag":134,"props":1087,"children":1088},{"style":600},[1089],{"type":47,"value":1090},"\u002F\u002F result: { signature: \u003Cbase58 string>, signedMessage: \u003Cbase64>, signatureType: 'ed25519' }\n",{"type":41,"tag":134,"props":1092,"children":1093},{"class":136,"line":580},[1094,1099,1103,1108,1112,1116,1121,1125,1129,1134,1138,1143],{"type":41,"tag":134,"props":1095,"children":1096},{"style":153},[1097],{"type":47,"value":1098},"console",{"type":41,"tag":134,"props":1100,"children":1101},{"style":147},[1102],{"type":47,"value":310},{"type":41,"tag":134,"props":1104,"children":1105},{"style":234},[1106],{"type":47,"value":1107},"log",{"type":41,"tag":134,"props":1109,"children":1110},{"style":153},[1111],{"type":47,"value":241},{"type":41,"tag":134,"props":1113,"children":1114},{"style":147},[1115],{"type":47,"value":192},{"type":41,"tag":134,"props":1117,"children":1118},{"style":184},[1119],{"type":47,"value":1120},"Signature:",{"type":41,"tag":134,"props":1122,"children":1123},{"style":147},[1124],{"type":47,"value":192},{"type":41,"tag":134,"props":1126,"children":1127},{"style":147},[1128],{"type":47,"value":161},{"type":41,"tag":134,"props":1130,"children":1131},{"style":153},[1132],{"type":47,"value":1133}," result",{"type":41,"tag":134,"props":1135,"children":1136},{"style":147},[1137],{"type":47,"value":310},{"type":41,"tag":134,"props":1139,"children":1140},{"style":153},[1141],{"type":47,"value":1142},"signature)",{"type":41,"tag":134,"props":1144,"children":1145},{"style":147},[1146],{"type":47,"value":197},{"type":41,"tag":116,"props":1148,"children":1150},{"id":1149},"step-4-build-a-solana-transaction-with-solanaweb3js",[1151],{"type":47,"value":1152},"Step 4: Build a Solana transaction with @solana\u002Fweb3.js",{"type":41,"tag":57,"props":1154,"children":1155},{},[1156,1158,1163,1165,1170],{"type":47,"value":1157},"Build the transaction using ",{"type":41,"tag":73,"props":1159,"children":1161},{"className":1160},[],[1162],{"type":47,"value":91},{"type":47,"value":1164},", serialize it, then base64-encode for ",{"type":41,"tag":73,"props":1166,"children":1168},{"className":1167},[],[1169],{"type":47,"value":78},{"type":47,"value":310},{"type":41,"tag":123,"props":1172,"children":1174},{"className":125,"code":1173,"language":127,"meta":128,"style":128},"import {\n  Connection,\n  PublicKey,\n  SystemProgram,\n  Transaction,\n  clusterApiUrl,\n} from '@solana\u002Fweb3.js';\n\nconst connection = new Connection(clusterApiUrl('mainnet-beta'));\nconst fromPubkey = new PublicKey('YourSolanaPublicKey');\nconst toPubkey = new PublicKey('RecipientSolanaPublicKey');\n\nconst transaction = new Transaction().add(\n  SystemProgram.transfer({\n    fromPubkey,\n    toPubkey,\n    lamports: 1_000_000, \u002F\u002F 0.001 SOL\n  }),\n);\n\ntransaction.recentBlockhash = (await connection.getLatestBlockhash()).blockhash;\ntransaction.feePayer = fromPubkey;\n\nconst serialized = transaction.serialize({\n  requireAllSignatures: false,\n  verifySignatures: false,\n});\nconst base64Transaction = Buffer.from(serialized).toString('base64');\n",[1175],{"type":41,"tag":73,"props":1176,"children":1177},{"__ignoreMap":128},[1178,1189,1201,1213,1225,1237,1249,1276,1283,1344,1394,1443,1450,1493,1517,1529,1541,1568,1584,1596,1604,1667,1697,1705,1744,1767,1788,1804],{"type":41,"tag":134,"props":1179,"children":1180},{"class":136,"line":137},[1181,1185],{"type":41,"tag":134,"props":1182,"children":1183},{"style":141},[1184],{"type":47,"value":144},{"type":41,"tag":134,"props":1186,"children":1187},{"style":147},[1188],{"type":47,"value":347},{"type":41,"tag":134,"props":1190,"children":1191},{"class":136,"line":25},[1192,1197],{"type":41,"tag":134,"props":1193,"children":1194},{"style":153},[1195],{"type":47,"value":1196},"  Connection",{"type":41,"tag":134,"props":1198,"children":1199},{"style":147},[1200],{"type":47,"value":477},{"type":41,"tag":134,"props":1202,"children":1203},{"class":136,"line":209},[1204,1209],{"type":41,"tag":134,"props":1205,"children":1206},{"style":153},[1207],{"type":47,"value":1208},"  PublicKey",{"type":41,"tag":134,"props":1210,"children":1211},{"style":147},[1212],{"type":47,"value":477},{"type":41,"tag":134,"props":1214,"children":1215},{"class":136,"line":249},[1216,1221],{"type":41,"tag":134,"props":1217,"children":1218},{"style":153},[1219],{"type":47,"value":1220},"  SystemProgram",{"type":41,"tag":134,"props":1222,"children":1223},{"style":147},[1224],{"type":47,"value":477},{"type":41,"tag":134,"props":1226,"children":1227},{"class":136,"line":332},[1228,1233],{"type":41,"tag":134,"props":1229,"children":1230},{"style":153},[1231],{"type":47,"value":1232},"  Transaction",{"type":41,"tag":134,"props":1234,"children":1235},{"style":147},[1236],{"type":47,"value":477},{"type":41,"tag":134,"props":1238,"children":1239},{"class":136,"line":350},[1240,1245],{"type":41,"tag":134,"props":1241,"children":1242},{"style":153},[1243],{"type":47,"value":1244},"  clusterApiUrl",{"type":41,"tag":134,"props":1246,"children":1247},{"style":147},[1248],{"type":47,"value":477},{"type":41,"tag":134,"props":1250,"children":1251},{"class":136,"line":367},[1252,1256,1260,1264,1268,1272],{"type":41,"tag":134,"props":1253,"children":1254},{"style":147},[1255],{"type":47,"value":467},{"type":41,"tag":134,"props":1257,"children":1258},{"style":141},[1259],{"type":47,"value":176},{"type":41,"tag":134,"props":1261,"children":1262},{"style":147},[1263],{"type":47,"value":181},{"type":41,"tag":134,"props":1265,"children":1266},{"style":184},[1267],{"type":47,"value":91},{"type":41,"tag":134,"props":1269,"children":1270},{"style":147},[1271],{"type":47,"value":192},{"type":41,"tag":134,"props":1273,"children":1274},{"style":147},[1275],{"type":47,"value":197},{"type":41,"tag":134,"props":1277,"children":1278},{"class":136,"line":480},[1279],{"type":41,"tag":134,"props":1280,"children":1281},{"emptyLinePlaceholder":203},[1282],{"type":47,"value":206},{"type":41,"tag":134,"props":1284,"children":1285},{"class":136,"line":489},[1286,1290,1295,1299,1304,1309,1313,1318,1322,1326,1331,1335,1340],{"type":41,"tag":134,"props":1287,"children":1288},{"style":213},[1289],{"type":47,"value":216},{"type":41,"tag":134,"props":1291,"children":1292},{"style":153},[1293],{"type":47,"value":1294}," connection ",{"type":41,"tag":134,"props":1296,"children":1297},{"style":147},[1298],{"type":47,"value":226},{"type":41,"tag":134,"props":1300,"children":1301},{"style":147},[1302],{"type":47,"value":1303}," new",{"type":41,"tag":134,"props":1305,"children":1306},{"style":234},[1307],{"type":47,"value":1308}," Connection",{"type":41,"tag":134,"props":1310,"children":1311},{"style":153},[1312],{"type":47,"value":241},{"type":41,"tag":134,"props":1314,"children":1315},{"style":234},[1316],{"type":47,"value":1317},"clusterApiUrl",{"type":41,"tag":134,"props":1319,"children":1320},{"style":153},[1321],{"type":47,"value":241},{"type":41,"tag":134,"props":1323,"children":1324},{"style":147},[1325],{"type":47,"value":192},{"type":41,"tag":134,"props":1327,"children":1328},{"style":184},[1329],{"type":47,"value":1330},"mainnet-beta",{"type":41,"tag":134,"props":1332,"children":1333},{"style":147},[1334],{"type":47,"value":192},{"type":41,"tag":134,"props":1336,"children":1337},{"style":153},[1338],{"type":47,"value":1339},"))",{"type":41,"tag":134,"props":1341,"children":1342},{"style":147},[1343],{"type":47,"value":197},{"type":41,"tag":134,"props":1345,"children":1346},{"class":136,"line":498},[1347,1351,1356,1360,1364,1369,1373,1377,1382,1386,1390],{"type":41,"tag":134,"props":1348,"children":1349},{"style":213},[1350],{"type":47,"value":216},{"type":41,"tag":134,"props":1352,"children":1353},{"style":153},[1354],{"type":47,"value":1355}," fromPubkey ",{"type":41,"tag":134,"props":1357,"children":1358},{"style":147},[1359],{"type":47,"value":226},{"type":41,"tag":134,"props":1361,"children":1362},{"style":147},[1363],{"type":47,"value":1303},{"type":41,"tag":134,"props":1365,"children":1366},{"style":234},[1367],{"type":47,"value":1368}," PublicKey",{"type":41,"tag":134,"props":1370,"children":1371},{"style":153},[1372],{"type":47,"value":241},{"type":41,"tag":134,"props":1374,"children":1375},{"style":147},[1376],{"type":47,"value":192},{"type":41,"tag":134,"props":1378,"children":1379},{"style":184},[1380],{"type":47,"value":1381},"YourSolanaPublicKey",{"type":41,"tag":134,"props":1383,"children":1384},{"style":147},[1385],{"type":47,"value":192},{"type":41,"tag":134,"props":1387,"children":1388},{"style":153},[1389],{"type":47,"value":472},{"type":41,"tag":134,"props":1391,"children":1392},{"style":147},[1393],{"type":47,"value":197},{"type":41,"tag":134,"props":1395,"children":1396},{"class":136,"line":514},[1397,1401,1406,1410,1414,1418,1422,1426,1431,1435,1439],{"type":41,"tag":134,"props":1398,"children":1399},{"style":213},[1400],{"type":47,"value":216},{"type":41,"tag":134,"props":1402,"children":1403},{"style":153},[1404],{"type":47,"value":1405}," toPubkey ",{"type":41,"tag":134,"props":1407,"children":1408},{"style":147},[1409],{"type":47,"value":226},{"type":41,"tag":134,"props":1411,"children":1412},{"style":147},[1413],{"type":47,"value":1303},{"type":41,"tag":134,"props":1415,"children":1416},{"style":234},[1417],{"type":47,"value":1368},{"type":41,"tag":134,"props":1419,"children":1420},{"style":153},[1421],{"type":47,"value":241},{"type":41,"tag":134,"props":1423,"children":1424},{"style":147},[1425],{"type":47,"value":192},{"type":41,"tag":134,"props":1427,"children":1428},{"style":184},[1429],{"type":47,"value":1430},"RecipientSolanaPublicKey",{"type":41,"tag":134,"props":1432,"children":1433},{"style":147},[1434],{"type":47,"value":192},{"type":41,"tag":134,"props":1436,"children":1437},{"style":153},[1438],{"type":47,"value":472},{"type":41,"tag":134,"props":1440,"children":1441},{"style":147},[1442],{"type":47,"value":197},{"type":41,"tag":134,"props":1444,"children":1445},{"class":136,"line":522},[1446],{"type":41,"tag":134,"props":1447,"children":1448},{"emptyLinePlaceholder":203},[1449],{"type":47,"value":206},{"type":41,"tag":134,"props":1451,"children":1452},{"class":136,"line":550},[1453,1457,1462,1466,1470,1475,1480,1484,1489],{"type":41,"tag":134,"props":1454,"children":1455},{"style":213},[1456],{"type":47,"value":216},{"type":41,"tag":134,"props":1458,"children":1459},{"style":153},[1460],{"type":47,"value":1461}," transaction ",{"type":41,"tag":134,"props":1463,"children":1464},{"style":147},[1465],{"type":47,"value":226},{"type":41,"tag":134,"props":1467,"children":1468},{"style":147},[1469],{"type":47,"value":1303},{"type":41,"tag":134,"props":1471,"children":1472},{"style":234},[1473],{"type":47,"value":1474}," Transaction",{"type":41,"tag":134,"props":1476,"children":1477},{"style":153},[1478],{"type":47,"value":1479},"()",{"type":41,"tag":134,"props":1481,"children":1482},{"style":147},[1483],{"type":47,"value":310},{"type":41,"tag":134,"props":1485,"children":1486},{"style":234},[1487],{"type":47,"value":1488},"add",{"type":41,"tag":134,"props":1490,"children":1491},{"style":153},[1492],{"type":47,"value":547},{"type":41,"tag":134,"props":1494,"children":1495},{"class":136,"line":559},[1496,1500,1504,1509,1513],{"type":41,"tag":134,"props":1497,"children":1498},{"style":153},[1499],{"type":47,"value":1220},{"type":41,"tag":134,"props":1501,"children":1502},{"style":147},[1503],{"type":47,"value":310},{"type":41,"tag":134,"props":1505,"children":1506},{"style":234},[1507],{"type":47,"value":1508},"transfer",{"type":41,"tag":134,"props":1510,"children":1511},{"style":153},[1512],{"type":47,"value":241},{"type":41,"tag":134,"props":1514,"children":1515},{"style":147},[1516],{"type":47,"value":246},{"type":41,"tag":134,"props":1518,"children":1519},{"class":136,"line":580},[1520,1525],{"type":41,"tag":134,"props":1521,"children":1522},{"style":153},[1523],{"type":47,"value":1524},"    fromPubkey",{"type":41,"tag":134,"props":1526,"children":1527},{"style":147},[1528],{"type":47,"value":477},{"type":41,"tag":134,"props":1530,"children":1531},{"class":136,"line":606},[1532,1537],{"type":41,"tag":134,"props":1533,"children":1534},{"style":153},[1535],{"type":47,"value":1536},"    toPubkey",{"type":41,"tag":134,"props":1538,"children":1539},{"style":147},[1540],{"type":47,"value":477},{"type":41,"tag":134,"props":1542,"children":1543},{"class":136,"line":619},[1544,1549,1553,1559,1563],{"type":41,"tag":134,"props":1545,"children":1546},{"style":253},[1547],{"type":47,"value":1548},"    lamports",{"type":41,"tag":134,"props":1550,"children":1551},{"style":147},[1552],{"type":47,"value":261},{"type":41,"tag":134,"props":1554,"children":1556},{"style":1555},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1557],{"type":47,"value":1558}," 1_000_000",{"type":41,"tag":134,"props":1560,"children":1561},{"style":147},[1562],{"type":47,"value":161},{"type":41,"tag":134,"props":1564,"children":1565},{"style":600},[1566],{"type":47,"value":1567}," \u002F\u002F 0.001 SOL\n",{"type":41,"tag":134,"props":1569,"children":1570},{"class":136,"line":632},[1571,1576,1580],{"type":41,"tag":134,"props":1572,"children":1573},{"style":147},[1574],{"type":47,"value":1575},"  }",{"type":41,"tag":134,"props":1577,"children":1578},{"style":153},[1579],{"type":47,"value":472},{"type":41,"tag":134,"props":1581,"children":1582},{"style":147},[1583],{"type":47,"value":477},{"type":41,"tag":134,"props":1585,"children":1587},{"class":136,"line":1586},19,[1588,1592],{"type":41,"tag":134,"props":1589,"children":1590},{"style":153},[1591],{"type":47,"value":472},{"type":41,"tag":134,"props":1593,"children":1594},{"style":147},[1595],{"type":47,"value":197},{"type":41,"tag":134,"props":1597,"children":1599},{"class":136,"line":1598},20,[1600],{"type":41,"tag":134,"props":1601,"children":1602},{"emptyLinePlaceholder":203},[1603],{"type":47,"value":206},{"type":41,"tag":134,"props":1605,"children":1607},{"class":136,"line":1606},21,[1608,1613,1617,1622,1626,1631,1635,1640,1644,1649,1654,1658,1663],{"type":41,"tag":134,"props":1609,"children":1610},{"style":153},[1611],{"type":47,"value":1612},"transaction",{"type":41,"tag":134,"props":1614,"children":1615},{"style":147},[1616],{"type":47,"value":310},{"type":41,"tag":134,"props":1618,"children":1619},{"style":153},[1620],{"type":47,"value":1621},"recentBlockhash ",{"type":41,"tag":134,"props":1623,"children":1624},{"style":147},[1625],{"type":47,"value":226},{"type":41,"tag":134,"props":1627,"children":1628},{"style":153},[1629],{"type":47,"value":1630}," (",{"type":41,"tag":134,"props":1632,"children":1633},{"style":141},[1634],{"type":47,"value":528},{"type":41,"tag":134,"props":1636,"children":1637},{"style":153},[1638],{"type":47,"value":1639}," connection",{"type":41,"tag":134,"props":1641,"children":1642},{"style":147},[1643],{"type":47,"value":310},{"type":41,"tag":134,"props":1645,"children":1646},{"style":234},[1647],{"type":47,"value":1648},"getLatestBlockhash",{"type":41,"tag":134,"props":1650,"children":1651},{"style":153},[1652],{"type":47,"value":1653},"())",{"type":41,"tag":134,"props":1655,"children":1656},{"style":147},[1657],{"type":47,"value":310},{"type":41,"tag":134,"props":1659,"children":1660},{"style":153},[1661],{"type":47,"value":1662},"blockhash",{"type":41,"tag":134,"props":1664,"children":1665},{"style":147},[1666],{"type":47,"value":197},{"type":41,"tag":134,"props":1668,"children":1670},{"class":136,"line":1669},22,[1671,1675,1679,1684,1688,1693],{"type":41,"tag":134,"props":1672,"children":1673},{"style":153},[1674],{"type":47,"value":1612},{"type":41,"tag":134,"props":1676,"children":1677},{"style":147},[1678],{"type":47,"value":310},{"type":41,"tag":134,"props":1680,"children":1681},{"style":153},[1682],{"type":47,"value":1683},"feePayer ",{"type":41,"tag":134,"props":1685,"children":1686},{"style":147},[1687],{"type":47,"value":226},{"type":41,"tag":134,"props":1689,"children":1690},{"style":153},[1691],{"type":47,"value":1692}," fromPubkey",{"type":41,"tag":134,"props":1694,"children":1695},{"style":147},[1696],{"type":47,"value":197},{"type":41,"tag":134,"props":1698,"children":1700},{"class":136,"line":1699},23,[1701],{"type":41,"tag":134,"props":1702,"children":1703},{"emptyLinePlaceholder":203},[1704],{"type":47,"value":206},{"type":41,"tag":134,"props":1706,"children":1708},{"class":136,"line":1707},24,[1709,1713,1718,1722,1727,1731,1736,1740],{"type":41,"tag":134,"props":1710,"children":1711},{"style":213},[1712],{"type":47,"value":216},{"type":41,"tag":134,"props":1714,"children":1715},{"style":153},[1716],{"type":47,"value":1717}," serialized ",{"type":41,"tag":134,"props":1719,"children":1720},{"style":147},[1721],{"type":47,"value":226},{"type":41,"tag":134,"props":1723,"children":1724},{"style":153},[1725],{"type":47,"value":1726}," transaction",{"type":41,"tag":134,"props":1728,"children":1729},{"style":147},[1730],{"type":47,"value":310},{"type":41,"tag":134,"props":1732,"children":1733},{"style":234},[1734],{"type":47,"value":1735},"serialize",{"type":41,"tag":134,"props":1737,"children":1738},{"style":153},[1739],{"type":47,"value":241},{"type":41,"tag":134,"props":1741,"children":1742},{"style":147},[1743],{"type":47,"value":246},{"type":41,"tag":134,"props":1745,"children":1747},{"class":136,"line":1746},25,[1748,1753,1757,1763],{"type":41,"tag":134,"props":1749,"children":1750},{"style":253},[1751],{"type":47,"value":1752},"  requireAllSignatures",{"type":41,"tag":134,"props":1754,"children":1755},{"style":147},[1756],{"type":47,"value":261},{"type":41,"tag":134,"props":1758,"children":1760},{"style":1759},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1761],{"type":47,"value":1762}," false",{"type":41,"tag":134,"props":1764,"children":1765},{"style":147},[1766],{"type":47,"value":477},{"type":41,"tag":134,"props":1768,"children":1770},{"class":136,"line":1769},26,[1771,1776,1780,1784],{"type":41,"tag":134,"props":1772,"children":1773},{"style":253},[1774],{"type":47,"value":1775},"  verifySignatures",{"type":41,"tag":134,"props":1777,"children":1778},{"style":147},[1779],{"type":47,"value":261},{"type":41,"tag":134,"props":1781,"children":1782},{"style":1759},[1783],{"type":47,"value":1762},{"type":41,"tag":134,"props":1785,"children":1786},{"style":147},[1787],{"type":47,"value":477},{"type":41,"tag":134,"props":1789,"children":1791},{"class":136,"line":1790},27,[1792,1796,1800],{"type":41,"tag":134,"props":1793,"children":1794},{"style":147},[1795],{"type":47,"value":467},{"type":41,"tag":134,"props":1797,"children":1798},{"style":153},[1799],{"type":47,"value":472},{"type":41,"tag":134,"props":1801,"children":1802},{"style":147},[1803],{"type":47,"value":197},{"type":41,"tag":134,"props":1805,"children":1807},{"class":136,"line":1806},28,[1808,1812,1817,1821,1826,1830,1835,1840,1844,1849,1853,1857,1862,1866,1870],{"type":41,"tag":134,"props":1809,"children":1810},{"style":213},[1811],{"type":47,"value":216},{"type":41,"tag":134,"props":1813,"children":1814},{"style":153},[1815],{"type":47,"value":1816}," base64Transaction ",{"type":41,"tag":134,"props":1818,"children":1819},{"style":147},[1820],{"type":47,"value":226},{"type":41,"tag":134,"props":1822,"children":1823},{"style":153},[1824],{"type":47,"value":1825}," Buffer",{"type":41,"tag":134,"props":1827,"children":1828},{"style":147},[1829],{"type":47,"value":310},{"type":41,"tag":134,"props":1831,"children":1832},{"style":234},[1833],{"type":47,"value":1834},"from",{"type":41,"tag":134,"props":1836,"children":1837},{"style":153},[1838],{"type":47,"value":1839},"(serialized)",{"type":41,"tag":134,"props":1841,"children":1842},{"style":147},[1843],{"type":47,"value":310},{"type":41,"tag":134,"props":1845,"children":1846},{"style":234},[1847],{"type":47,"value":1848},"toString",{"type":41,"tag":134,"props":1850,"children":1851},{"style":153},[1852],{"type":47,"value":241},{"type":41,"tag":134,"props":1854,"children":1855},{"style":147},[1856],{"type":47,"value":192},{"type":41,"tag":134,"props":1858,"children":1859},{"style":184},[1860],{"type":47,"value":1861},"base64",{"type":41,"tag":134,"props":1863,"children":1864},{"style":147},[1865],{"type":47,"value":192},{"type":41,"tag":134,"props":1867,"children":1868},{"style":153},[1869],{"type":47,"value":472},{"type":41,"tag":134,"props":1871,"children":1872},{"style":147},[1873],{"type":47,"value":197},{"type":41,"tag":116,"props":1875,"children":1877},{"id":1876},"step-5-sign-a-transaction-signtransaction",[1878],{"type":47,"value":1879},"Step 5: Sign a transaction (signTransaction)",{"type":41,"tag":57,"props":1881,"children":1882},{},[1883],{"type":47,"value":1884},"Returns the signed transaction without broadcasting it.",{"type":41,"tag":123,"props":1886,"children":1888},{"className":125,"code":1887,"language":127,"meta":128,"style":128},"const SOLANA_MAINNET = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp';\n\nconst signResult = await client.invokeMethod({\n  scope: SOLANA_MAINNET,\n  request: {\n    method: 'signTransaction',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      transaction: base64Transaction,\n      scope: SOLANA_MAINNET,\n    },\n  },\n});\n\n\u002F\u002F The result field is `signedTransaction` (base64), not `transaction`\nconsole.log('Signed transaction:', signResult.signedTransaction);\n",[1889],{"type":41,"tag":73,"props":1890,"children":1891},{"__ignoreMap":128},[1892,1924,1931,1971,1991,2006,2034,2049,2088,2109,2129,2136,2143,2158,2165,2173],{"type":41,"tag":134,"props":1893,"children":1894},{"class":136,"line":137},[1895,1899,1904,1908,1912,1916,1920],{"type":41,"tag":134,"props":1896,"children":1897},{"style":213},[1898],{"type":47,"value":216},{"type":41,"tag":134,"props":1900,"children":1901},{"style":153},[1902],{"type":47,"value":1903}," SOLANA_MAINNET ",{"type":41,"tag":134,"props":1905,"children":1906},{"style":147},[1907],{"type":47,"value":226},{"type":41,"tag":134,"props":1909,"children":1910},{"style":147},[1911],{"type":47,"value":181},{"type":41,"tag":134,"props":1913,"children":1914},{"style":184},[1915],{"type":47,"value":453},{"type":41,"tag":134,"props":1917,"children":1918},{"style":147},[1919],{"type":47,"value":192},{"type":41,"tag":134,"props":1921,"children":1922},{"style":147},[1923],{"type":47,"value":197},{"type":41,"tag":134,"props":1925,"children":1926},{"class":136,"line":25},[1927],{"type":41,"tag":134,"props":1928,"children":1929},{"emptyLinePlaceholder":203},[1930],{"type":47,"value":206},{"type":41,"tag":134,"props":1932,"children":1933},{"class":136,"line":209},[1934,1938,1943,1947,1951,1955,1959,1963,1967],{"type":41,"tag":134,"props":1935,"children":1936},{"style":213},[1937],{"type":47,"value":216},{"type":41,"tag":134,"props":1939,"children":1940},{"style":153},[1941],{"type":47,"value":1942}," signResult ",{"type":41,"tag":134,"props":1944,"children":1945},{"style":147},[1946],{"type":47,"value":226},{"type":41,"tag":134,"props":1948,"children":1949},{"style":141},[1950],{"type":47,"value":231},{"type":41,"tag":134,"props":1952,"children":1953},{"style":153},[1954],{"type":47,"value":533},{"type":41,"tag":134,"props":1956,"children":1957},{"style":147},[1958],{"type":47,"value":310},{"type":41,"tag":134,"props":1960,"children":1961},{"style":234},[1962],{"type":47,"value":78},{"type":41,"tag":134,"props":1964,"children":1965},{"style":153},[1966],{"type":47,"value":241},{"type":41,"tag":134,"props":1968,"children":1969},{"style":147},[1970],{"type":47,"value":246},{"type":41,"tag":134,"props":1972,"children":1973},{"class":136,"line":249},[1974,1978,1982,1987],{"type":41,"tag":134,"props":1975,"children":1976},{"style":253},[1977],{"type":47,"value":910},{"type":41,"tag":134,"props":1979,"children":1980},{"style":147},[1981],{"type":47,"value":261},{"type":41,"tag":134,"props":1983,"children":1984},{"style":153},[1985],{"type":47,"value":1986}," SOLANA_MAINNET",{"type":41,"tag":134,"props":1988,"children":1989},{"style":147},[1990],{"type":47,"value":477},{"type":41,"tag":134,"props":1992,"children":1993},{"class":136,"line":332},[1994,1998,2002],{"type":41,"tag":134,"props":1995,"children":1996},{"style":253},[1997],{"type":47,"value":938},{"type":41,"tag":134,"props":1999,"children":2000},{"style":147},[2001],{"type":47,"value":261},{"type":41,"tag":134,"props":2003,"children":2004},{"style":147},[2005],{"type":47,"value":347},{"type":41,"tag":134,"props":2007,"children":2008},{"class":136,"line":350},[2009,2013,2017,2021,2026,2030],{"type":41,"tag":134,"props":2010,"children":2011},{"style":253},[2012],{"type":47,"value":954},{"type":41,"tag":134,"props":2014,"children":2015},{"style":147},[2016],{"type":47,"value":261},{"type":41,"tag":134,"props":2018,"children":2019},{"style":147},[2020],{"type":47,"value":181},{"type":41,"tag":134,"props":2022,"children":2023},{"style":184},[2024],{"type":47,"value":2025},"signTransaction",{"type":41,"tag":134,"props":2027,"children":2028},{"style":147},[2029],{"type":47,"value":192},{"type":41,"tag":134,"props":2031,"children":2032},{"style":147},[2033],{"type":47,"value":477},{"type":41,"tag":134,"props":2035,"children":2036},{"class":136,"line":367},[2037,2041,2045],{"type":41,"tag":134,"props":2038,"children":2039},{"style":253},[2040],{"type":47,"value":983},{"type":41,"tag":134,"props":2042,"children":2043},{"style":147},[2044],{"type":47,"value":261},{"type":41,"tag":134,"props":2046,"children":2047},{"style":147},[2048],{"type":47,"value":347},{"type":41,"tag":134,"props":2050,"children":2051},{"class":136,"line":480},[2052,2056,2060,2064,2068,2072,2076,2080,2084],{"type":41,"tag":134,"props":2053,"children":2054},{"style":253},[2055],{"type":47,"value":999},{"type":41,"tag":134,"props":2057,"children":2058},{"style":147},[2059],{"type":47,"value":261},{"type":41,"tag":134,"props":2061,"children":2062},{"style":147},[2063],{"type":47,"value":150},{"type":41,"tag":134,"props":2065,"children":2066},{"style":253},[2067],{"type":47,"value":1012},{"type":41,"tag":134,"props":2069,"children":2070},{"style":147},[2071],{"type":47,"value":261},{"type":41,"tag":134,"props":2073,"children":2074},{"style":147},[2075],{"type":47,"value":181},{"type":41,"tag":134,"props":2077,"children":2078},{"style":184},[2079],{"type":47,"value":1025},{"type":41,"tag":134,"props":2081,"children":2082},{"style":147},[2083],{"type":47,"value":192},{"type":41,"tag":134,"props":2085,"children":2086},{"style":147},[2087],{"type":47,"value":1034},{"type":41,"tag":134,"props":2089,"children":2090},{"class":136,"line":489},[2091,2096,2100,2105],{"type":41,"tag":134,"props":2092,"children":2093},{"style":253},[2094],{"type":47,"value":2095},"      transaction",{"type":41,"tag":134,"props":2097,"children":2098},{"style":147},[2099],{"type":47,"value":261},{"type":41,"tag":134,"props":2101,"children":2102},{"style":153},[2103],{"type":47,"value":2104}," base64Transaction",{"type":41,"tag":134,"props":2106,"children":2107},{"style":147},[2108],{"type":47,"value":477},{"type":41,"tag":134,"props":2110,"children":2111},{"class":136,"line":498},[2112,2117,2121,2125],{"type":41,"tag":134,"props":2113,"children":2114},{"style":253},[2115],{"type":47,"value":2116},"      scope",{"type":41,"tag":134,"props":2118,"children":2119},{"style":147},[2120],{"type":47,"value":261},{"type":41,"tag":134,"props":2122,"children":2123},{"style":153},[2124],{"type":47,"value":1986},{"type":41,"tag":134,"props":2126,"children":2127},{"style":147},[2128],{"type":47,"value":477},{"type":41,"tag":134,"props":2130,"children":2131},{"class":136,"line":514},[2132],{"type":41,"tag":134,"props":2133,"children":2134},{"style":147},[2135],{"type":47,"value":486},{"type":41,"tag":134,"props":2137,"children":2138},{"class":136,"line":522},[2139],{"type":41,"tag":134,"props":2140,"children":2141},{"style":147},[2142],{"type":47,"value":495},{"type":41,"tag":134,"props":2144,"children":2145},{"class":136,"line":550},[2146,2150,2154],{"type":41,"tag":134,"props":2147,"children":2148},{"style":147},[2149],{"type":47,"value":467},{"type":41,"tag":134,"props":2151,"children":2152},{"style":153},[2153],{"type":47,"value":472},{"type":41,"tag":134,"props":2155,"children":2156},{"style":147},[2157],{"type":47,"value":197},{"type":41,"tag":134,"props":2159,"children":2160},{"class":136,"line":559},[2161],{"type":41,"tag":134,"props":2162,"children":2163},{"emptyLinePlaceholder":203},[2164],{"type":47,"value":206},{"type":41,"tag":134,"props":2166,"children":2167},{"class":136,"line":580},[2168],{"type":41,"tag":134,"props":2169,"children":2170},{"style":600},[2171],{"type":47,"value":2172},"\u002F\u002F The result field is `signedTransaction` (base64), not `transaction`\n",{"type":41,"tag":134,"props":2174,"children":2175},{"class":136,"line":606},[2176,2180,2184,2188,2192,2196,2201,2205,2209,2214,2218,2223],{"type":41,"tag":134,"props":2177,"children":2178},{"style":153},[2179],{"type":47,"value":1098},{"type":41,"tag":134,"props":2181,"children":2182},{"style":147},[2183],{"type":47,"value":310},{"type":41,"tag":134,"props":2185,"children":2186},{"style":234},[2187],{"type":47,"value":1107},{"type":41,"tag":134,"props":2189,"children":2190},{"style":153},[2191],{"type":47,"value":241},{"type":41,"tag":134,"props":2193,"children":2194},{"style":147},[2195],{"type":47,"value":192},{"type":41,"tag":134,"props":2197,"children":2198},{"style":184},[2199],{"type":47,"value":2200},"Signed transaction:",{"type":41,"tag":134,"props":2202,"children":2203},{"style":147},[2204],{"type":47,"value":192},{"type":41,"tag":134,"props":2206,"children":2207},{"style":147},[2208],{"type":47,"value":161},{"type":41,"tag":134,"props":2210,"children":2211},{"style":153},[2212],{"type":47,"value":2213}," signResult",{"type":41,"tag":134,"props":2215,"children":2216},{"style":147},[2217],{"type":47,"value":310},{"type":41,"tag":134,"props":2219,"children":2220},{"style":153},[2221],{"type":47,"value":2222},"signedTransaction)",{"type":41,"tag":134,"props":2224,"children":2225},{"style":147},[2226],{"type":47,"value":197},{"type":41,"tag":57,"props":2228,"children":2229},{},[2230],{"type":47,"value":2231},"You can then broadcast the signed transaction yourself:",{"type":41,"tag":123,"props":2233,"children":2235},{"className":125,"code":2234,"language":127,"meta":128,"style":128},"const signedBuffer = Buffer.from(signResult.signedTransaction, 'base64');\nconst txId = await connection.sendRawTransaction(signedBuffer);\nconsole.log('Transaction ID:', txId);\n",[2236],{"type":41,"tag":73,"props":2237,"children":2238},{"__ignoreMap":128},[2239,2305,2347],{"type":41,"tag":134,"props":2240,"children":2241},{"class":136,"line":137},[2242,2246,2251,2255,2259,2263,2267,2272,2276,2281,2285,2289,2293,2297,2301],{"type":41,"tag":134,"props":2243,"children":2244},{"style":213},[2245],{"type":47,"value":216},{"type":41,"tag":134,"props":2247,"children":2248},{"style":153},[2249],{"type":47,"value":2250}," signedBuffer ",{"type":41,"tag":134,"props":2252,"children":2253},{"style":147},[2254],{"type":47,"value":226},{"type":41,"tag":134,"props":2256,"children":2257},{"style":153},[2258],{"type":47,"value":1825},{"type":41,"tag":134,"props":2260,"children":2261},{"style":147},[2262],{"type":47,"value":310},{"type":41,"tag":134,"props":2264,"children":2265},{"style":234},[2266],{"type":47,"value":1834},{"type":41,"tag":134,"props":2268,"children":2269},{"style":153},[2270],{"type":47,"value":2271},"(signResult",{"type":41,"tag":134,"props":2273,"children":2274},{"style":147},[2275],{"type":47,"value":310},{"type":41,"tag":134,"props":2277,"children":2278},{"style":153},[2279],{"type":47,"value":2280},"signedTransaction",{"type":41,"tag":134,"props":2282,"children":2283},{"style":147},[2284],{"type":47,"value":161},{"type":41,"tag":134,"props":2286,"children":2287},{"style":147},[2288],{"type":47,"value":181},{"type":41,"tag":134,"props":2290,"children":2291},{"style":184},[2292],{"type":47,"value":1861},{"type":41,"tag":134,"props":2294,"children":2295},{"style":147},[2296],{"type":47,"value":192},{"type":41,"tag":134,"props":2298,"children":2299},{"style":153},[2300],{"type":47,"value":472},{"type":41,"tag":134,"props":2302,"children":2303},{"style":147},[2304],{"type":47,"value":197},{"type":41,"tag":134,"props":2306,"children":2307},{"class":136,"line":25},[2308,2312,2317,2321,2325,2329,2333,2338,2343],{"type":41,"tag":134,"props":2309,"children":2310},{"style":213},[2311],{"type":47,"value":216},{"type":41,"tag":134,"props":2313,"children":2314},{"style":153},[2315],{"type":47,"value":2316}," txId ",{"type":41,"tag":134,"props":2318,"children":2319},{"style":147},[2320],{"type":47,"value":226},{"type":41,"tag":134,"props":2322,"children":2323},{"style":141},[2324],{"type":47,"value":231},{"type":41,"tag":134,"props":2326,"children":2327},{"style":153},[2328],{"type":47,"value":1639},{"type":41,"tag":134,"props":2330,"children":2331},{"style":147},[2332],{"type":47,"value":310},{"type":41,"tag":134,"props":2334,"children":2335},{"style":234},[2336],{"type":47,"value":2337},"sendRawTransaction",{"type":41,"tag":134,"props":2339,"children":2340},{"style":153},[2341],{"type":47,"value":2342},"(signedBuffer)",{"type":41,"tag":134,"props":2344,"children":2345},{"style":147},[2346],{"type":47,"value":197},{"type":41,"tag":134,"props":2348,"children":2349},{"class":136,"line":209},[2350,2354,2358,2362,2366,2370,2375,2379,2383,2388],{"type":41,"tag":134,"props":2351,"children":2352},{"style":153},[2353],{"type":47,"value":1098},{"type":41,"tag":134,"props":2355,"children":2356},{"style":147},[2357],{"type":47,"value":310},{"type":41,"tag":134,"props":2359,"children":2360},{"style":234},[2361],{"type":47,"value":1107},{"type":41,"tag":134,"props":2363,"children":2364},{"style":153},[2365],{"type":47,"value":241},{"type":41,"tag":134,"props":2367,"children":2368},{"style":147},[2369],{"type":47,"value":192},{"type":41,"tag":134,"props":2371,"children":2372},{"style":184},[2373],{"type":47,"value":2374},"Transaction ID:",{"type":41,"tag":134,"props":2376,"children":2377},{"style":147},[2378],{"type":47,"value":192},{"type":41,"tag":134,"props":2380,"children":2381},{"style":147},[2382],{"type":47,"value":161},{"type":41,"tag":134,"props":2384,"children":2385},{"style":153},[2386],{"type":47,"value":2387}," txId)",{"type":41,"tag":134,"props":2389,"children":2390},{"style":147},[2391],{"type":47,"value":197},{"type":41,"tag":116,"props":2393,"children":2395},{"id":2394},"step-6-sign-and-send-a-transaction-signandsendtransaction",[2396],{"type":47,"value":2397},"Step 6: Sign and send a transaction (signAndSendTransaction)",{"type":41,"tag":57,"props":2399,"children":2400},{},[2401],{"type":47,"value":2402},"Signs and broadcasts the transaction in one step.",{"type":41,"tag":123,"props":2404,"children":2406},{"className":125,"code":2405,"language":127,"meta":128,"style":128},"const sendResult = await client.invokeMethod({\n  scope: SOLANA_MAINNET,\n  request: {\n    method: 'signAndSendTransaction',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      transaction: base64Transaction,\n      scope: SOLANA_MAINNET,\n    },\n  },\n});\n\n\u002F\u002F sendResult: { signature: \u003Cbase58 transaction signature> }\nconsole.log('Transaction signature:', sendResult.signature);\n",[2407],{"type":41,"tag":73,"props":2408,"children":2409},{"__ignoreMap":128},[2410,2450,2469,2484,2512,2527,2566,2585,2604,2611,2618,2633,2640,2648],{"type":41,"tag":134,"props":2411,"children":2412},{"class":136,"line":137},[2413,2417,2422,2426,2430,2434,2438,2442,2446],{"type":41,"tag":134,"props":2414,"children":2415},{"style":213},[2416],{"type":47,"value":216},{"type":41,"tag":134,"props":2418,"children":2419},{"style":153},[2420],{"type":47,"value":2421}," sendResult ",{"type":41,"tag":134,"props":2423,"children":2424},{"style":147},[2425],{"type":47,"value":226},{"type":41,"tag":134,"props":2427,"children":2428},{"style":141},[2429],{"type":47,"value":231},{"type":41,"tag":134,"props":2431,"children":2432},{"style":153},[2433],{"type":47,"value":533},{"type":41,"tag":134,"props":2435,"children":2436},{"style":147},[2437],{"type":47,"value":310},{"type":41,"tag":134,"props":2439,"children":2440},{"style":234},[2441],{"type":47,"value":78},{"type":41,"tag":134,"props":2443,"children":2444},{"style":153},[2445],{"type":47,"value":241},{"type":41,"tag":134,"props":2447,"children":2448},{"style":147},[2449],{"type":47,"value":246},{"type":41,"tag":134,"props":2451,"children":2452},{"class":136,"line":25},[2453,2457,2461,2465],{"type":41,"tag":134,"props":2454,"children":2455},{"style":253},[2456],{"type":47,"value":910},{"type":41,"tag":134,"props":2458,"children":2459},{"style":147},[2460],{"type":47,"value":261},{"type":41,"tag":134,"props":2462,"children":2463},{"style":153},[2464],{"type":47,"value":1986},{"type":41,"tag":134,"props":2466,"children":2467},{"style":147},[2468],{"type":47,"value":477},{"type":41,"tag":134,"props":2470,"children":2471},{"class":136,"line":209},[2472,2476,2480],{"type":41,"tag":134,"props":2473,"children":2474},{"style":253},[2475],{"type":47,"value":938},{"type":41,"tag":134,"props":2477,"children":2478},{"style":147},[2479],{"type":47,"value":261},{"type":41,"tag":134,"props":2481,"children":2482},{"style":147},[2483],{"type":47,"value":347},{"type":41,"tag":134,"props":2485,"children":2486},{"class":136,"line":249},[2487,2491,2495,2499,2504,2508],{"type":41,"tag":134,"props":2488,"children":2489},{"style":253},[2490],{"type":47,"value":954},{"type":41,"tag":134,"props":2492,"children":2493},{"style":147},[2494],{"type":47,"value":261},{"type":41,"tag":134,"props":2496,"children":2497},{"style":147},[2498],{"type":47,"value":181},{"type":41,"tag":134,"props":2500,"children":2501},{"style":184},[2502],{"type":47,"value":2503},"signAndSendTransaction",{"type":41,"tag":134,"props":2505,"children":2506},{"style":147},[2507],{"type":47,"value":192},{"type":41,"tag":134,"props":2509,"children":2510},{"style":147},[2511],{"type":47,"value":477},{"type":41,"tag":134,"props":2513,"children":2514},{"class":136,"line":332},[2515,2519,2523],{"type":41,"tag":134,"props":2516,"children":2517},{"style":253},[2518],{"type":47,"value":983},{"type":41,"tag":134,"props":2520,"children":2521},{"style":147},[2522],{"type":47,"value":261},{"type":41,"tag":134,"props":2524,"children":2525},{"style":147},[2526],{"type":47,"value":347},{"type":41,"tag":134,"props":2528,"children":2529},{"class":136,"line":350},[2530,2534,2538,2542,2546,2550,2554,2558,2562],{"type":41,"tag":134,"props":2531,"children":2532},{"style":253},[2533],{"type":47,"value":999},{"type":41,"tag":134,"props":2535,"children":2536},{"style":147},[2537],{"type":47,"value":261},{"type":41,"tag":134,"props":2539,"children":2540},{"style":147},[2541],{"type":47,"value":150},{"type":41,"tag":134,"props":2543,"children":2544},{"style":253},[2545],{"type":47,"value":1012},{"type":41,"tag":134,"props":2547,"children":2548},{"style":147},[2549],{"type":47,"value":261},{"type":41,"tag":134,"props":2551,"children":2552},{"style":147},[2553],{"type":47,"value":181},{"type":41,"tag":134,"props":2555,"children":2556},{"style":184},[2557],{"type":47,"value":1025},{"type":41,"tag":134,"props":2559,"children":2560},{"style":147},[2561],{"type":47,"value":192},{"type":41,"tag":134,"props":2563,"children":2564},{"style":147},[2565],{"type":47,"value":1034},{"type":41,"tag":134,"props":2567,"children":2568},{"class":136,"line":367},[2569,2573,2577,2581],{"type":41,"tag":134,"props":2570,"children":2571},{"style":253},[2572],{"type":47,"value":2095},{"type":41,"tag":134,"props":2574,"children":2575},{"style":147},[2576],{"type":47,"value":261},{"type":41,"tag":134,"props":2578,"children":2579},{"style":153},[2580],{"type":47,"value":2104},{"type":41,"tag":134,"props":2582,"children":2583},{"style":147},[2584],{"type":47,"value":477},{"type":41,"tag":134,"props":2586,"children":2587},{"class":136,"line":480},[2588,2592,2596,2600],{"type":41,"tag":134,"props":2589,"children":2590},{"style":253},[2591],{"type":47,"value":2116},{"type":41,"tag":134,"props":2593,"children":2594},{"style":147},[2595],{"type":47,"value":261},{"type":41,"tag":134,"props":2597,"children":2598},{"style":153},[2599],{"type":47,"value":1986},{"type":41,"tag":134,"props":2601,"children":2602},{"style":147},[2603],{"type":47,"value":477},{"type":41,"tag":134,"props":2605,"children":2606},{"class":136,"line":489},[2607],{"type":41,"tag":134,"props":2608,"children":2609},{"style":147},[2610],{"type":47,"value":486},{"type":41,"tag":134,"props":2612,"children":2613},{"class":136,"line":498},[2614],{"type":41,"tag":134,"props":2615,"children":2616},{"style":147},[2617],{"type":47,"value":495},{"type":41,"tag":134,"props":2619,"children":2620},{"class":136,"line":514},[2621,2625,2629],{"type":41,"tag":134,"props":2622,"children":2623},{"style":147},[2624],{"type":47,"value":467},{"type":41,"tag":134,"props":2626,"children":2627},{"style":153},[2628],{"type":47,"value":472},{"type":41,"tag":134,"props":2630,"children":2631},{"style":147},[2632],{"type":47,"value":197},{"type":41,"tag":134,"props":2634,"children":2635},{"class":136,"line":522},[2636],{"type":41,"tag":134,"props":2637,"children":2638},{"emptyLinePlaceholder":203},[2639],{"type":47,"value":206},{"type":41,"tag":134,"props":2641,"children":2642},{"class":136,"line":550},[2643],{"type":41,"tag":134,"props":2644,"children":2645},{"style":600},[2646],{"type":47,"value":2647},"\u002F\u002F sendResult: { signature: \u003Cbase58 transaction signature> }\n",{"type":41,"tag":134,"props":2649,"children":2650},{"class":136,"line":559},[2651,2655,2659,2663,2667,2671,2676,2680,2684,2689,2693,2697],{"type":41,"tag":134,"props":2652,"children":2653},{"style":153},[2654],{"type":47,"value":1098},{"type":41,"tag":134,"props":2656,"children":2657},{"style":147},[2658],{"type":47,"value":310},{"type":41,"tag":134,"props":2660,"children":2661},{"style":234},[2662],{"type":47,"value":1107},{"type":41,"tag":134,"props":2664,"children":2665},{"style":153},[2666],{"type":47,"value":241},{"type":41,"tag":134,"props":2668,"children":2669},{"style":147},[2670],{"type":47,"value":192},{"type":41,"tag":134,"props":2672,"children":2673},{"style":184},[2674],{"type":47,"value":2675},"Transaction signature:",{"type":41,"tag":134,"props":2677,"children":2678},{"style":147},[2679],{"type":47,"value":192},{"type":41,"tag":134,"props":2681,"children":2682},{"style":147},[2683],{"type":47,"value":161},{"type":41,"tag":134,"props":2685,"children":2686},{"style":153},[2687],{"type":47,"value":2688}," sendResult",{"type":41,"tag":134,"props":2690,"children":2691},{"style":147},[2692],{"type":47,"value":310},{"type":41,"tag":134,"props":2694,"children":2695},{"style":153},[2696],{"type":47,"value":1142},{"type":41,"tag":134,"props":2698,"children":2699},{"style":147},[2700],{"type":47,"value":197},{"type":41,"tag":116,"props":2702,"children":2704},{"id":2703},"step-7-devnet-transactions",[2705],{"type":47,"value":2706},"Step 7: Devnet transactions",{"type":41,"tag":57,"props":2708,"children":2709},{},[2710,2712,2717],{"type":47,"value":2711},"Connect with the devnet scope and point ",{"type":41,"tag":73,"props":2713,"children":2715},{"className":2714},[],[2716],{"type":47,"value":91},{"type":47,"value":2718}," at the devnet cluster:",{"type":41,"tag":123,"props":2720,"children":2722},{"className":125,"code":2721,"language":127,"meta":128,"style":128},"const SOLANA_DEVNET = 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1';\n\nawait client.connect([SOLANA_DEVNET], []);\n\nconst connection = new Connection(clusterApiUrl('devnet'));\n\n\u002F\u002F Build transaction with devnet connection...\nconst base64Tx = buildAndSerializeTransaction(connection);\n\nconst result = await client.invokeMethod({\n  scope: SOLANA_DEVNET,\n  request: {\n    method: 'signAndSendTransaction',\n    params: {\n      account: { address: 'YourSolanaAddressBase58' },\n      transaction: base64Tx,\n      scope: SOLANA_DEVNET,\n    },\n  },\n});\n",[2723],{"type":41,"tag":73,"props":2724,"children":2725},{"__ignoreMap":128},[2726,2758,2765,2802,2809,2865,2872,2880,2910,2917,2956,2976,2991,3018,3033,3072,3092,3111,3118,3125],{"type":41,"tag":134,"props":2727,"children":2728},{"class":136,"line":137},[2729,2733,2738,2742,2746,2750,2754],{"type":41,"tag":134,"props":2730,"children":2731},{"style":213},[2732],{"type":47,"value":216},{"type":41,"tag":134,"props":2734,"children":2735},{"style":153},[2736],{"type":47,"value":2737}," SOLANA_DEVNET ",{"type":41,"tag":134,"props":2739,"children":2740},{"style":147},[2741],{"type":47,"value":226},{"type":41,"tag":134,"props":2743,"children":2744},{"style":147},[2745],{"type":47,"value":181},{"type":41,"tag":134,"props":2747,"children":2748},{"style":184},[2749],{"type":47,"value":717},{"type":41,"tag":134,"props":2751,"children":2752},{"style":147},[2753],{"type":47,"value":192},{"type":41,"tag":134,"props":2755,"children":2756},{"style":147},[2757],{"type":47,"value":197},{"type":41,"tag":134,"props":2759,"children":2760},{"class":136,"line":25},[2761],{"type":41,"tag":134,"props":2762,"children":2763},{"emptyLinePlaceholder":203},[2764],{"type":47,"value":206},{"type":41,"tag":134,"props":2766,"children":2767},{"class":136,"line":209},[2768,2772,2776,2780,2784,2789,2793,2798],{"type":41,"tag":134,"props":2769,"children":2770},{"style":141},[2771],{"type":47,"value":528},{"type":41,"tag":134,"props":2773,"children":2774},{"style":153},[2775],{"type":47,"value":533},{"type":41,"tag":134,"props":2777,"children":2778},{"style":147},[2779],{"type":47,"value":310},{"type":41,"tag":134,"props":2781,"children":2782},{"style":234},[2783],{"type":47,"value":542},{"type":41,"tag":134,"props":2785,"children":2786},{"style":153},[2787],{"type":47,"value":2788},"([SOLANA_DEVNET]",{"type":41,"tag":134,"props":2790,"children":2791},{"style":147},[2792],{"type":47,"value":161},{"type":41,"tag":134,"props":2794,"children":2795},{"style":153},[2796],{"type":47,"value":2797}," [])",{"type":41,"tag":134,"props":2799,"children":2800},{"style":147},[2801],{"type":47,"value":197},{"type":41,"tag":134,"props":2803,"children":2804},{"class":136,"line":249},[2805],{"type":41,"tag":134,"props":2806,"children":2807},{"emptyLinePlaceholder":203},[2808],{"type":47,"value":206},{"type":41,"tag":134,"props":2810,"children":2811},{"class":136,"line":332},[2812,2816,2820,2824,2828,2832,2836,2840,2844,2848,2853,2857,2861],{"type":41,"tag":134,"props":2813,"children":2814},{"style":213},[2815],{"type":47,"value":216},{"type":41,"tag":134,"props":2817,"children":2818},{"style":153},[2819],{"type":47,"value":1294},{"type":41,"tag":134,"props":2821,"children":2822},{"style":147},[2823],{"type":47,"value":226},{"type":41,"tag":134,"props":2825,"children":2826},{"style":147},[2827],{"type":47,"value":1303},{"type":41,"tag":134,"props":2829,"children":2830},{"style":234},[2831],{"type":47,"value":1308},{"type":41,"tag":134,"props":2833,"children":2834},{"style":153},[2835],{"type":47,"value":241},{"type":41,"tag":134,"props":2837,"children":2838},{"style":234},[2839],{"type":47,"value":1317},{"type":41,"tag":134,"props":2841,"children":2842},{"style":153},[2843],{"type":47,"value":241},{"type":41,"tag":134,"props":2845,"children":2846},{"style":147},[2847],{"type":47,"value":192},{"type":41,"tag":134,"props":2849,"children":2850},{"style":184},[2851],{"type":47,"value":2852},"devnet",{"type":41,"tag":134,"props":2854,"children":2855},{"style":147},[2856],{"type":47,"value":192},{"type":41,"tag":134,"props":2858,"children":2859},{"style":153},[2860],{"type":47,"value":1339},{"type":41,"tag":134,"props":2862,"children":2863},{"style":147},[2864],{"type":47,"value":197},{"type":41,"tag":134,"props":2866,"children":2867},{"class":136,"line":350},[2868],{"type":41,"tag":134,"props":2869,"children":2870},{"emptyLinePlaceholder":203},[2871],{"type":47,"value":206},{"type":41,"tag":134,"props":2873,"children":2874},{"class":136,"line":367},[2875],{"type":41,"tag":134,"props":2876,"children":2877},{"style":600},[2878],{"type":47,"value":2879},"\u002F\u002F Build transaction with devnet connection...\n",{"type":41,"tag":134,"props":2881,"children":2882},{"class":136,"line":480},[2883,2887,2892,2896,2901,2906],{"type":41,"tag":134,"props":2884,"children":2885},{"style":213},[2886],{"type":47,"value":216},{"type":41,"tag":134,"props":2888,"children":2889},{"style":153},[2890],{"type":47,"value":2891}," base64Tx ",{"type":41,"tag":134,"props":2893,"children":2894},{"style":147},[2895],{"type":47,"value":226},{"type":41,"tag":134,"props":2897,"children":2898},{"style":234},[2899],{"type":47,"value":2900}," buildAndSerializeTransaction",{"type":41,"tag":134,"props":2902,"children":2903},{"style":153},[2904],{"type":47,"value":2905},"(connection)",{"type":41,"tag":134,"props":2907,"children":2908},{"style":147},[2909],{"type":47,"value":197},{"type":41,"tag":134,"props":2911,"children":2912},{"class":136,"line":489},[2913],{"type":41,"tag":134,"props":2914,"children":2915},{"emptyLinePlaceholder":203},[2916],{"type":47,"value":206},{"type":41,"tag":134,"props":2918,"children":2919},{"class":136,"line":498},[2920,2924,2928,2932,2936,2940,2944,2948,2952],{"type":41,"tag":134,"props":2921,"children":2922},{"style":213},[2923],{"type":47,"value":216},{"type":41,"tag":134,"props":2925,"children":2926},{"style":153},[2927],{"type":47,"value":874},{"type":41,"tag":134,"props":2929,"children":2930},{"style":147},[2931],{"type":47,"value":226},{"type":41,"tag":134,"props":2933,"children":2934},{"style":141},[2935],{"type":47,"value":231},{"type":41,"tag":134,"props":2937,"children":2938},{"style":153},[2939],{"type":47,"value":533},{"type":41,"tag":134,"props":2941,"children":2942},{"style":147},[2943],{"type":47,"value":310},{"type":41,"tag":134,"props":2945,"children":2946},{"style":234},[2947],{"type":47,"value":78},{"type":41,"tag":134,"props":2949,"children":2950},{"style":153},[2951],{"type":47,"value":241},{"type":41,"tag":134,"props":2953,"children":2954},{"style":147},[2955],{"type":47,"value":246},{"type":41,"tag":134,"props":2957,"children":2958},{"class":136,"line":514},[2959,2963,2967,2972],{"type":41,"tag":134,"props":2960,"children":2961},{"style":253},[2962],{"type":47,"value":910},{"type":41,"tag":134,"props":2964,"children":2965},{"style":147},[2966],{"type":47,"value":261},{"type":41,"tag":134,"props":2968,"children":2969},{"style":153},[2970],{"type":47,"value":2971}," SOLANA_DEVNET",{"type":41,"tag":134,"props":2973,"children":2974},{"style":147},[2975],{"type":47,"value":477},{"type":41,"tag":134,"props":2977,"children":2978},{"class":136,"line":522},[2979,2983,2987],{"type":41,"tag":134,"props":2980,"children":2981},{"style":253},[2982],{"type":47,"value":938},{"type":41,"tag":134,"props":2984,"children":2985},{"style":147},[2986],{"type":47,"value":261},{"type":41,"tag":134,"props":2988,"children":2989},{"style":147},[2990],{"type":47,"value":347},{"type":41,"tag":134,"props":2992,"children":2993},{"class":136,"line":550},[2994,2998,3002,3006,3010,3014],{"type":41,"tag":134,"props":2995,"children":2996},{"style":253},[2997],{"type":47,"value":954},{"type":41,"tag":134,"props":2999,"children":3000},{"style":147},[3001],{"type":47,"value":261},{"type":41,"tag":134,"props":3003,"children":3004},{"style":147},[3005],{"type":47,"value":181},{"type":41,"tag":134,"props":3007,"children":3008},{"style":184},[3009],{"type":47,"value":2503},{"type":41,"tag":134,"props":3011,"children":3012},{"style":147},[3013],{"type":47,"value":192},{"type":41,"tag":134,"props":3015,"children":3016},{"style":147},[3017],{"type":47,"value":477},{"type":41,"tag":134,"props":3019,"children":3020},{"class":136,"line":559},[3021,3025,3029],{"type":41,"tag":134,"props":3022,"children":3023},{"style":253},[3024],{"type":47,"value":983},{"type":41,"tag":134,"props":3026,"children":3027},{"style":147},[3028],{"type":47,"value":261},{"type":41,"tag":134,"props":3030,"children":3031},{"style":147},[3032],{"type":47,"value":347},{"type":41,"tag":134,"props":3034,"children":3035},{"class":136,"line":580},[3036,3040,3044,3048,3052,3056,3060,3064,3068],{"type":41,"tag":134,"props":3037,"children":3038},{"style":253},[3039],{"type":47,"value":999},{"type":41,"tag":134,"props":3041,"children":3042},{"style":147},[3043],{"type":47,"value":261},{"type":41,"tag":134,"props":3045,"children":3046},{"style":147},[3047],{"type":47,"value":150},{"type":41,"tag":134,"props":3049,"children":3050},{"style":253},[3051],{"type":47,"value":1012},{"type":41,"tag":134,"props":3053,"children":3054},{"style":147},[3055],{"type":47,"value":261},{"type":41,"tag":134,"props":3057,"children":3058},{"style":147},[3059],{"type":47,"value":181},{"type":41,"tag":134,"props":3061,"children":3062},{"style":184},[3063],{"type":47,"value":1025},{"type":41,"tag":134,"props":3065,"children":3066},{"style":147},[3067],{"type":47,"value":192},{"type":41,"tag":134,"props":3069,"children":3070},{"style":147},[3071],{"type":47,"value":1034},{"type":41,"tag":134,"props":3073,"children":3074},{"class":136,"line":606},[3075,3079,3083,3088],{"type":41,"tag":134,"props":3076,"children":3077},{"style":253},[3078],{"type":47,"value":2095},{"type":41,"tag":134,"props":3080,"children":3081},{"style":147},[3082],{"type":47,"value":261},{"type":41,"tag":134,"props":3084,"children":3085},{"style":153},[3086],{"type":47,"value":3087}," base64Tx",{"type":41,"tag":134,"props":3089,"children":3090},{"style":147},[3091],{"type":47,"value":477},{"type":41,"tag":134,"props":3093,"children":3094},{"class":136,"line":619},[3095,3099,3103,3107],{"type":41,"tag":134,"props":3096,"children":3097},{"style":253},[3098],{"type":47,"value":2116},{"type":41,"tag":134,"props":3100,"children":3101},{"style":147},[3102],{"type":47,"value":261},{"type":41,"tag":134,"props":3104,"children":3105},{"style":153},[3106],{"type":47,"value":2971},{"type":41,"tag":134,"props":3108,"children":3109},{"style":147},[3110],{"type":47,"value":477},{"type":41,"tag":134,"props":3112,"children":3113},{"class":136,"line":632},[3114],{"type":41,"tag":134,"props":3115,"children":3116},{"style":147},[3117],{"type":47,"value":486},{"type":41,"tag":134,"props":3119,"children":3120},{"class":136,"line":1586},[3121],{"type":41,"tag":134,"props":3122,"children":3123},{"style":147},[3124],{"type":47,"value":495},{"type":41,"tag":134,"props":3126,"children":3127},{"class":136,"line":1598},[3128,3132,3136],{"type":41,"tag":134,"props":3129,"children":3130},{"style":147},[3131],{"type":47,"value":467},{"type":41,"tag":134,"props":3133,"children":3134},{"style":153},[3135],{"type":47,"value":472},{"type":41,"tag":134,"props":3137,"children":3138},{"style":147},[3139],{"type":47,"value":197},{"type":41,"tag":116,"props":3141,"children":3143},{"id":3142},"step-8-selective-disconnect",[3144],{"type":47,"value":3145},"Step 8: Selective disconnect",{"type":41,"tag":57,"props":3147,"children":3148},{},[3149],{"type":47,"value":3150},"Disconnect only Solana scopes while keeping EVM sessions active:",{"type":41,"tag":123,"props":3152,"children":3154},{"className":125,"code":3153,"language":127,"meta":128,"style":128},"\u002F\u002F Disconnect only Solana mainnet — EVM scopes remain connected\nawait client.disconnect(['solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp']);\n\n\u002F\u002F Disconnect all scopes (full session teardown)\nawait client.disconnect();\n",[3155],{"type":41,"tag":73,"props":3156,"children":3157},{"__ignoreMap":128},[3158,3166,3212,3219,3227],{"type":41,"tag":134,"props":3159,"children":3160},{"class":136,"line":137},[3161],{"type":41,"tag":134,"props":3162,"children":3163},{"style":600},[3164],{"type":47,"value":3165},"\u002F\u002F Disconnect only Solana mainnet — EVM scopes remain connected\n",{"type":41,"tag":134,"props":3167,"children":3168},{"class":136,"line":25},[3169,3173,3177,3181,3186,3191,3195,3199,3203,3208],{"type":41,"tag":134,"props":3170,"children":3171},{"style":141},[3172],{"type":47,"value":528},{"type":41,"tag":134,"props":3174,"children":3175},{"style":153},[3176],{"type":47,"value":533},{"type":41,"tag":134,"props":3178,"children":3179},{"style":147},[3180],{"type":47,"value":310},{"type":41,"tag":134,"props":3182,"children":3183},{"style":234},[3184],{"type":47,"value":3185},"disconnect",{"type":41,"tag":134,"props":3187,"children":3188},{"style":153},[3189],{"type":47,"value":3190},"([",{"type":41,"tag":134,"props":3192,"children":3193},{"style":147},[3194],{"type":47,"value":192},{"type":41,"tag":134,"props":3196,"children":3197},{"style":184},[3198],{"type":47,"value":453},{"type":41,"tag":134,"props":3200,"children":3201},{"style":147},[3202],{"type":47,"value":192},{"type":41,"tag":134,"props":3204,"children":3205},{"style":153},[3206],{"type":47,"value":3207},"])",{"type":41,"tag":134,"props":3209,"children":3210},{"style":147},[3211],{"type":47,"value":197},{"type":41,"tag":134,"props":3213,"children":3214},{"class":136,"line":209},[3215],{"type":41,"tag":134,"props":3216,"children":3217},{"emptyLinePlaceholder":203},[3218],{"type":47,"value":206},{"type":41,"tag":134,"props":3220,"children":3221},{"class":136,"line":249},[3222],{"type":41,"tag":134,"props":3223,"children":3224},{"style":600},[3225],{"type":47,"value":3226},"\u002F\u002F Disconnect all scopes (full session teardown)\n",{"type":41,"tag":134,"props":3228,"children":3229},{"class":136,"line":332},[3230,3234,3238,3242,3246,3250],{"type":41,"tag":134,"props":3231,"children":3232},{"style":141},[3233],{"type":47,"value":528},{"type":41,"tag":134,"props":3235,"children":3236},{"style":153},[3237],{"type":47,"value":533},{"type":41,"tag":134,"props":3239,"children":3240},{"style":147},[3241],{"type":47,"value":310},{"type":41,"tag":134,"props":3243,"children":3244},{"style":234},[3245],{"type":47,"value":3185},{"type":41,"tag":134,"props":3247,"children":3248},{"style":153},[3249],{"type":47,"value":1479},{"type":41,"tag":134,"props":3251,"children":3252},{"style":147},[3253],{"type":47,"value":197},{"type":41,"tag":116,"props":3255,"children":3257},{"id":3256},"step-9-error-handling",[3258],{"type":47,"value":3259},"Step 9: Error handling",{"type":41,"tag":57,"props":3261,"children":3262},{},[3263,3268,3270,3276,3278,3283,3285,3291,3293,3299,3301,3307],{"type":41,"tag":73,"props":3264,"children":3266},{"className":3265},[],[3267],{"type":47,"value":78},{"type":47,"value":3269}," errors are wrapped in ",{"type":41,"tag":73,"props":3271,"children":3273},{"className":3272},[],[3274],{"type":47,"value":3275},"RPCInvokeMethodErr",{"type":47,"value":3277}," — its own ",{"type":41,"tag":73,"props":3279,"children":3281},{"className":3280},[],[3282],{"type":47,"value":73},{"type":47,"value":3284}," is always ",{"type":41,"tag":73,"props":3286,"children":3288},{"className":3287},[],[3289],{"type":47,"value":3290},"53",{"type":47,"value":3292},", and the wallet's original EIP-1193 \u002F JSON-RPC code (e.g. ",{"type":41,"tag":73,"props":3294,"children":3296},{"className":3295},[],[3297],{"type":47,"value":3298},"4001",{"type":47,"value":3300}," user rejection) is on ",{"type":41,"tag":73,"props":3302,"children":3304},{"className":3303},[],[3305],{"type":47,"value":3306},"rpcCode",{"type":47,"value":261},{"type":41,"tag":123,"props":3309,"children":3311},{"className":125,"code":3310,"language":127,"meta":128,"style":128},"import { RPCInvokeMethodErr } from '@metamask\u002Fconnect-multichain';\n\ntry {\n  await client.invokeMethod({\n    scope: SOLANA_MAINNET,\n    request: {\n      method: 'signAndSendTransaction',\n      params: {\n        account: { address: 'YourSolanaAddressBase58' },\n        transaction: base64Tx,\n        scope: SOLANA_MAINNET,\n      },\n    },\n  });\n} catch (err) {\n  if (err instanceof RPCInvokeMethodErr && err.rpcCode === 4001) {\n    \u002F\u002F User rejected the transaction in MetaMask — not an app error\n  } else {\n    console.error('Solana transaction error:', err);\n  }\n}\n",[3312],{"type":41,"tag":73,"props":3313,"children":3314},{"__ignoreMap":128},[3315,3355,3362,3374,3402,3422,3438,3466,3482,3522,3542,3562,3570,3577,3592,3613,3677,3685,3701,3751,3759],{"type":41,"tag":134,"props":3316,"children":3317},{"class":136,"line":137},[3318,3322,3326,3331,3335,3339,3343,3347,3351],{"type":41,"tag":134,"props":3319,"children":3320},{"style":141},[3321],{"type":47,"value":144},{"type":41,"tag":134,"props":3323,"children":3324},{"style":147},[3325],{"type":47,"value":150},{"type":41,"tag":134,"props":3327,"children":3328},{"style":153},[3329],{"type":47,"value":3330}," RPCInvokeMethodErr",{"type":41,"tag":134,"props":3332,"children":3333},{"style":147},[3334],{"type":47,"value":171},{"type":41,"tag":134,"props":3336,"children":3337},{"style":141},[3338],{"type":47,"value":176},{"type":41,"tag":134,"props":3340,"children":3341},{"style":147},[3342],{"type":47,"value":181},{"type":41,"tag":134,"props":3344,"children":3345},{"style":184},[3346],{"type":47,"value":187},{"type":41,"tag":134,"props":3348,"children":3349},{"style":147},[3350],{"type":47,"value":192},{"type":41,"tag":134,"props":3352,"children":3353},{"style":147},[3354],{"type":47,"value":197},{"type":41,"tag":134,"props":3356,"children":3357},{"class":136,"line":25},[3358],{"type":41,"tag":134,"props":3359,"children":3360},{"emptyLinePlaceholder":203},[3361],{"type":47,"value":206},{"type":41,"tag":134,"props":3363,"children":3364},{"class":136,"line":209},[3365,3370],{"type":41,"tag":134,"props":3366,"children":3367},{"style":141},[3368],{"type":47,"value":3369},"try",{"type":41,"tag":134,"props":3371,"children":3372},{"style":147},[3373],{"type":47,"value":347},{"type":41,"tag":134,"props":3375,"children":3376},{"class":136,"line":249},[3377,3382,3386,3390,3394,3398],{"type":41,"tag":134,"props":3378,"children":3379},{"style":141},[3380],{"type":47,"value":3381},"  await",{"type":41,"tag":134,"props":3383,"children":3384},{"style":153},[3385],{"type":47,"value":533},{"type":41,"tag":134,"props":3387,"children":3388},{"style":147},[3389],{"type":47,"value":310},{"type":41,"tag":134,"props":3391,"children":3392},{"style":234},[3393],{"type":47,"value":78},{"type":41,"tag":134,"props":3395,"children":3396},{"style":253},[3397],{"type":47,"value":241},{"type":41,"tag":134,"props":3399,"children":3400},{"style":147},[3401],{"type":47,"value":246},{"type":41,"tag":134,"props":3403,"children":3404},{"class":136,"line":332},[3405,3410,3414,3418],{"type":41,"tag":134,"props":3406,"children":3407},{"style":253},[3408],{"type":47,"value":3409},"    scope",{"type":41,"tag":134,"props":3411,"children":3412},{"style":147},[3413],{"type":47,"value":261},{"type":41,"tag":134,"props":3415,"children":3416},{"style":153},[3417],{"type":47,"value":1986},{"type":41,"tag":134,"props":3419,"children":3420},{"style":147},[3421],{"type":47,"value":477},{"type":41,"tag":134,"props":3423,"children":3424},{"class":136,"line":350},[3425,3430,3434],{"type":41,"tag":134,"props":3426,"children":3427},{"style":253},[3428],{"type":47,"value":3429},"    request",{"type":41,"tag":134,"props":3431,"children":3432},{"style":147},[3433],{"type":47,"value":261},{"type":41,"tag":134,"props":3435,"children":3436},{"style":147},[3437],{"type":47,"value":347},{"type":41,"tag":134,"props":3439,"children":3440},{"class":136,"line":367},[3441,3446,3450,3454,3458,3462],{"type":41,"tag":134,"props":3442,"children":3443},{"style":253},[3444],{"type":47,"value":3445},"      method",{"type":41,"tag":134,"props":3447,"children":3448},{"style":147},[3449],{"type":47,"value":261},{"type":41,"tag":134,"props":3451,"children":3452},{"style":147},[3453],{"type":47,"value":181},{"type":41,"tag":134,"props":3455,"children":3456},{"style":184},[3457],{"type":47,"value":2503},{"type":41,"tag":134,"props":3459,"children":3460},{"style":147},[3461],{"type":47,"value":192},{"type":41,"tag":134,"props":3463,"children":3464},{"style":147},[3465],{"type":47,"value":477},{"type":41,"tag":134,"props":3467,"children":3468},{"class":136,"line":480},[3469,3474,3478],{"type":41,"tag":134,"props":3470,"children":3471},{"style":253},[3472],{"type":47,"value":3473},"      params",{"type":41,"tag":134,"props":3475,"children":3476},{"style":147},[3477],{"type":47,"value":261},{"type":41,"tag":134,"props":3479,"children":3480},{"style":147},[3481],{"type":47,"value":347},{"type":41,"tag":134,"props":3483,"children":3484},{"class":136,"line":489},[3485,3490,3494,3498,3502,3506,3510,3514,3518],{"type":41,"tag":134,"props":3486,"children":3487},{"style":253},[3488],{"type":47,"value":3489},"        account",{"type":41,"tag":134,"props":3491,"children":3492},{"style":147},[3493],{"type":47,"value":261},{"type":41,"tag":134,"props":3495,"children":3496},{"style":147},[3497],{"type":47,"value":150},{"type":41,"tag":134,"props":3499,"children":3500},{"style":253},[3501],{"type":47,"value":1012},{"type":41,"tag":134,"props":3503,"children":3504},{"style":147},[3505],{"type":47,"value":261},{"type":41,"tag":134,"props":3507,"children":3508},{"style":147},[3509],{"type":47,"value":181},{"type":41,"tag":134,"props":3511,"children":3512},{"style":184},[3513],{"type":47,"value":1025},{"type":41,"tag":134,"props":3515,"children":3516},{"style":147},[3517],{"type":47,"value":192},{"type":41,"tag":134,"props":3519,"children":3520},{"style":147},[3521],{"type":47,"value":1034},{"type":41,"tag":134,"props":3523,"children":3524},{"class":136,"line":498},[3525,3530,3534,3538],{"type":41,"tag":134,"props":3526,"children":3527},{"style":253},[3528],{"type":47,"value":3529},"        transaction",{"type":41,"tag":134,"props":3531,"children":3532},{"style":147},[3533],{"type":47,"value":261},{"type":41,"tag":134,"props":3535,"children":3536},{"style":153},[3537],{"type":47,"value":3087},{"type":41,"tag":134,"props":3539,"children":3540},{"style":147},[3541],{"type":47,"value":477},{"type":41,"tag":134,"props":3543,"children":3544},{"class":136,"line":514},[3545,3550,3554,3558],{"type":41,"tag":134,"props":3546,"children":3547},{"style":253},[3548],{"type":47,"value":3549},"        scope",{"type":41,"tag":134,"props":3551,"children":3552},{"style":147},[3553],{"type":47,"value":261},{"type":41,"tag":134,"props":3555,"children":3556},{"style":153},[3557],{"type":47,"value":1986},{"type":41,"tag":134,"props":3559,"children":3560},{"style":147},[3561],{"type":47,"value":477},{"type":41,"tag":134,"props":3563,"children":3564},{"class":136,"line":522},[3565],{"type":41,"tag":134,"props":3566,"children":3567},{"style":147},[3568],{"type":47,"value":3569},"      },\n",{"type":41,"tag":134,"props":3571,"children":3572},{"class":136,"line":550},[3573],{"type":41,"tag":134,"props":3574,"children":3575},{"style":147},[3576],{"type":47,"value":486},{"type":41,"tag":134,"props":3578,"children":3579},{"class":136,"line":559},[3580,3584,3588],{"type":41,"tag":134,"props":3581,"children":3582},{"style":147},[3583],{"type":47,"value":1575},{"type":41,"tag":134,"props":3585,"children":3586},{"style":253},[3587],{"type":47,"value":472},{"type":41,"tag":134,"props":3589,"children":3590},{"style":147},[3591],{"type":47,"value":197},{"type":41,"tag":134,"props":3593,"children":3594},{"class":136,"line":580},[3595,3599,3604,3609],{"type":41,"tag":134,"props":3596,"children":3597},{"style":147},[3598],{"type":47,"value":467},{"type":41,"tag":134,"props":3600,"children":3601},{"style":141},[3602],{"type":47,"value":3603}," catch",{"type":41,"tag":134,"props":3605,"children":3606},{"style":153},[3607],{"type":47,"value":3608}," (err) ",{"type":41,"tag":134,"props":3610,"children":3611},{"style":147},[3612],{"type":47,"value":246},{"type":41,"tag":134,"props":3614,"children":3615},{"class":136,"line":606},[3616,3621,3625,3630,3635,3640,3645,3650,3654,3658,3663,3668,3673],{"type":41,"tag":134,"props":3617,"children":3618},{"style":141},[3619],{"type":47,"value":3620},"  if",{"type":41,"tag":134,"props":3622,"children":3623},{"style":253},[3624],{"type":47,"value":1630},{"type":41,"tag":134,"props":3626,"children":3627},{"style":153},[3628],{"type":47,"value":3629},"err",{"type":41,"tag":134,"props":3631,"children":3632},{"style":147},[3633],{"type":47,"value":3634}," instanceof",{"type":41,"tag":134,"props":3636,"children":3638},{"style":3637},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[3639],{"type":47,"value":3330},{"type":41,"tag":134,"props":3641,"children":3642},{"style":147},[3643],{"type":47,"value":3644}," &&",{"type":41,"tag":134,"props":3646,"children":3647},{"style":153},[3648],{"type":47,"value":3649}," err",{"type":41,"tag":134,"props":3651,"children":3652},{"style":147},[3653],{"type":47,"value":310},{"type":41,"tag":134,"props":3655,"children":3656},{"style":153},[3657],{"type":47,"value":3306},{"type":41,"tag":134,"props":3659,"children":3660},{"style":147},[3661],{"type":47,"value":3662}," ===",{"type":41,"tag":134,"props":3664,"children":3665},{"style":1555},[3666],{"type":47,"value":3667}," 4001",{"type":41,"tag":134,"props":3669,"children":3670},{"style":253},[3671],{"type":47,"value":3672},") ",{"type":41,"tag":134,"props":3674,"children":3675},{"style":147},[3676],{"type":47,"value":246},{"type":41,"tag":134,"props":3678,"children":3679},{"class":136,"line":619},[3680],{"type":41,"tag":134,"props":3681,"children":3682},{"style":600},[3683],{"type":47,"value":3684},"    \u002F\u002F User rejected the transaction in MetaMask — not an app error\n",{"type":41,"tag":134,"props":3686,"children":3687},{"class":136,"line":632},[3688,3692,3697],{"type":41,"tag":134,"props":3689,"children":3690},{"style":147},[3691],{"type":47,"value":1575},{"type":41,"tag":134,"props":3693,"children":3694},{"style":141},[3695],{"type":47,"value":3696}," else",{"type":41,"tag":134,"props":3698,"children":3699},{"style":147},[3700],{"type":47,"value":347},{"type":41,"tag":134,"props":3702,"children":3703},{"class":136,"line":1586},[3704,3709,3713,3718,3722,3726,3731,3735,3739,3743,3747],{"type":41,"tag":134,"props":3705,"children":3706},{"style":153},[3707],{"type":47,"value":3708},"    console",{"type":41,"tag":134,"props":3710,"children":3711},{"style":147},[3712],{"type":47,"value":310},{"type":41,"tag":134,"props":3714,"children":3715},{"style":234},[3716],{"type":47,"value":3717},"error",{"type":41,"tag":134,"props":3719,"children":3720},{"style":253},[3721],{"type":47,"value":241},{"type":41,"tag":134,"props":3723,"children":3724},{"style":147},[3725],{"type":47,"value":192},{"type":41,"tag":134,"props":3727,"children":3728},{"style":184},[3729],{"type":47,"value":3730},"Solana transaction error:",{"type":41,"tag":134,"props":3732,"children":3733},{"style":147},[3734],{"type":47,"value":192},{"type":41,"tag":134,"props":3736,"children":3737},{"style":147},[3738],{"type":47,"value":161},{"type":41,"tag":134,"props":3740,"children":3741},{"style":153},[3742],{"type":47,"value":3649},{"type":41,"tag":134,"props":3744,"children":3745},{"style":253},[3746],{"type":47,"value":472},{"type":41,"tag":134,"props":3748,"children":3749},{"style":147},[3750],{"type":47,"value":197},{"type":41,"tag":134,"props":3752,"children":3753},{"class":136,"line":1598},[3754],{"type":41,"tag":134,"props":3755,"children":3756},{"style":147},[3757],{"type":47,"value":3758},"  }\n",{"type":41,"tag":134,"props":3760,"children":3761},{"class":136,"line":1606},[3762],{"type":41,"tag":134,"props":3763,"children":3764},{"style":147},[3765],{"type":47,"value":3766},"}\n",{"type":41,"tag":50,"props":3768,"children":3770},{"id":3769},"important-notes",[3771],{"type":47,"value":3772},"Important Notes",{"type":41,"tag":63,"props":3774,"children":3775},{},[3776,3793,3803,3852,3876,3886,3904,3929,3982],{"type":41,"tag":67,"props":3777,"children":3778},{},[3779,3784,3786,3791],{"type":41,"tag":652,"props":3780,"children":3781},{},[3782],{"type":47,"value":3783},"All Solana methods go to the wallet.",{"type":47,"value":3785}," There is no RPC node routing for Solana — every ",{"type":41,"tag":73,"props":3787,"children":3789},{"className":3788},[],[3790],{"type":47,"value":78},{"type":47,"value":3792}," call with a Solana scope prompts MetaMask.",{"type":41,"tag":67,"props":3794,"children":3795},{},[3796,3801],{"type":41,"tag":652,"props":3797,"children":3798},{},[3799],{"type":47,"value":3800},"Base64 encoding required.",{"type":47,"value":3802}," Transactions and messages must be base64-encoded strings, not raw buffers or hex.",{"type":41,"tag":67,"props":3804,"children":3805},{},[3806,3818,3820,3826,3828,3834,3836,3842,3844,3850],{"type":41,"tag":652,"props":3807,"children":3808},{},[3809,3811,3816],{"type":47,"value":3810},"Use ",{"type":41,"tag":73,"props":3812,"children":3814},{"className":3813},[],[3815],{"type":47,"value":91},{"type":47,"value":3817}," to build transactions.",{"type":47,"value":3819}," Construct ",{"type":41,"tag":73,"props":3821,"children":3823},{"className":3822},[],[3824],{"type":47,"value":3825},"Transaction",{"type":47,"value":3827}," objects, set ",{"type":41,"tag":73,"props":3829,"children":3831},{"className":3830},[],[3832],{"type":47,"value":3833},"recentBlockhash",{"type":47,"value":3835}," and ",{"type":41,"tag":73,"props":3837,"children":3839},{"className":3838},[],[3840],{"type":47,"value":3841},"feePayer",{"type":47,"value":3843},", serialize with ",{"type":41,"tag":73,"props":3845,"children":3847},{"className":3846},[],[3848],{"type":47,"value":3849},"requireAllSignatures: false",{"type":47,"value":3851},", then base64-encode.",{"type":41,"tag":67,"props":3853,"children":3854},{},[3855,3860,3862,3867,3869,3874],{"type":41,"tag":652,"props":3856,"children":3857},{},[3858],{"type":47,"value":3859},"CAIP-2 genesis hash IDs.",{"type":47,"value":3861}," Mainnet is ",{"type":41,"tag":73,"props":3863,"children":3865},{"className":3864},[],[3866],{"type":47,"value":453},{"type":47,"value":3868},". Devnet is ",{"type":41,"tag":73,"props":3870,"children":3872},{"className":3871},[],[3873],{"type":47,"value":717},{"type":47,"value":3875},". These are not cluster URLs — they are genesis hash identifiers.",{"type":41,"tag":67,"props":3877,"children":3878},{},[3879,3884],{"type":41,"tag":652,"props":3880,"children":3881},{},[3882],{"type":47,"value":3883},"Solana networks.",{"type":47,"value":3885}," Mainnet, devnet, and testnet scopes are all modeled by the SDK; non-mainnet availability depends on the connected MetaMask build\u002Fversion, so handle connection errors rather than assuming a cluster is present.",{"type":41,"tag":67,"props":3887,"children":3888},{},[3889,3894,3896,3902],{"type":41,"tag":652,"props":3890,"children":3891},{},[3892],{"type":47,"value":3893},"Selective disconnect preserves other scopes.",{"type":47,"value":3895}," Passing specific Solana scopes to ",{"type":41,"tag":73,"props":3897,"children":3899},{"className":3898},[],[3900],{"type":47,"value":3901},"disconnect()",{"type":47,"value":3903}," only revokes those scopes. EVM scopes remain active.",{"type":41,"tag":67,"props":3905,"children":3906},{},[3907,3912,3914,3919,3921,3927],{"type":41,"tag":652,"props":3908,"children":3909},{},[3910],{"type":47,"value":3911},"Connected scopes required.",{"type":47,"value":3913}," ",{"type":41,"tag":73,"props":3915,"children":3917},{"className":3916},[],[3918],{"type":47,"value":78},{"type":47,"value":3920}," fails if the Solana scope was not included in the original ",{"type":41,"tag":73,"props":3922,"children":3924},{"className":3923},[],[3925],{"type":47,"value":3926},"connect()",{"type":47,"value":3928}," call.",{"type":41,"tag":67,"props":3930,"children":3931},{},[3932,3944,3946,3951,3953,3958,3960,3965,3967,3972,3974,3980],{"type":41,"tag":652,"props":3933,"children":3934},{},[3935,3937,3942],{"type":47,"value":3936},"Method names have no ",{"type":41,"tag":73,"props":3938,"children":3940},{"className":3939},[],[3941],{"type":47,"value":784},{"type":47,"value":3943}," prefix.",{"type":47,"value":3945}," The MetaMask Multichain API methods are ",{"type":41,"tag":73,"props":3947,"children":3949},{"className":3948},[],[3950],{"type":47,"value":967},{"type":47,"value":3952},", ",{"type":41,"tag":73,"props":3954,"children":3956},{"className":3955},[],[3957],{"type":47,"value":2025},{"type":47,"value":3959},", and ",{"type":41,"tag":73,"props":3961,"children":3963},{"className":3962},[],[3964],{"type":47,"value":2503},{"type":47,"value":3966},", each taking ",{"type":41,"tag":73,"props":3968,"children":3970},{"className":3969},[],[3971],{"type":47,"value":801},{"type":47,"value":3973}," in params. (",{"type":41,"tag":73,"props":3975,"children":3977},{"className":3976},[],[3978],{"type":47,"value":3979},"solana_*",{"type":47,"value":3981},"-prefixed names are WalletConnect's schema, not MetaMask's.)",{"type":41,"tag":67,"props":3983,"children":3984},{},[3985,4001,4003,4008,4010,4015,4017,4022,4024,4030],{"type":41,"tag":652,"props":3986,"children":3987},{},[3988,3993,3995,4000],{"type":41,"tag":73,"props":3989,"children":3991},{"className":3990},[],[3992],{"type":47,"value":2025},{"type":47,"value":3994}," vs ",{"type":41,"tag":73,"props":3996,"children":3998},{"className":3997},[],[3999],{"type":47,"value":2503},{"type":47,"value":261},{"type":47,"value":4002}," Use ",{"type":41,"tag":73,"props":4004,"children":4006},{"className":4005},[],[4007],{"type":47,"value":2025},{"type":47,"value":4009}," when you need to inspect or modify the signed output before broadcasting (result field: ",{"type":41,"tag":73,"props":4011,"children":4013},{"className":4012},[],[4014],{"type":47,"value":2280},{"type":47,"value":4016},", base64). Use ",{"type":41,"tag":73,"props":4018,"children":4020},{"className":4019},[],[4021],{"type":47,"value":2503},{"type":47,"value":4023}," for the common case where you want a single atomic operation (result field: ",{"type":41,"tag":73,"props":4025,"children":4027},{"className":4026},[],[4028],{"type":47,"value":4029},"signature",{"type":47,"value":4031},", base58).",{"type":41,"tag":4033,"props":4034,"children":4035},"style",{},[4036],{"type":47,"value":4037},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4039,"total":1769},[4040,4060,4074,4086,4095,4105,4119,4133,4148,4159,4169,4179],{"slug":4041,"name":4041,"fn":4042,"description":4043,"org":4044,"tags":4045,"stars":4057,"repoUrl":4058,"updatedAt":4059},"smart-accounts-kit","build dApps with MetaMask Smart Accounts","Build dApps with MetaMask Smart Accounts Kit — ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4046,4047,4050,4053,4056],{"name":23,"slug":24,"type":15},{"name":4048,"slug":4049,"type":15},"Auth","auth",{"name":4051,"slug":4052,"type":15},"Ethereum","ethereum",{"name":4054,"slug":4055,"type":15},"Permissions","permissions",{"name":17,"slug":18,"type":15},54,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fsmart-accounts-kit","2026-07-13T06:11:32.8327",{"slug":4061,"name":4061,"fn":4062,"description":4063,"org":4064,"tags":4065,"stars":4057,"repoUrl":4058,"updatedAt":4073},"x402-payments","build x402 payment flows","Build x402 payment flows using MetaMask Smart Accounts Kit, machine to machine payments over HTTP with ERC-7710 delegations and ERC-7715 Advanced Permissions",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4066,4067,4070,4071],{"name":23,"slug":24,"type":15},{"name":4068,"slug":4069,"type":15},"Payments","payments",{"name":17,"slug":18,"type":15},{"name":4072,"slug":4072,"type":15},"x402","2026-07-13T06:11:30.877136",{"slug":4075,"name":4075,"fn":4076,"description":4077,"org":4078,"tags":4079,"stars":489,"repoUrl":4084,"updatedAt":4085},"discovery","discover and use services","Use the discovery tools to find and use services through a service matcher. Do not rely on prior knowledge of services, providers, or APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4080,4081],{"name":23,"slug":24,"type":15},{"name":4082,"slug":4083,"type":15},"Search","search","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Focap-kernel","2026-07-13T06:12:37.024095",{"slug":8,"name":8,"fn":4087,"description":4088,"org":4089,"tags":4090,"stars":489,"repoUrl":4084,"updatedAt":4094},"interact with MetaMask wallet capabilities","Use the MetaMask tools to request and interact with wallet capabilities from the MetaMask capability vendor.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4091,4092,4093],{"name":23,"slug":24,"type":15},{"name":4051,"slug":4052,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:33.955806",{"slug":4096,"name":4096,"fn":4097,"description":4098,"org":4099,"tags":4100,"stars":489,"repoUrl":4084,"updatedAt":4104},"wallet","manage wallet balances and transactions","Use the wallet tools for all balance, send, and sign operations. Supports both ETH and ERC-20 tokens. The away wallet operates autonomously after setup — the home device does not need to be online.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4101,4102,4103],{"name":4051,"slug":4052,"type":15},{"name":4068,"slug":4069,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:35.380244",{"slug":4106,"name":4106,"fn":4107,"description":4108,"org":4109,"tags":4110,"stars":367,"repoUrl":4117,"updatedAt":4118},"metamask-connect","integrate MetaMask into dApps","Build dApps that integrate MetaMask via the MetaMask Connect SDK — EVM (@metamask\u002Fconnect-evm), Solana (@metamask\u002Fconnect-solana), and multichain (@metamask\u002Fconnect-multichain), plus the wagmi metaMask() connector. Covers client setup across browser\u002FReact\u002FReact Native, connecting, signing messages, sending transactions, multichain invokeMethod across CAIP-2 scopes, migrating from @metamask\u002Fsdk, and troubleshooting connection\u002Fpolyfill issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4111,4112,4113,4114,4116],{"name":23,"slug":24,"type":15},{"name":4051,"slug":4052,"type":15},{"name":20,"slug":21,"type":15},{"name":4115,"slug":4115,"type":15},"wagmi",{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fconnect-monorepo","2026-07-13T06:11:34.445665",{"slug":4120,"name":4120,"fn":4121,"description":4122,"org":4123,"tags":4124,"stars":332,"repoUrl":4131,"updatedAt":4132},"metamask-agent-wallet","manage blockchain wallets and transactions","Use when the user asks anything about blockchain wallets, transactions, signing, token transfers, supported chains, wallet balances, perpetual futures trading, prediction markets, token swaps, cross-chain bridges, market data, token discovery, decoding EVM calldata, DeFi earn\u002Fyield vaults, or authentication via the MetaMask Agentic CLI; also when an HTTP request returns 402 Payment Required (x402) or the agent needs to pay for a paywalled API, endpoint, file, or resource over HTTP. Single entry point for all mm CLI operations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4125,4126,4129,4130],{"name":13,"slug":14,"type":15},{"name":4127,"slug":4128,"type":15},"DeFi","defi",{"name":4051,"slug":4052,"type":15},{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fagent-skills","2026-08-01T05:45:07.976522",{"slug":4134,"name":4134,"fn":4135,"description":4136,"org":4137,"tags":4138,"stars":25,"repoUrl":26,"updatedAt":4147},"migrate-from-sdk","migrate MetaMask SDK to connect-evm and connect-solana","Migrate from @metamask\u002Fsdk to @metamask\u002Fconnect-evm, @metamask\u002Fconnect-multichain, and @metamask\u002Fconnect-solana with step-by-step package, API, and configuration changes",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4139,4140,4143,4146],{"name":4051,"slug":4052,"type":15},{"name":4141,"slug":4142,"type":15},"Migration","migration",{"name":4144,"slug":4145,"type":15},"SDK","sdk",{"name":17,"slug":18,"type":15},"2026-07-13T06:11:46.427441",{"slug":4149,"name":4149,"fn":4150,"description":4151,"org":4152,"tags":4153,"stars":25,"repoUrl":26,"updatedAt":4158},"migrate-wagmi-metamask-connector","migrate wagmi apps to MetaMask connector","Migrate a wagmi app from @metamask\u002Fsdk to the new @metamask\u002Fconnect-evm connector (wagmi PR",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4154,4155,4156,4157],{"name":4051,"slug":4052,"type":15},{"name":4141,"slug":4142,"type":15},{"name":4115,"slug":4115,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:23.110706",{"slug":4160,"name":4160,"fn":4161,"description":4162,"org":4163,"tags":4164,"stars":25,"repoUrl":26,"updatedAt":4168},"send-evm-transaction","send EVM transactions with MetaMask","Send ETH and contract transactions with MetaMask using eth_sendTransaction via the EIP-1193 provider, gas estimation, receipt polling, and the connectWith shortcut",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4165,4166,4167],{"name":23,"slug":24,"type":15},{"name":4051,"slug":4052,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:11:56.866623",{"slug":4170,"name":4170,"fn":4171,"description":4172,"org":4173,"tags":4174,"stars":25,"repoUrl":26,"updatedAt":4178},"send-solana-transaction","send Solana transactions via MetaMask","Build and send a Solana transaction using MetaMask Connect. Covers both the React wallet-adapter approach (sendTransaction) and the vanilla browser approach (signAndSendTransaction wallet-standard feature).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4175,4176,4177],{"name":4068,"slug":4069,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:03.942378",{"slug":4180,"name":4180,"fn":4181,"description":4182,"org":4183,"tags":4184,"stars":25,"repoUrl":26,"updatedAt":4195},"setup-evm-browser-app","scaffold EVM browser applications with MetaMask","Scaffold a vanilla JS\u002FTS browser app with MetaMask EVM integration using createEVMClient, EIP-1193 provider event listeners, RPC methods, and chain switching with chainConfiguration fallback",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4185,4186,4189,4192,4194],{"name":4051,"slug":4052,"type":15},{"name":4187,"slug":4188,"type":15},"Frontend","frontend",{"name":4190,"slug":4191,"type":15},"JavaScript","javascript",{"name":4193,"slug":127,"type":15},"TypeScript",{"name":17,"slug":18,"type":15},"2026-07-13T06:12:01.334051",{"items":4197,"total":632},[4198,4205,4212,4218,4224,4232,4246],{"slug":4134,"name":4134,"fn":4135,"description":4136,"org":4199,"tags":4200,"stars":25,"repoUrl":26,"updatedAt":4147},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4201,4202,4203,4204],{"name":4051,"slug":4052,"type":15},{"name":4141,"slug":4142,"type":15},{"name":4144,"slug":4145,"type":15},{"name":17,"slug":18,"type":15},{"slug":4149,"name":4149,"fn":4150,"description":4151,"org":4206,"tags":4207,"stars":25,"repoUrl":26,"updatedAt":4158},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4208,4209,4210,4211],{"name":4051,"slug":4052,"type":15},{"name":4141,"slug":4142,"type":15},{"name":4115,"slug":4115,"type":15},{"name":17,"slug":18,"type":15},{"slug":4160,"name":4160,"fn":4161,"description":4162,"org":4213,"tags":4214,"stars":25,"repoUrl":26,"updatedAt":4168},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4215,4216,4217],{"name":23,"slug":24,"type":15},{"name":4051,"slug":4052,"type":15},{"name":17,"slug":18,"type":15},{"slug":4170,"name":4170,"fn":4171,"description":4172,"org":4219,"tags":4220,"stars":25,"repoUrl":26,"updatedAt":4178},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4221,4222,4223],{"name":4068,"slug":4069,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"slug":4180,"name":4180,"fn":4181,"description":4182,"org":4225,"tags":4226,"stars":25,"repoUrl":26,"updatedAt":4195},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4227,4228,4229,4230,4231],{"name":4051,"slug":4052,"type":15},{"name":4187,"slug":4188,"type":15},{"name":4190,"slug":4191,"type":15},{"name":4193,"slug":127,"type":15},{"name":17,"slug":18,"type":15},{"slug":4233,"name":4233,"fn":4234,"description":4235,"org":4236,"tags":4237,"stars":25,"repoUrl":26,"updatedAt":4245},"setup-evm-react-app","scaffold React apps with MetaMask integration","Scaffold a React app with MetaMask EVM integration using createEVMClient, useState\u002FuseEffect\u002FuseRef patterns, provider.request calls, chain switching, and error handling",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4238,4239,4240,4241,4244],{"name":23,"slug":24,"type":15},{"name":4051,"slug":4052,"type":15},{"name":4187,"slug":4188,"type":15},{"name":4242,"slug":4243,"type":15},"React","react",{"name":17,"slug":18,"type":15},"2026-07-13T06:11:52.764143",{"slug":4247,"name":4247,"fn":4248,"description":4249,"org":4250,"tags":4251,"stars":25,"repoUrl":26,"updatedAt":4260},"setup-evm-react-native-app","scaffold React Native apps with MetaMask","Scaffold a React Native app with MetaMask EVM integration including required polyfills, metro.config.js shims, import order constraints, mobile deeplinks, and a full component example",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4252,4253,4256,4259],{"name":4051,"slug":4052,"type":15},{"name":4254,"slug":4255,"type":15},"Mobile","mobile",{"name":4257,"slug":4258,"type":15},"React Native","react-native",{"name":17,"slug":18,"type":15},"2026-07-13T06:12:11.764689"]