{"_id":"@brynjarrr/xchain-doge","_rev":"1-59dca5bc1d85b5ae959361c762085933","name":"@brynjarrr/xchain-doge","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@brynjarrr/xchain-doge","version":"0.2.0","description":"Custom Doge client and utilities used by XChain clients","keywords":["Xchain","Doge"],"author":{"name":"XChainJS"},"homepage":"https://github.com/xchainjs/xchainjs-lib","license":"MIT","main":"lib/index.js","module":"lib/index.esm.js","typings":"lib/index.d.ts","directories":{"lib":"lib","test":"__tests__"},"repository":{"type":"git","url":"git+ssh://git@github.com/xchainjs/xchainjs-lib.git"},"scripts":{"clean":"rimraf lib/**","build":"yarn clean && rollup -c","test":"jest","lint":"eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0","prepublishOnly":"yarn build","postversion":"git push --follow-tags"},"devDependencies":{"@types/bitcoinjs-lib":"^5.0.0","@types/wif":"^2.0.2","@xchainjs/xchain-client":"^0.11.1","@xchainjs/xchain-crypto":"^0.2.6","@xchainjs/xchain-util":"^0.5.1","axios":"^0.25.0","axios-mock-adapter":"^1.20.0","bitcoinjs-lib":"^5.2.0","coininfo":"5.1.0","coinselect":"3.1.12","wif":"^2.0.6"},"peerDependencies":{"@xchainjs/xchain-client":"^0.11.1","@xchainjs/xchain-crypto":"^0.2.6","@xchainjs/xchain-util":"^0.5.1","axios":"^0.25.0","bitcoinjs-lib":"^5.2.0","coininfo":"5.1.0","coinselect":"3.1.12","wif":"^2.0.6"},"publishConfig":{"access":"public"},"gitHead":"515ef43a4f0e3aa11644c69f7025caf0f0a0c1db","bugs":{"url":"https://github.com/xchainjs/xchainjs-lib/issues"},"_id":"@brynjarrr/xchain-doge@0.2.0","_nodeVersion":"16.5.0","_npmVersion":"lerna/3.22.1/node@v16.5.0+arm64 (darwin)","dist":{"integrity":"sha512-/Xb1yREt4L3+LhZ8jxucgPyICE3Ws9VdNKfiBV9eaA+3xWB9jpzq5GjQ3sx3HOQXXpvNOkpgh2RY5dceNKAmiQ==","shasum":"ab8a782aed4200bdc3926a68d4545f28b60d1b9a","tarball":"https://registry.npmjs.org/@brynjarrr/xchain-doge/-/xchain-doge-0.2.0.tgz","fileCount":21,"unpackedSize":13831408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPbUIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr77A/9GizcTvna3B9eXyp3hZUrhPiIUnT+4a7EXDa7TMwSNhBphXAG\r\npQrhID/Rk74QFU3kumj7ZXVudMcksM9+oaFSANtF6C3y5O3IDKN3xugwXBCC\r\nF5DQsIS2iuQoBmaQQyAmsXfstEcupXK3x1KgzirO3umHMnpGEPrfTD9kxciP\r\n8s5xJp3s+cYLw7juJrtvG3mC7antix5MCpS6we7pKfzvWVOct23SHULxF6I3\r\nAx03Ae92UQphzHXqEyhx28HnbGB1h+4krAtideV+ecd9EtNmPkV+Gdve8XAA\r\nhYF3QlwnetMbQIzEFol3jkYlNDov6byLa0dSMO8e5/cUHE3zHul4fkvAdDCJ\r\n1F6Zr98z6xoHigxlLKWHQMZfEG2fc0mCbbO2chjT0AJ9TP9iRnGzLeEtk4Cn\r\nZLyrS6Bm+AYwoehnMaaH7EXTYTXET0VgsU0HSLCDGLjiIF0ZppI31MHKMVWw\r\n0XsiYODmoqqUGvhbZXX4uKCd7Za6hBG0siMT5xVWnemq08nO+g0/FVsw1PI2\r\ngnht103vOsoafdrG5dBZw/hnm4renrVSkUFxyRsD7rWrFcMdeJoKCofT29ax\r\nBkdKb7kV9OXbA/zgCmH5nYXcbWhtrdmKbbacy5LjyhWnMKlSr1bmjPguhPmb\r\nlfa/xGW6cPnQGDukohqZxABy8Dzr4DJ9jT4=\r\n=mWWn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXykNGpeUgK+7nXTWUxHShm1fMjhF7+QPEqInOEvNGFAiAtaIwqX6A49m/3tZ2t701pH7O9FaKETEHEmUKEtKLwjg=="}]},"_npmUser":{"name":"brynjarrr","email":"coinage_trinity_0a@icloud.com"},"maintainers":[{"name":"brynjarrr","email":"coinage_trinity_0a@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xchain-doge_0.2.0_1648211207917_0.9700022408478084"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-25T12:26:47.835Z","0.2.0":"2022-03-25T12:26:48.159Z","modified":"2022-04-04T20:50:14.784Z"},"maintainers":[{"name":"brynjarrr","email":"coinage_trinity_0a@icloud.com"}],"description":"Custom Doge client and utilities used by XChain clients","homepage":"https://github.com/xchainjs/xchainjs-lib","keywords":["Xchain","Doge"],"repository":{"type":"git","url":"git+ssh://git@github.com/xchainjs/xchainjs-lib.git"},"author":{"name":"XChainJS"},"bugs":{"url":"https://github.com/xchainjs/xchainjs-lib/issues"},"license":"MIT","readme":"# `@xchainjs/xchain-doge`\n\n## Modules\n\n- `client` - Custom client for communicating with Doge using [BIP39](https://github.com/bitcoinjs/bip39) [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) and [WIF](https://github.com/bitcoinjs/wif)\n\n## Installation\n\n```\nyarn add @xchainjs/xchain-doge\n```\n\nFollowing peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-doge`.\n\n```\nyarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios bitcoinjs-lib coininfo wif\n```\n\n## Service Providers\n\nThis package uses the following service providers:\n\n| Function                    | Service     | Notes                                                                            |\n| --------------------------- | ----------- | -------------------------------------------------------------------------------- |\n| Balances                    | Sochain     | https://sochain.com/api#get-balance                                              |\n| Transaction history         | Sochain     | https://sochain.com/api#get-display-data-address, https://sochain.com/api#get-tx |\n| Transaction details by hash | Sochain     | https://sochain.com/api#get-tx                                                   |\n| Transaction fees            | BlockCypher | https://api.blockcypher.com/v1/doge/main                                         |\n| Transaction broadcast       | BlockCypher | https://api.blockcypher.com/v1/doge/main/txs/push                                |\n| Explorer                    | Blockchair  | https://blockchair.com/dogecoin                                                  |\n\nSochain API rate limits: https://sochain.com/api#rate-limits (300 requests/minute)\n\nBlockCypher API rate limits: https://api.blockcypher.com/v1/doge/main (5 requests/second)\n\n## Usage\n\nInitialize client and use class methods:\n\n```\nimport { Client, Network } from '../src/client'\n\n// Create a new client interface\nconst dogeClient = new Client({ network: Network.Testnet })\n\n// Set phrase\ndogeClient.setPhrase('phrase here')\n\n// Get address\nconst address = dogeClient.getAddress()\n\n// Get balance\nconst balance = await dogeClient.getBalance()\n\n// Transfer with feeRate\nconst txid = await dogeClient.transfer({ asset: AssetDoge, recipient: 'recipient address here', amount: baseAmount(100, DOGE_DECIMAL), feeRate: 1 })\n\n// Transfer with default feeRate (default is `fast`)\nconst txid = await dogeClient.transfer({ asset: AssetDoge, recipient: 'recipient address here', amount: baseAmount(100, DOGE_DECIMAL) })\n\n// Get fee estimations\nconst { fast, fastest, average } = await dogeClient.getFees()\n\n// Get feeRate estimations\nconst { fast, fastest, average } = await dogeClient.getFeeRates()\n\n// Search transactions\nconst transactions = await dogeClient.getTransactions({ address: 'address here', limit: 4 })\n\n// Get a transaction with a given txId/hash\nconst txData = await dogeClient.getTransactionData('b660ee07167cfa32681e2623f3a29dc64a089cabd9a3a07dd17f9028ac956eb8')\n\n```\n","readmeFilename":"README.md"}