{"id":19647693,"url":"https://github.com/xtcry/node-fkwallet-api","last_synced_at":"2025-11-03T11:02:56.119Z","repository":{"id":57237814,"uuid":"425407399","full_name":"xTCry/node-fkwallet-api","owner":"xTCry","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-19T19:34:26.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T11:07:22.696Z","etag":null,"topics":["api","fk","fkwallet","nodejs"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/fkwallet","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xTCry.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-07T03:56:21.000Z","updated_at":"2022-09-17T15:38:43.000Z","dependencies_parsed_at":"2022-08-26T15:01:30.244Z","dependency_job_id":null,"html_url":"https://github.com/xTCry/node-fkwallet-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xTCry%2Fnode-fkwallet-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xTCry%2Fnode-fkwallet-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xTCry%2Fnode-fkwallet-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xTCry%2Fnode-fkwallet-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xTCry","download_url":"https://codeload.github.com/xTCry/node-fkwallet-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240955230,"owners_count":19884312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","fk","fkwallet","nodejs"],"created_at":"2024-11-11T14:44:55.058Z","updated_at":"2025-11-03T11:02:56.051Z","avatar_url":"https://github.com/xTCry.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS [FKWallet](https://www.fkwallet.ru/docs) API\n\n[![license](https://img.shields.io/npm/l/fkwallet?style=flat-square)](https://github.com/xTCry/node-fkwallet-api/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/v/fkwallet?style=flat-square)](https://npmjs.com/package/fkwallet)\n[![downloads](https://img.shields.io/npm/dm/fkwallet?style=flat-square)](https://npmjs.com/package/fkwallet)\n[![GitHub](https://img.shields.io/github/stars/xTCry/node-fkwallet-api?style=flat-square)](https://github.com/xTCry/node-fkwallet-api)\n[![last commit](https://img.shields.io/github/last-commit/xTCry/node-fkwallet-api?style=flat-square)](https://github.com/xTCry/node-fkwallet-api)\n\n## 📦 Установка\n\n```shell\nyarn add fkwallet\n```\n\n## 🛠️ Использование\n\n```typescript\nimport 'dotenv/config';\nimport { ApiClient, CryptoType } from 'fkwallet';\n\nconst sleep = (ms: number) =\u003e new Promise((r) =\u003e setTimeout(r, ms));\n\nconst main = async () =\u003e {\n  const api = new ApiClient(\n    process.env.WALLET_PROVIDER_FKWALLET_SHOP_ID!,\n    process.env.WALLET_PROVIDER_FKWALLET_API_KEY!,\n  );\n\n  let time = Date.now();\n  const balance = await api.getBalance();\n  console.log('balance', balance);\n  console.log(`Time: ${Date.now() - time} ms`);\n\n  await sleep(1e3);\n  time = Date.now();\n  const btcAddressNew = await api.createCryptoAddress(CryptoType.BTC);\n  console.log('btcAddressNew', btcAddressNew);\n  console.log(`Time: ${Date.now() - time} ms`);\n\n  await sleep(1e3);\n  time = Date.now();\n  const btcAddress = await api.getCryptoAddress(CryptoType.BTC);\n  console.log('btcAddress', btcAddress);\n  console.log(`Time: ${Date.now() - time} ms`);\n\n  await sleep(1e3);\n  time = Date.now();\n  const paymentStatus = await api.getPaymentStatus({ payment_id: 22664540 });\n  console.log('paymentStatus', paymentStatus.data.payment_id);\n  console.log(`Time: ${Date.now() - time} ms`);\n};\nmain().then();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtcry%2Fnode-fkwallet-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtcry%2Fnode-fkwallet-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtcry%2Fnode-fkwallet-api/lists"}