[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77K71JXHDF5RGEE6SGY7H37":3,"skill-same:01M77K71JXHDF5RGEE6SGY7H37":173},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M77K71JXHDF5RGEE6SGY7H37","data",null,"Querying Stellar chain data via Stellar RPC (preferred) and Horizon (legacy). Covers RPC JSON-RPC methods, Horizon REST endpoints, streaming, pagination, historical queries, Hubble\u002FGalexie for deep history, and the RPC\u002FHorizon migration story. Use when reading balances, transactions, operations, ledgers, contract events, or building any indexer\u002Fanalytics workflow.","WritzProtocol\u002Fwritz","WritzProtocol","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F296057967?v=4","01M77K5N0T3073T814APZTAXM4","Writz Protocol","01M77K5N1WQ551ZKCCK9MR379A",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: data\ndescription: Querying Stellar chain data via Stellar RPC (preferred) and Horizon (legacy). Covers RPC JSON-RPC methods, Horizon REST endpoints, streaming, pagination, historical queries, Hubble\u002FGalexie for deep history, and the RPC\u002FHorizon migration story. Use when reading balances, transactions, operations, ledgers, contract events, or building any indexer\u002Fanalytics workflow.\nmetadata:\n  user-invocable: \"true\"\n  argument-hint: \"[data task]\"\n---\n\n# Stellar Data: RPC + Horizon\n\nAPI access for reading chain state. Stellar RPC is the preferred entry point for new projects; Horizon remains for legacy and historical-query workflows. For deeper history beyond RPC's 7-day window, use Hubble\u002FGalexie.\n\n## When to use this skill\n- Calling Stellar RPC methods (`getLatestLedger`, `getLedgerEntries`, `getEvents`, `simulateTransaction`, `sendTransaction`)\n- Querying Horizon endpoints (accounts, transactions, operations, effects, ledgers)\n- Streaming live events or operations\n- Pulling historical data beyond RPC's 7-day window (Hubble, Galexie)\n- Choosing between RPC and Horizon for a given workflow\n\n## Related skills\n- Building transactions to send → `..\u002Fdapp\u002FSKILL.md`\n- Soroban contract simulation and event emission → `..\u002Fsoroban\u002FSKILL.md`\n- Asset balance and trustline lookups → `..\u002Fassets\u002FSKILL.md`\n- Standards (SEP-7 deeplinks, SEP-10 auth) → `..\u002Fstandards\u002FSKILL.md`\n\n---\n\n\n## Overview\n\nStellar provides two API paradigms:\n\n| API | Status | Use Case |\n|-----|--------|----------|\n| **Stellar RPC** | Preferred | Soroban, real-time state, new projects |\n| **Horizon** | Legacy-focused | Historical data, legacy applications |\n\n**Recommendation**: Use Stellar RPC for all new projects. Use Horizon mainly for historical queries and legacy compatibility paths.\n\n## Quick Navigation\n- RPC methods and usage: [Stellar RPC](#stellar-rpc)\n- Horizon endpoints and streaming: [Horizon API (Legacy)](#horizon-api-legacy)\n- Migration strategy: [Migration: Horizon to RPC](#migration-horizon-to-rpc)\n- Data history\u002Findexing options: [Historical Data Access](#historical-data-access)\n- Environment setup and endpoints: [Network Configuration](#network-configuration)\n\n## Stellar RPC\n\n### Endpoints\n\n> Note: SDF directly provides Futurenet public RPC. For Mainnet RPC, select a provider from the [RPC providers directory](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fproviders).\n\n| Network | RPC URL |\n|---------|---------|\n| Mainnet | Provider-specific endpoint (see [RPC providers directory](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fproviders)) |\n| Testnet | `https:\u002F\u002Fsoroban-testnet.stellar.org` |\n| Futurenet | `https:\u002F\u002Frpc-futurenet.stellar.org` |\n| Local | `http:\u002F\u002Flocalhost:8000\u002Fsoroban\u002Frpc` |\n\n### Setup\n\n```typescript\nimport * as StellarSdk from \"@stellar\u002Fstellar-sdk\";\n\nconst rpc = new StellarSdk.rpc.Server(\"https:\u002F\u002Fsoroban-testnet.stellar.org\");\n```\n\n### Key Methods\n\n#### Get Account\n\n```typescript\nconst account = await rpc.getAccount(publicKey);\n\u002F\u002F Returns account with sequence number for transaction building\n```\n\n#### Get Health\n\n```typescript\nconst health = await rpc.getHealth();\n\u002F\u002F { status: \"healthy\" }\n```\n\n#### Get Latest Ledger\n\n```typescript\nconst ledger = await rpc.getLatestLedger();\n\u002F\u002F { id: \"...\", sequence: 123456, protocolVersion: 25 }\n```\n\n#### Get Ledger Entries\n\n```typescript\n\u002F\u002F Read contract storage\nconst key = StellarSdk.xdr.LedgerKey.contractData(\n  new StellarSdk.xdr.LedgerKeyContractData({\n    contract: new StellarSdk.Address(contractId).toScAddress(),\n    key: StellarSdk.xdr.ScVal.scvSymbol(\"Counter\"),\n    durability: StellarSdk.xdr.ContractDataDurability.persistent(),\n  })\n);\n\nconst entries = await rpc.getLedgerEntries(key);\nif (entries.entries.length > 0) {\n  const value = StellarSdk.scValToNative(\n    entries.entries[0].val.contractData().val()\n  );\n}\n```\n\n#### Simulate Transaction\n\n```typescript\nconst simulation = await rpc.simulateTransaction(transaction);\n\nif (StellarSdk.rpc.Api.isSimulationError(simulation)) {\n  console.error(\"Simulation failed:\", simulation.error);\n} else if (StellarSdk.rpc.Api.isSimulationSuccess(simulation)) {\n  console.log(\"Cost:\", simulation.cost);\n  console.log(\"Result:\", simulation.result);\n}\n```\n\n#### Send Transaction\n\n```typescript\nconst response = await rpc.sendTransaction(signedTransaction);\n\nif (response.status === \"PENDING\") {\n  \u002F\u002F Poll for result\n  let result = await rpc.getTransaction(response.hash);\n  while (result.status === \"NOT_FOUND\") {\n    await new Promise(r => setTimeout(r, 1000));\n    result = await rpc.getTransaction(response.hash);\n  }\n\n  if (result.status === \"SUCCESS\") {\n    console.log(\"Success:\", result.returnValue);\n  } else {\n    console.error(\"Failed:\", result.status);\n  }\n}\n```\n\n#### Get Transaction\n\n```typescript\nconst tx = await rpc.getTransaction(txHash);\n\u002F\u002F status: \"SUCCESS\" | \"FAILED\" | \"NOT_FOUND\"\n\u002F\u002F returnValue: ScVal (for contract calls)\n\u002F\u002F ledger: number\n```\n\n#### Get Events\n\n```typescript\nconst events = await rpc.getEvents({\n  startLedger: 1000000,\n  filters: [\n    {\n      type: \"contract\",\n      contractIds: [contractId],\n      topics: [\n        [\"*\", StellarSdk.xdr.ScVal.scvSymbol(\"transfer\").toXDR(\"base64\")],\n      ],\n    },\n  ],\n});\n\nfor (const event of events.events) {\n  console.log(\"Event:\", event.topic, event.value);\n}\n```\n\n### RPC Limitations\n\n- **7-day history for most methods**: `getTransaction`, `getEvents`, etc. only cover recent data\n- **`getLedgers` exception**: \"Infinite Scroll\" feature queries any ledger back to genesis via the data lake\n- **No streaming**: Poll for updates (no WebSocket)\n- **Contract-focused**: Limited classic Stellar data\n\n## Horizon API (Legacy)\n\n### Endpoints\n\n| Network | Horizon URL |\n|---------|-------------|\n| Mainnet | `https:\u002F\u002Fhorizon.stellar.org` |\n| Testnet | `https:\u002F\u002Fhorizon-testnet.stellar.org` |\n| Local | `http:\u002F\u002Flocalhost:8000` |\n\n### Setup\n\n```typescript\nimport * as StellarSdk from \"@stellar\u002Fstellar-sdk\";\n\nconst server = new StellarSdk.Horizon.Server(\"https:\u002F\u002Fhorizon-testnet.stellar.org\");\n```\n\n### Common Operations\n\n#### Load Account\n\n```typescript\nconst account = await server.loadAccount(publicKey);\n\u002F\u002F Full account details including balances, signers, data\n```\n\n#### Get Account Balances\n\n```typescript\nconst account = await server.loadAccount(publicKey);\nfor (const balance of account.balances) {\n  if (balance.asset_type === \"native\") {\n    console.log(\"XLM:\", balance.balance);\n  } else {\n    console.log(`${balance.asset_code}:`, balance.balance);\n  }\n}\n```\n\n#### Get Transactions\n\n```typescript\n\u002F\u002F Account transactions\nconst transactions = await server\n  .transactions()\n  .forAccount(publicKey)\n  .order(\"desc\")\n  .limit(10)\n  .call();\n\n\u002F\u002F Specific transaction\nconst tx = await server\n  .transactions()\n  .transaction(txHash)\n  .call();\n```\n\n#### Get Operations\n\n```typescript\nconst operations = await server\n  .operations()\n  .forAccount(publicKey)\n  .order(\"desc\")\n  .limit(20)\n  .call();\n\nfor (const op of operations.records) {\n  console.log(op.type, op.created_at);\n}\n```\n\n#### Get Payments\n\n```typescript\nconst payments = await server\n  .payments()\n  .forAccount(publicKey)\n  .order(\"desc\")\n  .call();\n\nfor (const payment of payments.records) {\n  if (payment.type === \"payment\") {\n    console.log(\n      `${payment.from} -> ${payment.to}: ${payment.amount} ${payment.asset_code || \"XLM\"}`\n    );\n  }\n}\n```\n\n#### Get Effects\n\n```typescript\nconst effects = await server\n  .effects()\n  .forAccount(publicKey)\n  .limit(50)\n  .call();\n```\n\n#### Streaming (Server-Sent Events)\n\n```typescript\n\u002F\u002F Stream transactions\nconst closeHandler = server\n  .transactions()\n  .forAccount(publicKey)\n  .cursor(\"now\")\n  .stream({\n    onmessage: (tx) => {\n      console.log(\"New transaction:\", tx.hash);\n    },\n    onerror: (error) => {\n      console.error(\"Stream error:\", error);\n    },\n  });\n\n\u002F\u002F Close stream when done\ncloseHandler();\n```\n\n#### Submit Transaction\n\n```typescript\ntry {\n  const result = await server.submitTransaction(signedTransaction);\n  console.log(\"Success:\", result.hash);\n} catch (error) {\n  if (error.response?.data?.extras?.result_codes) {\n    console.error(\"Error codes:\", error.response.data.extras.result_codes);\n  }\n}\n```\n\n### Pagination\n\n```typescript\n\u002F\u002F First page\nlet page = await server.transactions().forAccount(publicKey).limit(10).call();\n\n\u002F\u002F Next page\nif (page.records.length > 0) {\n  page = await page.next();\n}\n\n\u002F\u002F Previous page\npage = await page.prev();\n```\n\n## Migration: Horizon to RPC\n\n### Account Loading\n\n```typescript\n\u002F\u002F Horizon (old)\nconst account = await horizonServer.loadAccount(publicKey);\n\n\u002F\u002F RPC (new)\nconst account = await rpc.getAccount(publicKey);\n\u002F\u002F Note: RPC returns less data, just what's needed for transactions\n```\n\n### Transaction Submission\n\n```typescript\n\u002F\u002F Horizon (for classic transactions)\nconst result = await horizonServer.submitTransaction(tx);\n\n\u002F\u002F RPC (for Soroban transactions)\nconst response = await rpc.sendTransaction(tx);\nconst result = await pollForResult(response.hash);\n```\n\n### Historical Data\n\n```typescript\n\u002F\u002F Horizon - full history\nconst allTxs = await horizonServer\n  .transactions()\n  .forAccount(publicKey)\n  .call();\n\n\u002F\u002F RPC - most methods limited to 7 days\n\u002F\u002F Exception: getLedgers can query back to genesis (Infinite Scroll)\n\u002F\u002F For full historical data, use:\n\u002F\u002F 1. Hubble (SDF's BigQuery dataset)\n\u002F\u002F 2. Galexie (data pipeline)\n\u002F\u002F 3. Your own indexer\n```\n\n### Streaming Replacement\n\n```typescript\n\u002F\u002F Horizon - native streaming\nserver.payments().stream({ onmessage: handlePayment });\n\n\u002F\u002F RPC - polling (no native streaming)\nasync function pollForUpdates() {\n  const lastLedger = await rpc.getLatestLedger();\n  \u002F\u002F Check for new events\u002Ftransactions\n  \u002F\u002F Repeat on interval\n}\nsetInterval(pollForUpdates, 5000);\n```\n\n## Historical Data Access\n\nFor data older than 7 days (not available via most RPC methods; `getLedgers` can reach genesis via Infinite Scroll):\n\n### Hubble (BigQuery)\n\n```sql\n-- Query Stellar data in BigQuery\nSELECT *\nFROM `crypto-stellar.crypto_stellar.history_transactions`\nWHERE source_account = 'G...'\nORDER BY created_at DESC\nLIMIT 100\n```\n\n### Galexie\n\nSelf-hosted data pipeline for processing Stellar ledger data:\n- https:\u002F\u002Fgithub.com\u002Fstellar\u002Fgalexie\n\n### Data Lake\n\nRPC \"Infinite Scroll\" is powered by the Stellar data lake - a cloud-based object store (SEP-0054 format):\n- **Public access**: `s3:\u002F\u002Faws-public-blockchain\u002Fv1.1\u002Fstellar\u002Fledgers\u002Fpubnet` (AWS Open Data)\n- **Self-host**: Use Galexie to export to AWS S3 or Google Cloud Storage\n- **Hosted**: [Quasar (Lightsail Network)](https:\u002F\u002Fquasar.lightsail.network) provides hosted Galexie Data Lake + Archive RPC endpoints\n- **Size**: ~3.8TB, growing ~0.5TB\u002Fyear\n- **Cost**: ~$160\u002Fmonth self-hosted ($60 compute + $100 storage)\n- **Docs**: https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fadmin-guide\u002Fdata-lake-integration\n\n### Third-Party Indexers\n\nFor complex queries, event streaming, or custom data pipelines beyond what RPC\u002FHorizon provide:\n\n- **Mercury** - Stellar-native indexer with Retroshades, GraphQL API (https:\u002F\u002Fmercurydata.app)\n- **SubQuery** - Multi-chain indexer with Stellar\u002FSoroban support, event handlers (https:\u002F\u002Fsubquery.network)\n- **Goldsky** - Real-time data replication pipelines and subgraphs (https:\u002F\u002Fgoldsky.com)\n- **StellarExpert API** - Free, no-auth REST API for assets, accounts, ledger resolution (https:\u002F\u002Fstellar.expert\u002Fopenapi.html)\n\nSee the full indexer directory: https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Findexers\n\n## Network Configuration\n\n> For a React\u002FNext.js-specific setup, see [frontend-stellar-sdk.md](..\u002Fdapp\u002FSKILL.md).\n> For mainnet RPC, set `STELLAR_MAINNET_RPC_URL` from a provider in the [RPC providers directory](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fproviders).\n\n### Environment-Based Setup\n\n```typescript\n\u002F\u002F lib\u002Fstellar-config.ts\nimport * as StellarSdk from \"@stellar\u002Fstellar-sdk\";\n\ntype NetworkConfig = {\n  rpcUrl: string;\n  horizonUrl: string;\n  networkPassphrase: string;\n  friendbotUrl: string | null;\n};\n\nconst requireEnv = (name: string): string => {\n  const value = process.env[name];\n  if (!value) throw new Error(`Missing required env var: ${name}`);\n  return value;\n};\n\nconst configs: Record\u003Cstring, NetworkConfig> = {\n  mainnet: {\n    rpcUrl: requireEnv(\"STELLAR_MAINNET_RPC_URL\"),\n    horizonUrl: \"https:\u002F\u002Fhorizon.stellar.org\",\n    networkPassphrase: StellarSdk.Networks.PUBLIC,\n    friendbotUrl: null,\n  },\n  testnet: {\n    rpcUrl: \"https:\u002F\u002Fsoroban-testnet.stellar.org\",\n    horizonUrl: \"https:\u002F\u002Fhorizon-testnet.stellar.org\",\n    networkPassphrase: StellarSdk.Networks.TESTNET,\n    friendbotUrl: \"https:\u002F\u002Ffriendbot.stellar.org\",\n  },\n  local: {\n    rpcUrl: \"http:\u002F\u002Flocalhost:8000\u002Fsoroban\u002Frpc\",\n    horizonUrl: \"http:\u002F\u002Flocalhost:8000\",\n    networkPassphrase: \"Standalone Network ; February 2017\",\n    friendbotUrl: \"http:\u002F\u002Flocalhost:8000\u002Ffriendbot\",\n  },\n};\n\nconst network = process.env.STELLAR_NETWORK || \"testnet\";\nexport const config = configs[network];\n\nexport const rpc = new StellarSdk.rpc.Server(config.rpcUrl);\nexport const horizon = new StellarSdk.Horizon.Server(config.horizonUrl);\n```\n\n## Best Practices\n\n### Use RPC for:\n- New application development\n- Soroban contract interactions\n- Transaction simulation and submission\n- Real-time account state\n\n### Use Horizon for:\n- Historical transaction queries\n- Payment streaming\n- Legacy application maintenance\n- Rich account metadata\n\n### Error Handling\n\n```typescript\n\u002F\u002F RPC errors\ntry {\n  const result = await rpc.sendTransaction(tx);\n} catch (error) {\n  if (error.code === 400) {\n    \u002F\u002F Invalid transaction\n  } else if (error.code === 503) {\n    \u002F\u002F Service unavailable\n  }\n}\n\n\u002F\u002F Horizon errors\ntry {\n  const result = await horizon.submitTransaction(tx);\n} catch (error) {\n  const extras = error.response?.data?.extras;\n  if (extras?.result_codes) {\n    \u002F\u002F Detailed error codes\n    console.log(\"Transaction:\", extras.result_codes.transaction);\n    console.log(\"Operations:\", extras.result_codes.operations);\n  }\n}\n```\n\n### Rate Limiting\n\nBoth RPC and Horizon have rate limits:\n- Use exponential backoff for retries\n- Cache responses where appropriate\n- Consider running your own nodes for high-volume applications\n\n```typescript\nasync function withRetry\u003CT>(fn: () => Promise\u003CT>, maxRetries = 3): Promise\u003CT> {\n  let lastError: Error;\n  for (let i = 0; i \u003C maxRetries; i++) {\n    try {\n      return await fn();\n    } catch (error) {\n      lastError = error;\n      if (error.response?.status === 429) {\n        \u002F\u002F Rate limited - exponential backoff\n        await new Promise(r => setTimeout(r, Math.pow(2, i) * 1000));\n      } else {\n        throw error;\n      }\n    }\n  }\n  throw lastError;\n}\n```\n","# Stellar Data: RPC + Horizon\n\nAPI access for reading chain state. Stellar RPC is the preferred entry point for new projects; Horizon remains for legacy and historical-query workflows. For deeper history beyond RPC's 7-day window, use Hubble\u002FGalexie.\n\n## When to use this skill\n- Calling Stellar RPC methods (`getLatestLedger`, `getLedgerEntries`, `getEvents`, `simulateTransaction`, `sendTransaction`)\n- Querying Horizon endpoints (accounts, transactions, operations, effects, ledgers)\n- Streaming live events or operations\n- Pulling historical data beyond RPC's 7-day window (Hubble, Galexie)\n- Choosing between RPC and Horizon for a given workflow\n\n## Related skills\n- Building transactions to send → `..\u002Fdapp\u002FSKILL.md`\n- Soroban contract simulation and event emission → `..\u002Fsoroban\u002FSKILL.md`\n- Asset balance and trustline lookups → `..\u002Fassets\u002FSKILL.md`\n- Standards (SEP-7 deeplinks, SEP-10 auth) → `..\u002Fstandards\u002FSKILL.md`\n\n---\n\n\n## Overview\n\nStellar provides two API paradigms:\n\n| API | Status | Use Case |\n|-----|--------|----------|\n| **Stellar RPC** | Preferred | Soroban, real-time state, new projects |\n| **Horizon** | Legacy-focused | Historical data, legacy applications |\n\n**Recommendation**: Use Stellar RPC for all new projects. Use Horizon mainly for historical queries and legacy compatibility paths.\n\n## Quick Navigation\n- RPC methods and usage: [Stellar RPC](#stellar-rpc)\n- Horizon endpoints and streaming: [Horizon API (Legacy)](#horizon-api-legacy)\n- Migration strategy: [Migration: Horizon to RPC](#migration-horizon-to-rpc)\n- Data history\u002Findexing options: [Historical Data Access](#historical-data-access)\n- Environment setup and endpoints: [Network Configuration](#network-configuration)\n\n## Stellar RPC\n\n### Endpoints\n\n> Note: SDF directly provides Futurenet public RPC. For Mainnet RPC, select a provider from the [RPC providers directory](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fproviders).\n\n| Network | RPC URL |\n|---------|---------|\n| Mainnet | Provider-specific endpoint (see [RPC providers directory](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fproviders)) |\n| Testnet | `https:\u002F\u002Fsoroban-testnet.stellar.org` |\n| Futurenet | `https:\u002F\u002Frpc-futurenet.stellar.org` |\n| Local | `http:\u002F\u002Flocalhost:8000\u002Fsoroban\u002Frpc` |\n\n### Setup\n\n```typescript\nimport * as StellarSdk from \"@stellar\u002Fstellar-sdk\";\n\nconst rpc = new StellarSdk.rpc.Server(\"https:\u002F\u002Fsoroban-testnet.stellar.org\");\n```\n\n### Key Methods\n\n#### Get Account\n\n```typescript\nconst account = await rpc.getAccount(publicKey);\n\u002F\u002F Returns account with sequence number for transaction building\n```\n\n#### Get Health\n\n```typescript\nconst health = await rpc.getHealth();\n\u002F\u002F { status: \"healthy\" }\n```\n\n#### Get Latest Ledger\n\n```typescript\nconst ledger = await rpc.getLatestLedger();\n\u002F\u002F { id: \"...\", sequence: 123456, protocolVersion: 25 }\n```\n\n#### Get Ledger Entries\n\n```typescript\n\u002F\u002F Read contract storage\nconst key = StellarSdk.xdr.LedgerKey.contractData(\n  new StellarSdk.xdr.LedgerKeyContractData({\n    contract: new StellarSdk.Address(contractId).toScAddress(),\n    key: StellarSdk.xdr.ScVal.scvSymbol(\"Counter\"),\n    durability: StellarSdk.xdr.ContractDataDurability.persistent(),\n  })\n);\n\nconst entries = await rpc.getLedgerEntries(key);\nif (entries.entries.length > 0) {\n  const value = StellarSdk.scValToNative(\n    entries.entries[0].val.contractData().val()\n  );\n}\n```\n\n#### Simulate Transaction\n\n```typescript\nconst simulation = await rpc.simulateTransaction(transaction);\n\nif (StellarSdk.rpc.Api.isSimulationError(simulation)) {\n  console.error(\"Simulation failed:\", simulation.error);\n} else if (StellarSdk.rpc.Api.isSimulationSuccess(simulation)) {\n  console.log(\"Cost:\", simulation.cost);\n  console.log(\"Result:\", simulation.result);\n}\n```\n\n#### Send Transaction\n\n```typescript\nconst response = await rpc.sendTransaction(signedTransaction);\n\nif (response.status === \"PENDING\") {\n  \u002F\u002F Poll for result\n  let result = await rpc.getTransaction(response.hash);\n  while (result.status === \"NOT_FOUND\") {\n    await new Promise(r => setTimeout(r, 1000));\n    result = await rpc.getTransaction(response.hash);\n  }\n\n  if (result.status === \"SUCCESS\") {\n    console.log(\"Success:\", result.returnValue);\n  } else {\n    console.error(\"Failed:\", result.status);\n  }\n}\n```\n\n#### Get Transaction\n\n```typescript\nconst tx = await rpc.getTransaction(txHash);\n\u002F\u002F status: \"SUCCESS\" | \"FAILED\" | \"NOT_FOUND\"\n\u002F\u002F returnValue: ScVal (for contract calls)\n\u002F\u002F ledger: number\n```\n\n#### Get Events\n\n```typescript\nconst events = await rpc.getEvents({\n  startLedger: 1000000,\n  filters: [\n    {\n      type: \"contract\",\n      contractIds: [contractId],\n      topics: [\n        [\"*\", StellarSdk.xdr.ScVal.scvSymbol(\"transfer\").toXDR(\"base64\")],\n      ],\n    },\n  ],\n});\n\nfor (const event of events.events) {\n  console.log(\"Event:\", event.topic, event.value);\n}\n```\n\n### RPC Limitations\n\n- **7-day history for most methods**: `getTransaction`, `getEvents`, etc. only cover recent data\n- **`getLedgers` exception**: \"Infinite Scroll\" feature queries any ledger back to genesis via the data lake\n- **No streaming**: Poll for updates (no WebSocket)\n- **Contract-focused**: Limited classic Stellar data\n\n## Horizon API (Legacy)\n\n### Endpoints\n\n| Network | Horizon URL |\n|---------|-------------|\n| Mainnet | `https:\u002F\u002Fhorizon.stellar.org` |\n| Testnet | `https:\u002F\u002Fhorizon-testnet.stellar.org` |\n| Local | `http:\u002F\u002Flocalhost:8000` |\n\n### Setup\n\n```typescript\nimport * as StellarSdk from \"@stellar\u002Fstellar-sdk\";\n\nconst server = new StellarSdk.Horizon.Server(\"https:\u002F\u002Fhorizon-testnet.stellar.org\");\n```\n\n### Common Operations\n\n#### Load Account\n\n```typescript\nconst account = await server.loadAccount(publicKey);\n\u002F\u002F Full account details including balances, signers, data\n```\n\n#### Get Account Balances\n\n```typescript\nconst account = await server.loadAccount(publicKey);\nfor (const balance of account.balances) {\n  if (balance.asset_type === \"native\") {\n    console.log(\"XLM:\", balance.balance);\n  } else {\n    console.log(`${balance.asset_code}:`, balance.balance);\n  }\n}\n```\n\n#### Get Transactions\n\n```typescript\n\u002F\u002F Account transactions\nconst transactions = await server\n  .transactions()\n  .forAccount(publicKey)\n  .order(\"desc\")\n  .limit(10)\n  .call();\n\n\u002F\u002F Specific transaction\nconst tx = await server\n  .transactions()\n  .transaction(txHash)\n  .call();\n```\n\n#### Get Operations\n\n```typescript\nconst operations = await server\n  .operations()\n  .forAccount(publicKey)\n  .order(\"desc\")\n  .limit(20)\n  .call();\n\nfor (const op of operations.records) {\n  console.log(op.type, op.created_at);\n}\n```\n\n#### Get Payments\n\n```typescript\nconst payments = await server\n  .payments()\n  .forAccount(publicKey)\n  .order(\"desc\")\n  .call();\n\nfor (const payment of payments.records) {\n  if (payment.type === \"payment\") {\n    console.log(\n      `${payment.from} -> ${payment.to}: ${payment.amount} ${payment.asset_code || \"XLM\"}`\n    );\n  }\n}\n```\n\n#### Get Effects\n\n```typescript\nconst effects = await server\n  .effects()\n  .forAccount(publicKey)\n  .limit(50)\n  .call();\n```\n\n#### Streaming (Server-Sent Events)\n\n```typescript\n\u002F\u002F Stream transactions\nconst closeHandler = server\n  .transactions()\n  .forAccount(publicKey)\n  .cursor(\"now\")\n  .stream({\n    onmessage: (tx) => {\n      console.log(\"New transaction:\", tx.hash);\n    },\n    onerror: (error) => {\n      console.error(\"Stream error:\", error);\n    },\n  });\n\n\u002F\u002F Close stream when done\ncloseHandler();\n```\n\n#### Submit Transaction\n\n```typescript\ntry {\n  const result = await server.submitTransaction(signedTransaction);\n  console.log(\"Success:\", result.hash);\n} catch (error) {\n  if (error.response?.data?.extras?.result_codes) {\n    console.error(\"Error codes:\", error.response.data.extras.result_codes);\n  }\n}\n```\n\n### Pagination\n\n```typescript\n\u002F\u002F First page\nlet page = await server.transactions().forAccount(publicKey).limit(10).call();\n\n\u002F\u002F Next page\nif (page.records.length > 0) {\n  page = await page.next();\n}\n\n\u002F\u002F Previous page\npage = await page.prev();\n```\n\n## Migration: Horizon to RPC\n\n### Account Loading\n\n```typescript\n\u002F\u002F Horizon (old)\nconst account = await horizonServer.loadAccount(publicKey);\n\n\u002F\u002F RPC (new)\nconst account = await rpc.getAccount(publicKey);\n\u002F\u002F Note: RPC returns less data, just what's needed for transactions\n```\n\n### Transaction Submission\n\n```typescript\n\u002F\u002F Horizon (for classic transactions)\nconst result = await horizonServer.submitTransaction(tx);\n\n\u002F\u002F RPC (for Soroban transactions)\nconst response = await rpc.sendTransaction(tx);\nconst result = await pollForResult(response.hash);\n```\n\n### Historical Data\n\n```typescript\n\u002F\u002F Horizon - full history\nconst allTxs = await horizonServer\n  .transactions()\n  .forAccount(publicKey)\n  .call();\n\n\u002F\u002F RPC - most methods limited to 7 days\n\u002F\u002F Exception: getLedgers can query back to genesis (Infinite Scroll)\n\u002F\u002F For full historical data, use:\n\u002F\u002F 1. Hubble (SDF's BigQuery dataset)\n\u002F\u002F 2. Galexie (data pipeline)\n\u002F\u002F 3. Your own indexer\n```\n\n### Streaming Replacement\n\n```typescript\n\u002F\u002F Horizon - native streaming\nserver.payments().stream({ onmessage: handlePayment });\n\n\u002F\u002F RPC - polling (no native streaming)\nasync function pollForUpdates() {\n  const lastLedger = await rpc.getLatestLedger();\n  \u002F\u002F Check for new events\u002Ftransactions\n  \u002F\u002F Repeat on interval\n}\nsetInterval(pollForUpdates, 5000);\n```\n\n## Historical Data Access\n\nFor data older than 7 days (not available via most RPC methods; `getLedgers` can reach genesis via Infinite Scroll):\n\n### Hubble (BigQuery)\n\n```sql\n-- Query Stellar data in BigQuery\nSELECT *\nFROM `crypto-stellar.crypto_stellar.history_transactions`\nWHERE source_account = 'G...'\nORDER BY created_at DESC\nLIMIT 100\n```\n\n### Galexie\n\nSelf-hosted data pipeline for processing Stellar ledger data:\n- https:\u002F\u002Fgithub.com\u002Fstellar\u002Fgalexie\n\n### Data Lake\n\nRPC \"Infinite Scroll\" is powered by the Stellar data lake - a cloud-based object store (SEP-0054 format):\n- **Public access**: `s3:\u002F\u002Faws-public-blockchain\u002Fv1.1\u002Fstellar\u002Fledgers\u002Fpubnet` (AWS Open Data)\n- **Self-host**: Use Galexie to export to AWS S3 or Google Cloud Storage\n- **Hosted**: [Quasar (Lightsail Network)](https:\u002F\u002Fquasar.lightsail.network) provides hosted Galexie Data Lake + Archive RPC endpoints\n- **Size**: ~3.8TB, growing ~0.5TB\u002Fyear\n- **Cost**: ~$160\u002Fmonth self-hosted ($60 compute + $100 storage)\n- **Docs**: https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fadmin-guide\u002Fdata-lake-integration\n\n### Third-Party Indexers\n\nFor complex queries, event streaming, or custom data pipelines beyond what RPC\u002FHorizon provide:\n\n- **Mercury** - Stellar-native indexer with Retroshades, GraphQL API (https:\u002F\u002Fmercurydata.app)\n- **SubQuery** - Multi-chain indexer with Stellar\u002FSoroban support, event handlers (https:\u002F\u002Fsubquery.network)\n- **Goldsky** - Real-time data replication pipelines and subgraphs (https:\u002F\u002Fgoldsky.com)\n- **StellarExpert API** - Free, no-auth REST API for assets, accounts, ledger resolution (https:\u002F\u002Fstellar.expert\u002Fopenapi.html)\n\nSee the full indexer directory: https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Findexers\n\n## Network Configuration\n\n> For a React\u002FNext.js-specific setup, see [frontend-stellar-sdk.md](..\u002Fdapp\u002FSKILL.md).\n> For mainnet RPC, set `STELLAR_MAINNET_RPC_URL` from a provider in the [RPC providers directory](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fdata\u002Fapis\u002Frpc\u002Fproviders).\n\n### Environment-Based Setup\n\n```typescript\n\u002F\u002F lib\u002Fstellar-config.ts\nimport * as StellarSdk from \"@stellar\u002Fstellar-sdk\";\n\ntype NetworkConfig = {\n  rpcUrl: string;\n  horizonUrl: string;\n  networkPassphrase: string;\n  friendbotUrl: string | null;\n};\n\nconst requireEnv = (name: string): string => {\n  const value = process.env[name];\n  if (!value) throw new Error(`Missing required env var: ${name}`);\n  return value;\n};\n\nconst configs: Record\u003Cstring, NetworkConfig> = {\n  mainnet: {\n    rpcUrl: requireEnv(\"STELLAR_MAINNET_RPC_URL\"),\n    horizonUrl: \"https:\u002F\u002Fhorizon.stellar.org\",\n    networkPassphrase: StellarSdk.Networks.PUBLIC,\n    friendbotUrl: null,\n  },\n  testnet: {\n    rpcUrl: \"https:\u002F\u002Fsoroban-testnet.stellar.org\",\n    horizonUrl: \"https:\u002F\u002Fhorizon-testnet.stellar.org\",\n    networkPassphrase: StellarSdk.Networks.TESTNET,\n    friendbotUrl: \"https:\u002F\u002Ffriendbot.stellar.org\",\n  },\n  local: {\n    rpcUrl: \"http:\u002F\u002Flocalhost:8000\u002Fsoroban\u002Frpc\",\n    horizonUrl: \"http:\u002F\u002Flocalhost:8000\",\n    networkPassphrase: \"Standalone Network ; February 2017\",\n    friendbotUrl: \"http:\u002F\u002Flocalhost:8000\u002Ffriendbot\",\n  },\n};\n\nconst network = process.env.STELLAR_NETWORK || \"testnet\";\nexport const config = configs[network];\n\nexport const rpc = new StellarSdk.rpc.Server(config.rpcUrl);\nexport const horizon = new StellarSdk.Horizon.Server(config.horizonUrl);\n```\n\n## Best Practices\n\n### Use RPC for:\n- New application development\n- Soroban contract interactions\n- Transaction simulation and submission\n- Real-time account state\n\n### Use Horizon for:\n- Historical transaction queries\n- Payment streaming\n- Legacy application maintenance\n- Rich account metadata\n\n### Error Handling\n\n```typescript\n\u002F\u002F RPC errors\ntry {\n  const result = await rpc.sendTransaction(tx);\n} catch (error) {\n  if (error.code === 400) {\n    \u002F\u002F Invalid transaction\n  } else if (error.code === 503) {\n    \u002F\u002F Service unavailable\n  }\n}\n\n\u002F\u002F Horizon errors\ntry {\n  const result = await horizon.submitTransaction(tx);\n} catch (error) {\n  const extras = error.response?.data?.extras;\n  if (extras?.result_codes) {\n    \u002F\u002F Detailed error codes\n    console.log(\"Transaction:\", extras.result_codes.transaction);\n    console.log(\"Operations:\", extras.result_codes.operations);\n  }\n}\n```\n\n### Rate Limiting\n\nBoth RPC and Horizon have rate limits:\n- Use exponential backoff for retries\n- Cache responses where appropriate\n- Consider running your own nodes for high-volume applications\n\n```typescript\nasync function withRetry\u003CT>(fn: () => Promise\u003CT>, maxRetries = 3): Promise\u003CT> {\n  let lastError: Error;\n  for (let i = 0; i \u003C maxRetries; i++) {\n    try {\n      return await fn();\n    } catch (error) {\n      lastError = error;\n      if (error.response?.status === 429) {\n        \u002F\u002F Rate limited - exponential backoff\n        await new Promise(r => setTimeout(r, Math.pow(2, i) * 1000));\n      } else {\n        throw error;\n      }\n    }\n  }\n  throw lastError;\n}\n```\n",{"name":5,"metadata":24,"description":7},{"argument-hint":25,"user-invocable":26},"[data task]","true","main","db2f47e2b79822ad3d8dd0f17489d5d15bcba96d",".agents\u002Fskills\u002Fdata",3,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz","https:\u002F\u002Fwritz.xyz","https:\u002F\u002Fgithub.com\u002FWritzProtocol","https:\u002F\u002Fwritz.xyz\u002F","Native Bitcoin lending on Stellar. No bridge, no custodian.","2026-11-14 18:13:11",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add WritzProtocol\u002Fwritz --skill data",{"tool":43,"command":44},"bunx","bunx skills add WritzProtocol\u002Fwritz --skill data",{"tool":46,"command":47},"pnpm","pnpm dlx skills add WritzProtocol\u002Fwritz --skill data","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002FSKILL.md",true,[51,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"electric-capital\u002Fstellar-repos.json","REFERENCE","参考文档",961534,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Felectric-capital\u002Fstellar-repos.json",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"guides\u002Fa16z-big-ideas-2025.md",20858,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fa16z-big-ideas-2025.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"guides\u002Fa16z-state-of-crypto-2025.md",26516,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fa16z-state-of-crypto-2025.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"guides\u002Falliance-ideas.md",3129,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Falliance-ideas.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"guides\u002Fbuilding-with-ai\u002Fmexico-hackathon.md",4593,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fbuilding-with-ai\u002Fmexico-hackathon.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"guides\u002Fbuilding-with-ai\u002FREADME.md",7337,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fbuilding-with-ai\u002FREADME.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"guides\u002Fdefi\u002FREADME.md",4008,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fdefi\u002FREADME.md",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"guides\u002Ffca00c\u002Finstructions.md",3570,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Ffca00c\u002Finstructions.md",{"path":86,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":87,"sourceHtmlUrl":88},"guides\u002Ffca00c\u002FREADME.md",2456,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Ffca00c\u002FREADME.md",{"path":90,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":91,"sourceHtmlUrl":92},"guides\u002Findexers\u002Fproviders.md",7245,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Findexers\u002Fproviders.md",{"path":94,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":95,"sourceHtmlUrl":96},"guides\u002Findexers\u002FREADME.md",3330,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Findexers\u002FREADME.md",{"path":98,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":99,"sourceHtmlUrl":100},"guides\u002Finfrastructure\u002FREADME.md",7789,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Finfrastructure\u002FREADME.md",{"path":102,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":103,"sourceHtmlUrl":104},"guides\u002Flearning\u002FREADME.md",6845,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Flearning\u002FREADME.md",{"path":106,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":107,"sourceHtmlUrl":108},"guides\u002FLINKS.md",1058,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002FLINKS.md",{"path":110,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":111,"sourceHtmlUrl":112},"guides\u002Foracles\u002FREADME.md",3259,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Foracles\u002FREADME.md",{"path":114,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":115,"sourceHtmlUrl":116},"guides\u002Fsecurity\u002FREADME.md",4988,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fsecurity\u002FREADME.md",{"path":118,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":119,"sourceHtmlUrl":120},"guides\u002Fsoroban-development\u002FREADME.md",7357,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fsoroban-development\u002FREADME.md",{"path":122,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":123,"sourceHtmlUrl":124},"guides\u002Ftokens\u002FREADME.md",6648,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Ftokens\u002FREADME.md",{"path":126,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":127,"sourceHtmlUrl":128},"guides\u002Fyc-crypto-companies-p2.md",15912,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fyc-crypto-companies-p2.md",{"path":130,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":131,"sourceHtmlUrl":132},"guides\u002Fyc-crypto-companies.md",34325,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fyc-crypto-companies.md",{"path":134,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":135,"sourceHtmlUrl":136},"guides\u002Fyc-requests-for-startups.md",12732,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fguides\u002Fyc-requests-for-startups.md",{"path":138,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":139,"sourceHtmlUrl":140},"ideas\u002Fa16z-big-ideas-2025.json",41141,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fideas\u002Fa16z-big-ideas-2025.json",{"path":142,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":143,"sourceHtmlUrl":144},"ideas\u002Fa16z-state-of-crypto-2025.json",25676,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fideas\u002Fa16z-state-of-crypto-2025.json",{"path":146,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":147,"sourceHtmlUrl":148},"ideas\u002Falliance-ideas.json",27883,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fideas\u002Falliance-ideas.json",{"path":150,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":151,"sourceHtmlUrl":152},"ideas\u002Fyc-crypto-companies.json",154807,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fideas\u002Fyc-crypto-companies.json",{"path":154,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":155,"sourceHtmlUrl":156},"ideas\u002Fyc-requests-for-startups.json",21074,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Fideas\u002Fyc-requests-for-startups.json",{"path":158,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":159,"sourceHtmlUrl":160},"lumenloop\u002Faudits\u002Fregistry.json",14496,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Flumenloop\u002Faudits\u002Fregistry.json",{"path":162,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":163,"sourceHtmlUrl":164},"lumenloop\u002Fprojects.json",728321,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Flumenloop\u002Fprojects.json",{"path":166,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":167,"sourceHtmlUrl":168},"lumenloop\u002Fscf\u002Frounds.json",79028,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Flumenloop\u002Fscf\u002Frounds.json",{"path":170,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":171,"sourceHtmlUrl":172},"lumenloop\u002Ftokens\u002Fregistry.json",4352,"https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdata\u002Flumenloop\u002Ftokens\u002Fregistry.json",[174,181,188,195,202,209],{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":19},"01M77KKJ6DYZP10BJ74CW4H0AE","zk-proofs","Zero-knowledge proofs and privacy patterns on Stellar. Covers Groth16 verification in smart contracts via BLS12-381 host functions (CAP-0059, available), the BN254 + Poseidon proposals (CAP-0074\u002F0075, status-sensitive), and concrete toolchain walkthroughs for Circom (on-chain verifiable today), Noir, and RISC Zero (attestation pattern until BN254 lands). Use when building privacy-preserving applications, ZK-verifier contracts, or wiring a proving toolchain to Stellar.","https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fzk-proofs\u002FSKILL.md",[],[],{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":19},"01M77KKF3SK8JVBGRY4A89HYQC","tyler-architect","System architect and technical design leader. Use when the user asks to talk to Tyler or requests the architect.","https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftyler-architect\u002FSKILL.md",[],[],{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":19},"01M77KKCD584VQA1TM1F9Q8JBH","stellar-help","Analyzes current state and user query to answer BMad questions or recommend the next skill(s) to use. Use when user asks for help, bmad help, what to do next, or what to start with in BMad.","https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fstellar-help\u002FSKILL.md",[],[],{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":19},"01M77KK7W2HKQ3QMAG0KJY1BHH","stellar-competitive-landscape","Map the competitive landscape for a Stellar project idea. Use when a user says \"who are my competitors on Stellar\", \"competitive analysis Stellar\", \"what already exists in this space on Stellar\", \"show me similar Stellar projects\", \"is anyone else building this on Stellar\", or \"map the Stellar landscape for X\". Queries the 728-project LumenLoop ecosystem database and Electric Capital developer activity to rank competitors by SCF funding history and repo activity.","https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fstellar-competitive-landscape\u002FSKILL.md",[],[],{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":19},"01M77KK1ACXYN5AZTWR8B5CKTX","standards","Stellar standards, ecosystem, and reference. Covers SEPs (Stellar Ecosystem Proposals), CAPs (Core Advancement Proposals), and a quick map for picking the right standard for wallets, anchors, payments, deposits\u002Fwithdrawals, federation, deep links, and KYC. Also bundles ecosystem references (DeFi protocols, dev tools, wallets, infra, community projects), curated documentation links, and MCP servers (live tools such as Raven). Use when you need to know which SEP applies, or want a starting point for ecosystem integrations, official docs, or live MCP tooling.","https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fstandards\u002FSKILL.md",[],[],{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":19},"01M77KJV8VW46WC58DHJR2296C","smart-contracts","Stellar smart contract development (Rust, soroban-sdk). Entry point with project setup, contract anatomy, and build\u002Fdeploy workflow, routing to three companion files in this directory - development.md (storage\u002FTTL, authorization, cross-contract calls, tokens, events, errors, upgrades, fees, troubleshooting), testing.md (unit, fuzz, property, fork, mutation, integration), and security.md (vulnerability classes, checklists, tooling, audits). Use when writing, testing, reviewing, securing, debugging, or shipping Stellar smart contracts, including anything the user calls \"Soroban\" - Soroban contracts, soroban-sdk, Soroban auth\u002Fstorage\u002FTTL errors, SEP-41 tokens, or SAC integration from contract code.","https:\u002F\u002Fgithub.com\u002FWritzProtocol\u002Fwritz\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fsmart-contracts\u002FSKILL.md",[],[]]