{"id":45949969,"url":"https://github.com/fystack/platform-sdk","last_synced_at":"2026-02-28T12:15:53.440Z","repository":{"id":292629131,"uuid":"750952599","full_name":"fystack/platform-sdk","owner":"fystack","description":"Cross platform wallet SDK (Node, Browser) of Fystack ","archived":false,"fork":false,"pushed_at":"2026-02-02T16:32:37.000Z","size":191,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-03T04:25:24.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.fystack.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fystack.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-31T16:41:33.000Z","updated_at":"2026-02-02T15:27:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c399766-eedc-4416-b9b3-48f78053832d","html_url":"https://github.com/fystack/platform-sdk","commit_stats":null,"previous_names":["cryptoniumx/wallet-sdk"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/fystack/platform-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fystack%2Fplatform-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fystack%2Fplatform-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fystack%2Fplatform-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fystack%2Fplatform-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fystack","download_url":"https://codeload.github.com/fystack/platform-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fystack%2Fplatform-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29933323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-28T12:15:52.852Z","updated_at":"2026-02-28T12:15:53.428Z","avatar_url":"https://github.com/fystack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fystack Platform SDK\n\nA Typescript SDK for Fystack's wallet and payment services, providing seamless integration with both EVM and Solana blockchains.\n\n## Installation\n\n```bash\nnpm install @fystack/sdk\n```\n\n## Usage\n\n### Wallet Management\n\nCreate and manage blockchain wallets with minimal code.\n\n```typescript\nimport { FystackSDK } from '@fystack/sdk'\nimport { Environment, WalletType } from '@fystack/sdk'\n\n// Initialize the SDK\nconst sdk = new FystackSDK({\n  credentials: {\n    apiKey: 'YOUR_API_KEY',\n    apiSecret: 'YOUR_API_SECRET'\n  },\n  environment: Environment.Production,\n  logger: true // Enable logging\n})\n\nconst response = await sdk.createWallet({\n  name: 'My Blockchain Wallet',\n  walletType: WalletType.MPC, // Multi-Party Computation wallet\n  walletPurpose: WalletPurpose.User,\n  sweepTaskParams: {\n    minTriggerValueUsd: 100,\n    destinationWalletId: '0e123131211323xx1213',\n    destinationType: DestinationType.InternalWallet\n  }\n})\n\nconsole.log('Wallet ID:', response.wallet_id)\nconsole.log('Status:', response.status)\n\n// Check wallet creation status\nconst statusResponse = await sdk.getWalletCreationStatus(response.wallet_id)\nconsole.log('WalletID:', statusResponse.wallet_id)\n```\n\n### Solana Transaction Signing\n\n```typescript\nimport { SolanaSigner } from '@fystack/sdk'\nimport { Connection, PublicKey, SystemProgram, Transaction } from '@solana/web3.js'\n\nasync function signSolanaTransaction() {\n  // Initialize the signer\n  const signer = new SolanaSigner(\n    {\n      apiKey: 'YOUR_API_KEY',\n      apiSecret: 'YOUR_API_SECRET'\n    },\n    Environment.Production\n  )\n\n  // Get signer's address\n  const fromAddress = await signer.getAddress()\n  const fromPubkey = new PublicKey(fromAddress)\n\n  // Set recipient address\n  const toAddress = 'RECIPIENT_SOLANA_ADDRESS'\n  const toPubkey = new PublicKey(toAddress)\n\n  // Connect to Solana network\n  const connection = new Connection('https://api.mainnet-beta.solana.com/')\n\n  // Get recent blockhash\n  const { blockhash } = await connection.getLatestBlockhash({\n    commitment: 'finalized'\n  })\n\n  // Create transfer instruction\n  const transferInstruction = SystemProgram.transfer({\n    fromPubkey,\n    toPubkey,\n    lamports: 1000 // 0.000001 SOL\n  })\n\n  // Create and setup transaction\n  const transaction = new Transaction().add(transferInstruction)\n  transaction.recentBlockhash = blockhash\n  transaction.feePayer = fromPubkey\n\n  // Serialize the transaction to base64\n  const serializedTransaction = transaction\n    .serialize({\n      requireAllSignatures: false,\n      verifySignatures: false\n    })\n    .toString('base64')\n\n  // Sign the transaction\n  const signature = await signer.signTransaction(serializedTransaction)\n  console.log('Transaction signature:', signature)\n\n  return signature\n}\n```\n\n### Ethereum Transaction Signing\n\n```typescript\nimport { EtherSigner } from '@fystack/sdk'\nimport { JsonRpcProvider, ethers } from 'ethers'\n\nasync function signEthereumTransaction() {\n  const address = await signer.getAddress()\n  console.log('Wallet address:', address)\n\n  // Connect to a provider\n  const provider = new JsonRpcProvider('YOUR_RPC_ENDPOINT')\n  const signerWithProvider = signer.connect(provider)\n\n  // Send a transaction\n  const tx = await signerWithProvider.sendTransaction({\n    to: '0xRecipientAddress',\n    value: ethers.parseEther('0.0001') // Amount in ETH\n  })\n\n  console.log('Transaction hash:', tx.hash)\n  return tx.hash\n}\n```\n\n### Payment Processing\n\nCreate checkouts and process payments.\n\n```typescript\nimport { PaymentService } from '@fystack/sdk'\nimport { Environment } from '@fystack/sdk'\n\nasync function createPaymentCheckout() {\n  const paymentService = new PaymentService({\n    apiKey: 'YOUR_API_KEY',\n    environment: Environment.Production\n  })\n\n  // Create a checkout\n  const response = await paymentService.createCheckout({\n    price: '10.50',\n    currency: 'USD',\n    supported_assets: [\n      'SOL:1399811149', // Format: \"ASSET:CHAIN_ID\"\n      'USDC:1399811149'\n    ],\n    description: 'Premium subscription package',\n    success_url: 'https://yourapp.com/payment/success',\n    cancel_url: 'https://yourapp.com/payment/cancel',\n    product_id: 'YOUR_PRODUCT_ID',\n    customer_id: 'YOUR_CUSTOMER_ID',\n    order_id: 'YOUR_ORDER_ID',\n    enable_localization: false,\n    destination_wallet_id: 'YOUR_DESTINATION_WALLET_ID',\n    expiry_duration_seconds: 3600 // 1 hour\n  })\n\n  console.log('Checkout created:', response.id)\n\n  // Get checkout details\n  const checkout = await paymentService.getCheckout(response.id)\n\n  // Create payment using the first supported asset\n  const payment = await paymentService.createCheckoutPayment(response.id, {\n    pay_asset_id: checkout.supported_assets[0].id\n  })\n\n  console.log('Payment created:', payment.id)\n  console.log('Send payment to:', payment.deposit_address)\n\n  // Get payment status\n  const paymentStatus = await paymentService.getCheckoutPayment(payment.id)\n  console.log('Payment status:', paymentStatus)\n\n  return payment\n}\n```\n\n### Webhook Verification\n\n```typescript\nimport { APIService } from '@fystack/sdk'\n\nfunction verifyWebhook(event, signature) {\n  const apiService = new APIService(\n    {\n      apiKey: 'YOUR_API_KEY',\n      apiSecret: 'YOUR_API_SECRET'\n    },\n    Environment.Production\n  )\n\n  const isValid = apiService.Webhook.verifyEvent(event, signature)\n  return isValid\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffystack%2Fplatform-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffystack%2Fplatform-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffystack%2Fplatform-sdk/lists"}