{"_id":"@anypay/wallet","_rev":"2-40d7529d9507b13a7518e0a0582d134a","name":"@anypay/wallet","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@anypay/wallet","version":"0.0.1","description":"``` import { Card, Cards, Balance, Transaction, Confirmation } from '@anypay/wallet'","main":"index.js","publishConfig":{"access":"public"},"devDependencies":{"@types/hex2dec":"^1.1.2","ts-loader":"^9.4.3","webpack":"^5.84.1","webpack-cli":"^5.1.1"},"scripts":{"test":"mocha"},"keywords":[],"author":"","license":"ISC","dependencies":{"@metamask/providers":"^11.0.0","ethers":"^6.4.0","hex2dec":"^1.1.2"},"gitHead":"2ba9d2aa268e37f7e71b4ccfe776aa4903e4ce22","_id":"@anypay/wallet@0.0.1","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-T9LPCTenP5DBefnHptWBVTxteQcoQQK33nwXWI/B4C8FjTXzU5TZetsKFrHKCNjwYCNFFXvpxRmfC6RTmrK09w==","shasum":"2281f6b77368f4e54778da69b7b90ce218654713","tarball":"https://registry.npmjs.org/@anypay/wallet/-/wallet-0.0.1.tgz","fileCount":91,"unpackedSize":470506,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj/+Nll9hjsjecWcbdGT16JPAcy/U1nR9SwUW2/RTbygIhAKRNss7cqdeNcUiRRiXvG/vAEf8d1s0RdNdp9nTflmYD"}]},"_npmUser":{"name":"stevenzeiler","email":"me@stevenzeiler.com"},"directories":{},"maintainers":[{"name":"stevenzeiler","email":"me@stevenzeiler.com"},{"name":"anypayops","email":"ops@anypayx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wallet_0.0.1_1685089410653_0.8277098177754252"},"_hasShrinkwrap":false},"0.0.2":{"name":"@anypay/wallet","version":"0.0.2","description":"``` import { Card, Cards, Balance, Transaction, Confirmation } from '@anypay/wallet'","main":"dist/bundle.js","publishConfig":{"access":"public"},"devDependencies":{"@types/hex2dec":"^1.1.2","ts-loader":"^9.4.3","webpack":"^5.84.1","webpack-cli":"^5.1.1"},"scripts":{"test":"mocha"},"keywords":[],"author":"","license":"ISC","dependencies":{"@metamask/providers":"^11.0.0","ethers":"^6.4.0","hex2dec":"^1.1.2"},"gitHead":"2ba9d2aa268e37f7e71b4ccfe776aa4903e4ce22","_id":"@anypay/wallet@0.0.2","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-IkBkvtjyRyo5rxoidLxMmzKSoKrfWCPIvNf+C7Yvl72ojm+OZsQe6iWjciNfYDOZRHFiol7gBdYF3ZU8RN2BLg==","shasum":"8aa493dd041f6ccaf2fde9cba496f3d1751152bc","tarball":"https://registry.npmjs.org/@anypay/wallet/-/wallet-0.0.2.tgz","fileCount":91,"unpackedSize":470512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3xf+P7+ycWE5AyPXTJ0eomtxEMFlVm0Qpqgwf7dc8OAiBNqW5RbTuOebyclwX28MetkjTcLslJzJNtEER+KM55wQ=="}]},"_npmUser":{"name":"stevenzeiler","email":"me@stevenzeiler.com"},"directories":{},"maintainers":[{"name":"stevenzeiler","email":"me@stevenzeiler.com"},{"name":"anypayops","email":"ops@anypayx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wallet_0.0.2_1685089937217_0.7162040386466264"},"_hasShrinkwrap":false},"0.0.3":{"name":"@anypay/wallet","version":"0.0.3","description":"``` import { Card, Cards, Balance, Transaction, Confirmation } from '@anypay/wallet'","main":"dist/bundle.js","publishConfig":{"access":"public"},"devDependencies":{"@types/hex2dec":"^1.1.2","ts-loader":"^9.4.3","webpack":"^5.84.1","webpack-cli":"^5.1.1"},"scripts":{"test":"mocha"},"keywords":[],"author":"","license":"ISC","dependencies":{"@metamask/providers":"^11.0.0","ethers":"^6.4.0","hex2dec":"^1.1.2"},"gitHead":"2ba9d2aa268e37f7e71b4ccfe776aa4903e4ce22","_id":"@anypay/wallet@0.0.3","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-EKulijJdtrhyDyp2WoSOo5aN0PiwhpP1eSvsKg5ZtXYpjmz7WdXY04F59akp65eXcdpsIIBmJIpxJxiOvbD2SQ==","shasum":"8e4fc340bf866901ccf32a3296af8f6094a22224","tarball":"https://registry.npmjs.org/@anypay/wallet/-/wallet-0.0.3.tgz","fileCount":20,"unpackedSize":3181113,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBWEDSKt9LjGnzkkH4jPvQY0vPbQSVllEX7lpCLaJgQQIgKFZTKFKCipK21TFADFJ84aVB+d6ETGsogGF3DD4PuwY="}]},"_npmUser":{"name":"stevenzeiler","email":"me@stevenzeiler.com"},"directories":{},"maintainers":[{"name":"stevenzeiler","email":"me@stevenzeiler.com"},{"name":"anypayops","email":"ops@anypayx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wallet_0.0.3_1685091474036_0.5962767440108847"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-26T08:23:30.582Z","0.0.1":"2023-05-26T08:23:30.924Z","modified":"2023-05-26T08:57:54.354Z","0.0.2":"2023-05-26T08:32:17.444Z","0.0.3":"2023-05-26T08:57:54.226Z"},"maintainers":[{"name":"stevenzeiler","email":"me@stevenzeiler.com"},{"name":"anypayops","email":"ops@anypayx.com"}],"description":"``` import { Card, Cards, Balance, Transaction, Confirmation } from '@anypay/wallet'","keywords":[],"license":"ISC","readme":"\n```\nimport { Card, Cards, Balance, Transaction, Confirmation } from '@anypay/wallet'\n\nlet card: Card = new Cards.USDC_MATIC() // auto-detects either 'browser' or 'nodejs'\n\n// or be explicit about whether you are in the browser or nodejs\nlet card: Card = new Cards.USDC_MATIC({ provider: 'browser' })\n\nlet balance: Balance = await getBalance(wallet)\n\n// a card may be loaded directly given the 12 word backup seed phrase as mnemonic\ncard = new cards.USDC_MATIC({ mnemonic: process.env.polygon_seed_phrase })\n\nlet transaction: Transaction = await card.buildSignedTransaction({\n  data: {\n    address: '',\n    value:  \n  }\n})\n\nconsole.log(`here you have the signed transaction in full detail: ${transaction.txhex}`)\n\nawait transaction.broadcast()\n\nconsole.log(`view your transaction here: https://polygonscan.com/tx/${transaction.txid}`)\n\nconst confirmation: Confirmation = await transaction.confirm()\n\n```\n","readmeFilename":"README.md"}