{"_id":"@axiaglobal/axiajs","_rev":"4-15a3041b4631cec0c6bec7fea54164a3","name":"@axiaglobal/axiajs","dist-tags":{"latest":"2.0.16"},"versions":{"2.0.12":{"name":"@axiaglobal/axiajs","version":"2.0.12","description":"Axia Platform JS Library","main":"dist/index.js","scripts":{"build":"rm -rf dist/ && npx tsc -b && cp -r typings/src ./dist","prebundle":"yarn build","bundle":"webpack --mode production","lint":"eslint ./ --ext js,ts --fix","prepublish":"yarn build","release:prepare":"rm -rf ./dist ./node_modules && yarn install && yarn build && yarn bundle && yarn test && git status","test":"jest","test-watch":"jest --watch","docshtml":"npx typedoc --plugin typedoc-plugin-external-module-name --mode file src","docsmd":"rm -rf docsMD && yarn build && npx typedoc --readme none --plugin typedoc-plugin-markdown,typedoc-plugin-external-module-name --theme markdown --out docsMD src","docs":"yarn docshtml && yarn docsmd","prettier-src":"prettier --write ./src","prettier-examples":"prettier --write ./examples","prettier-tests":"prettier --write ./tests","prettier-web":"prettier --write ./web","prettier-mocks":"prettier --write ./__mocks__","prettier":"yarn prettier-src && yarn prettier-examples && yarn prettier-tests && yarn prettier-web && yarn prettier-mocks","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-js.git"},"keywords":["Axia","blockchain","defi"],"author":{"name":"Jeet Bhosle","email":"jeet@zeeve.io"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-js/issues"},"homepage":"https://github.com/AxiaCoin/axia-network-v2-js#readme","devDependencies":{"@types/bech32":"1.1.4","@types/bn.js":"5.1.0","@types/create-hash":"1.2.2","@types/hdkey":"2.0.1","@types/jest":"27.5.0","@types/node":"16.11.12","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","clean-webpack-plugin":"4.0.0","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-security":"1.5.0","git-revision-webpack-plugin":"5.0.0","html-webpack-plugin":"5.5.0","husky":"^7.0.4","jest":"26.6.3","jest-mock-axios":"4.5.0","prettier":"2.6.2","terser-webpack-plugin":"5.3.1","ts-jest":"26.5.6","ts-loader":"9.3.0","typedoc":"^0.18.0","typedoc-plugin-external-module-name":"^4.0.3","typedoc-plugin-markdown":"^2.4.0","typescript":"4.6.4","webpack":"5.72.0","webpack-cli":"4.9.2"},"engines":{"node":">=14.0.0"},"dependencies":{"assert":"2.0.0","axios":"0.27.2","bech32":"2.0.0","bip39":"3.0.4","bn.js":"5.2.1","buffer":"6.0.3","create-hash":"1.2.0","crypto-browserify":"3.12.0","elliptic":"6.5.4","ethers":"5.6.4","hdkey":"2.0.1","isomorphic-ws":"4.0.1","store2":"2.13.2","stream-browserify":"3.0.0","ws":"8.5.0","xss":"1.0.11"},"prettier":{"tabWidth":2,"useTabs":false,"semi":false,"singleQuote":false,"jsxBracketSameLine":false,"trailingComma":"none"},"types":"./dist/index.d.ts","directories":{"example":"examples","test":"tests"},"gitHead":"d56f3fdf835521cd32b4c0eba6a5c3ef4b29babd","_id":"@axiaglobal/axiajs@2.0.12","_nodeVersion":"16.10.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-UcGbFgjFR1q+dtjjsjDAw8uWQrY173Bgmg2IRnmTg3JchGXaUB3EdrRTyVDItiNcwyOm/43g0uU+FB7lzAUJsw==","shasum":"190c90de0ff1e460f05b0bdfa7e0a4e94c897e24","tarball":"https://registry.npmjs.org/@axiaglobal/axiajs/-/axiajs-2.0.12.tgz","fileCount":738,"unpackedSize":7461763,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN7vL6Czj1mtQ5WNT0hmPAeoCkz/ZAoL7JK7ulFa2lEwIgQMnih4EXOWMRAEm1YdoAA3v8HJUwJ5l7ZdYbedRHmoo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/TPsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+fA//SF80ZPGKvV3HxMe9j8kD9gag+nzqnno3DznlfDq65XPNOft0\r\n0YsHt9Tu9rtHdkML8eTk84Ib0PVN4rdDra4MxbvbXHsjXXJtenIDoWjR71pI\r\nAjyADdskoA1/ld9Fz8fRRNmyC2O68Jas69nXNm8sO4FIGaF1Ch1AhLHlGWRD\r\nF+u6WqgCOwTqSsJxLr1Z2+AtgC2i976uMJj0zAHQmgSgLPhXeRZk+EezTUwq\r\nwCM1I7BRZC1vy5/ih8ibfzUPdpdYkJaWZWX43GSUOTjaftiKASB1C2GryOco\r\n3Uci9jkYEDgjj7vmK2JrExfehWGS9BkY5xKnoNKlHORpyUnkRA9PHRJvJhy+\r\nLDjWDIAbZ0KBVbOELBGX+2UZ9T9qTMM4WdkXcZV1GD830cmho/Oyr/NnMVZF\r\n0pYqA6SJAOy1CtHprGu4c2aLclv6WjdqdmmhYpNh7QBJoxXZA8jxvYlGBWhq\r\n+gLhFk3wD6VQh77l/U0FoQ8/GCrpH21qNaoZNPXJsIVwMsNxuw4M3z+JyWOQ\r\npvdA9F0nAizAnQvjNMTw8UUt5fL0fP0cBQ8hrnLIBw9IDiv5uKeC2wCQTerT\r\nqntFveR0XwvQybRgOq6vonaDdOjKNhbBCtCYNo0Y9RljO2uogV9JZ5M/zGqy\r\nmJwZ9xCqFBwWNFrXAT7Lwo7rk2FaRgsoCUo=\r\n=Ot30\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jeffjing98","email":"jeffjing98@gmail.com"},"maintainers":[{"name":"jeffjing98","email":"jeffjing98@gmail.com"},{"name":"zhizhou","email":"luzhizhou@hotmail.com"},{"name":"axiacoin-org","email":"lucas@axiacoin.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axiajs_2.0.12_1660761067611_0.03810922495622493"},"_hasShrinkwrap":false},"2.0.13":{"name":"@axiaglobal/axiajs","version":"2.0.13","description":"Axia Platform JS Library","main":"dist/index.js","scripts":{"build":"rm -rf dist/ && npx tsc -b && cp -r typings/src ./dist","prebundle":"yarn build","bundle":"webpack --mode production","lint":"eslint ./ --ext js,ts --fix","prepublish":"yarn build","release:prepare":"rm -rf ./dist ./node_modules && yarn install && yarn build && yarn bundle && yarn test && git status","test":"jest","test-watch":"jest --watch","docshtml":"npx typedoc --plugin typedoc-plugin-external-module-name --mode file src","docsmd":"rm -rf docsMD && yarn build && npx typedoc --readme none --plugin typedoc-plugin-markdown,typedoc-plugin-external-module-name --theme markdown --out docsMD src","docs":"yarn docshtml && yarn docsmd","prettier-src":"prettier --write ./src","prettier-examples":"prettier --write ./examples","prettier-tests":"prettier --write ./tests","prettier-web":"prettier --write ./web","prettier-mocks":"prettier --write ./__mocks__","prettier":"yarn prettier-src && yarn prettier-examples && yarn prettier-tests && yarn prettier-web && yarn prettier-mocks","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-js.git"},"keywords":["Axia","blockchain","defi"],"author":{"name":"Jeet Bhosle","email":"jeet@zeeve.io"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-js/issues"},"homepage":"https://github.com/AxiaCoin/axia-network-v2-js#readme","devDependencies":{"@types/bech32":"1.1.4","@types/bn.js":"5.1.0","@types/create-hash":"1.2.2","@types/hdkey":"2.0.1","@types/jest":"27.5.0","@types/node":"16.11.12","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","clean-webpack-plugin":"4.0.0","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-security":"1.5.0","git-revision-webpack-plugin":"5.0.0","html-webpack-plugin":"5.5.0","husky":"7.0.4","jest":"26.6.3","jest-mock-axios":"4.5.0","prettier":"2.6.2","terser-webpack-plugin":"5.3.1","ts-jest":"26.5.6","ts-loader":"9.3.0","typedoc":"^0.18.0","typedoc-plugin-external-module-name":"^4.0.3","typedoc-plugin-markdown":"^2.4.0","typescript":"4.6.4","webpack":"5.72.0","webpack-cli":"4.9.2"},"engines":{"node":">=14.0.0"},"dependencies":{"assert":"2.0.0","axios":"0.27.2","bech32":"2.0.0","bip39":"3.0.4","bn.js":"5.2.1","buffer":"6.0.3","create-hash":"1.2.0","crypto-browserify":"3.12.0","elliptic":"6.5.4","ethers":"5.6.4","hdkey":"2.0.1","isomorphic-ws":"4.0.1","store2":"2.13.2","stream-browserify":"3.0.0","ws":"8.5.0","xss":"1.0.11"},"prettier":{"tabWidth":2,"useTabs":false,"semi":false,"singleQuote":false,"jsxBracketSameLine":false,"trailingComma":"none"},"types":"./dist/index.d.ts","gitHead":"d56f3fdf835521cd32b4c0eba6a5c3ef4b29babd","_id":"@axiaglobal/axiajs@2.0.13","_nodeVersion":"16.15.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-vIMVrlKQZ/a21wudz+z9/4+62W5CwVebyD43PsvJoR9+QwjAL7tdGI0F8m3iBRsWtvORODMEvZqJjPf1blb0NQ==","shasum":"93242d9cb1d09939f3829c725e70288a72103fbf","tarball":"https://registry.npmjs.org/@axiaglobal/axiajs/-/axiajs-2.0.13.tgz","fileCount":1149,"unpackedSize":12174104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKtc5o8hB7wmS2TfdjK6dCpGnOSc18Oq+YBcTbIBEmwAiEAttGWaq/CEjaoHWvqrG3NzjUMN+31N+WrV4Pw3RyONks="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/VwJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsthAAnNqAqJ6nodMFuIE24mWiEfF68PUjKDVMbDWGth1sercpPt50\r\nUbXy7y3heRJGFh2oehAyAGcReCJDEAjIR0+9S4HHc4Gc8DIKbX24Y/AHyAv4\r\n0rmkRvbO8ZGMqrW+sSH0cHdl1QNqJlLTOxpTIGmVRq6ceorbw0MPCUfwb2Wp\r\nftG8mRG8ssFDf68Sem0mcOm+MNwLSopBNi2EkCPFl0w1wCBugTJeS7WLFqtm\r\nzSerT+wVN68ihLs9UAYfax1Zdsi0DAMiNtHB8G/X2tO/nGXl4zFnG8wrZSZD\r\n8th/xYy/5bHfae5hPfwTt/pWk/gbckxGyRnimDPda+sTCdWBE8p5tVNWPg2d\r\nlAIwqYDJ35WJOgtGvHMLZq1re3I5G78A9ptbcrmiQaiR1B/ruR0krhnChpSE\r\nqOWZCwo7NFnWV7k2E2BM48WeO15AjKvmYy5R1Eb0j52ympz9Xwsm/oc4vj6Q\r\nau7toTlQJ8hcg3w6E0EYADAR5GhYFAZLl76MX/h/zuic6G9+7OzvckVwdlMT\r\n39HTBiIevGuW63Os5XoDVEyTxnZEMdaws6D7yeK1RcZq/ijtM3voW+ewBjAn\r\nxpoSFtO2i5fcgBfFf+WX/hbLaq8ckIvL3TanerXr3pxvnqWevFRL/YBU0xO4\r\ndSsO3LKD8nDDP959C93OWSq5VZDW8zaG7FA=\r\n=iFyc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jeffjing98","email":"jeffjing98@gmail.com"},"directories":{},"maintainers":[{"name":"jeffjing98","email":"jeffjing98@gmail.com"},{"name":"zhizhou","email":"luzhizhou@hotmail.com"},{"name":"axiacoin-org","email":"lucas@axiacoin.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axiajs_2.0.13_1660771337500_0.6856547163071378"},"_hasShrinkwrap":false},"2.0.14":{"name":"@axiaglobal/axiajs","version":"2.0.14","description":"Axia Platform JS Library","main":"dist/index.js","scripts":{"build":"rm -rf dist/ && npx tsc -b && cp -r typings/src ./dist","prebundle":"yarn build","bundle":"webpack --mode production","lint":"eslint ./ --ext js,ts --fix","prepublish":"yarn build","release:prepare":"rm -rf ./dist ./node_modules && yarn install && yarn build && yarn bundle && yarn test && git status","test":"jest","test-watch":"jest --watch","docshtml":"npx typedoc --plugin typedoc-plugin-external-module-name --mode file src","docsmd":"rm -rf docsMD && yarn build && npx typedoc --readme none --plugin typedoc-plugin-markdown,typedoc-plugin-external-module-name --theme markdown --out docsMD src","docs":"yarn docshtml && yarn docsmd","prettier-src":"prettier --write ./src","prettier-examples":"prettier --write ./examples","prettier-tests":"prettier --write ./tests","prettier-web":"prettier --write ./web","prettier-mocks":"prettier --write ./__mocks__","prettier":"yarn prettier-src && yarn prettier-examples && yarn prettier-tests && yarn prettier-web && yarn prettier-mocks","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-js.git"},"keywords":["Axia","blockchain","defi"],"author":{"name":"Jeet Bhosle","email":"jeet@zeeve.io"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-js/issues"},"homepage":"https://github.com/AxiaCoin/axia-network-v2-js#readme","devDependencies":{"@types/bech32":"1.1.4","@types/bn.js":"5.1.0","@types/create-hash":"1.2.2","@types/hdkey":"2.0.1","@types/jest":"27.5.0","@types/node":"16.11.12","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","clean-webpack-plugin":"4.0.0","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-security":"1.5.0","git-revision-webpack-plugin":"5.0.0","html-webpack-plugin":"5.5.0","husky":"7.0.4","jest":"26.6.3","jest-mock-axios":"4.5.0","prettier":"2.6.2","terser-webpack-plugin":"5.3.1","ts-jest":"26.5.6","ts-loader":"9.3.0","typedoc":"^0.18.0","typedoc-plugin-external-module-name":"^4.0.3","typedoc-plugin-markdown":"^2.4.0","typescript":"4.6.4","webpack":"5.72.0","webpack-cli":"4.9.2"},"engines":{"node":">=14.0.0"},"dependencies":{"assert":"2.0.0","axios":"0.27.2","bech32":"2.0.0","bip39":"3.0.4","bn.js":"5.2.1","buffer":"6.0.3","create-hash":"1.2.0","crypto-browserify":"3.12.0","elliptic":"6.5.4","ethers":"5.6.4","hdkey":"2.0.1","isomorphic-ws":"4.0.1","store2":"2.13.2","stream-browserify":"3.0.0","ws":"8.5.0","xss":"1.0.11"},"prettier":{"tabWidth":2,"useTabs":false,"semi":false,"singleQuote":false,"jsxBracketSameLine":false,"trailingComma":"none"},"types":"./dist/index.d.ts","gitHead":"7fa1d0137a7f204d59cb55bb17c4f19daf4932da","_id":"@axiaglobal/axiajs@2.0.14","_nodeVersion":"14.16.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-zdu69lAFgnPEltWxFDoIUzE9IYTx3JTxPd9IgnCHzhZkzHWBjHW8nUVWkJOs74iaB5ACQMknRfCJa+ZHMlS53g==","shasum":"efbb55d55482d2bf7426fbd9172f9f73687b1f20","tarball":"https://registry.npmjs.org/@axiaglobal/axiajs/-/axiajs-2.0.14.tgz","fileCount":1295,"unpackedSize":13054090,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOpCFhYpGanNVMNQ7Zc9T8eLk9tIjZWnHx58OPI2VSSQIgb7Q/hKxncB3idaD5IKCXtqNeUquD/lega3AmBsnxS0k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBUGYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQGg//S2buwSEa4Tv0iAlYFbBMe1sZv0QW4kdiMV8UyxSaLgoHgVs2\r\n2uwgOh4k9BIQyIiYje9HJEeoAGgOJTIC9V6J8NCHXjAjoasKS7qCjAvHeLI3\r\n3tz91bpZMg5b3zGZCUIbGX9XhjKq+eX4Dc8hLE0slkBcZv4eaRjcz64FK1CG\r\nc9aZJ3bFsXCuuaweJoL9ZfwA2Jqtqt39FRXI9EkmLKbna/Qflsidjkv+FFSu\r\n1wLg++A22O2XkWDxk2Im39CBTsAaOtjoKquSt19l7KitdvH1Htz39d2+hcQ6\r\nIrWHvxKjdwbPWEap+z9Fx8moWQbY4bMv4FwQQz8GdhGoMleFPzeFmSXAMNEJ\r\n5TWDpsyzmXbdx+mf61DZ096he8pGR9yNtb2HnQi/sKml5AlmyjVbKK2hS3VJ\r\nBYDcnqTnJSlKRtTKZRRq0x5P8GP7TjHJ8w2/DiCjj+UM+jKd+U3aW0a4NmXf\r\n43giPOKwSOtuJoY+AcbuAlIKmuJjhoVarqjOJAt71XNBsF65hdurIf4j5rO8\r\nPra72HSrJsVMXNy4a+e/App4gcFmXq7aVg4SbrzzAiAoIPHdaJmmvUvnGhQh\r\nuuFhDeCinTK8drarqOPdfhTxjWQJfGkdyreoS/anU2hDfvXuZiJ8tsdf+I3K\r\nl8ZCHp/6DbyeUj4+X1Mph0oXruy49xHzRi4=\r\n=zdwB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jeffjing98","email":"jeffjing98@gmail.com"},"directories":{},"maintainers":[{"name":"jeffjing98","email":"jeffjing98@gmail.com"},{"name":"zhizhou","email":"luzhizhou@hotmail.com"},{"name":"axiacoin-org","email":"lucas@axiacoin.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axiajs_2.0.14_1661288856073_0.20565805049817798"},"_hasShrinkwrap":false},"2.0.15":{"name":"@axiaglobal/axiajs","version":"2.0.15","description":"Axia Platform JS Library","main":"dist/index.js","scripts":{"build":"rm -rf dist/ && npx tsc -b && cp -r typings/src ./dist","prebundle":"yarn build","bundle":"webpack --mode production","lint":"eslint ./ --ext js,ts --fix","prepublish":"yarn build","release:prepare":"rm -rf ./dist ./node_modules && yarn install && yarn build && yarn bundle && yarn test && git status","test":"jest","test-watch":"jest --watch","docshtml":"npx typedoc --plugin typedoc-plugin-external-module-name --mode file src","docsmd":"rm -rf docsMD && yarn build && npx typedoc --readme none --plugin typedoc-plugin-markdown,typedoc-plugin-external-module-name --theme markdown --out docsMD src","docs":"yarn docshtml && yarn docsmd","prettier-src":"prettier --write ./src","prettier-examples":"prettier --write ./examples","prettier-tests":"prettier --write ./tests","prettier-web":"prettier --write ./web","prettier-mocks":"prettier --write ./__mocks__","prettier":"yarn prettier-src && yarn prettier-examples && yarn prettier-tests && yarn prettier-web && yarn prettier-mocks","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-js.git"},"keywords":["Axia","blockchain","defi"],"author":{"name":"Jeet Bhosle","email":"jeet@zeeve.io"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-js/issues"},"homepage":"https://github.com/AxiaCoin/axia-network-v2-js#readme","devDependencies":{"@types/bech32":"1.1.4","@types/bn.js":"5.1.0","@types/create-hash":"1.2.2","@types/hdkey":"2.0.1","@types/jest":"27.5.0","@types/node":"16.11.12","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","clean-webpack-plugin":"4.0.0","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-security":"1.5.0","git-revision-webpack-plugin":"5.0.0","html-webpack-plugin":"5.5.0","husky":"7.0.4","jest":"26.6.3","jest-mock-axios":"4.5.0","prettier":"2.6.2","terser-webpack-plugin":"5.3.1","ts-jest":"26.5.6","ts-loader":"9.3.0","typedoc":"^0.18.0","typedoc-plugin-external-module-name":"^4.0.3","typedoc-plugin-markdown":"^2.4.0","typescript":"4.6.4","webpack":"5.72.0","webpack-cli":"4.9.2"},"engines":{"node":">=14.0.0"},"dependencies":{"assert":"2.0.0","axios":"0.27.2","bech32":"2.0.0","bip39":"3.0.4","bn.js":"5.2.1","buffer":"6.0.3","create-hash":"1.2.0","crypto-browserify":"3.12.0","elliptic":"6.5.4","ethers":"5.6.4","hdkey":"2.0.1","isomorphic-ws":"4.0.1","store2":"2.13.2","stream-browserify":"3.0.0","ws":"8.5.0","xss":"1.0.11"},"prettier":{"tabWidth":2,"useTabs":false,"semi":false,"singleQuote":false,"jsxBracketSameLine":false,"trailingComma":"none"},"types":"./dist/index.d.ts","gitHead":"c22f5d97924ee8c1baece802c3f0feb43cf45479","_id":"@axiaglobal/axiajs@2.0.15","_nodeVersion":"14.16.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-aruRMMd2WB7Jb4WWFEulH7z/8mAtUzWSrxnc72CnaUW/5+s6w0CvNR6i8DFQXfSPLQjVzH4Fr5J+oMlRzP4G0Q==","shasum":"fed63cc803c2850c8575c6e761fb25ffc2c91026","tarball":"https://registry.npmjs.org/@axiaglobal/axiajs/-/axiajs-2.0.15.tgz","fileCount":1295,"unpackedSize":13047705,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICC4dsy9GQjsX4xEaMMhziIqatWmHC4FtVxaXhFZVPWNAiBITgMA9uPJImdVoRNjGtbMBo7gS7ztFM8IuSEl6/76Vg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBm8mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1Qw//cIy8gvJlOKdU+6BTubOf8Q/pj9CfMnkWzX2KpGx38GbQyU5G\r\ns1k6sjAfHWrloZXeVJoaWTbGhLvDA0d2r1Kh6STFqnKVOrNH6p7g0f1/wMxN\r\niJssQlrgw8wzJRqVVF9Xa/o8oLYjiRfOTtVA+RHEBwLLRLdCrjE1ODszDG0+\r\nZNrRArDJUOhFX9VE8k6rP/TW2C65Cr4Fm22VlssHluLoBLWFbdWSnbTtNMJ+\r\n2tdCN82uMUtXKPuoygmqI9rLYtJDWf3g+xH78Ui0kDdNLbv9pNddfRFNusIg\r\nnkVIyr7hma/23UVZVmfldnbb/dnj1HRZHw4vqSvylYw9Wkzq3SA96Z6+Gfiv\r\nf62Cjylqin9HcoGVRZPEDhvZTx/GOdp87TRFF6EoaEQ1CPFc2hrF8Fo6+jXk\r\nkxQIXAa3huJ4ewWUBHj2AlQkkA0UFxa3FDPRJeqw2MiShrrxRI8fI1S3Gotf\r\nRMNxw+IiH42CG00sF/Vj+f4qM2GCsN49CeZgU9jR2IBUgNW4wNc5FH5xjedX\r\ns+Wv56EBHVsvFJLEl2i1rt0TvaV+sccJhOtUkvBiYq+zm1E4uWRIxIKxYkz/\r\nPKeHSj3Oc7lB0C1ZWAoMbNlL1s6p12OCn0fKu/NToUjFZVZ4Xh9N1+YbhNc4\r\n5lLzqc6U92BOPIMCj9l1RG0dwxlfFiYag08=\r\n=6qhO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jeffjing98","email":"jeffjing98@gmail.com"},"directories":{},"maintainers":[{"name":"jeffjing98","email":"jeffjing98@gmail.com"},{"name":"zhizhou","email":"luzhizhou@hotmail.com"},{"name":"axiacoin-org","email":"lucas@axiacoin.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axiajs_2.0.15_1661366054095_0.43197383834615444"},"_hasShrinkwrap":false},"2.0.16":{"name":"@axiaglobal/axiajs","version":"2.0.16","description":"Axia Platform JS Library","main":"dist/index.js","scripts":{"build":"rm -rf dist/ && npx tsc -b && cp -r typings/src ./dist","prebundle":"yarn build","bundle":"webpack --mode production","lint":"eslint ./ --ext js,ts --fix","prepublish":"yarn build","release:prepare":"rm -rf ./dist ./node_modules && yarn install && yarn build && yarn bundle && yarn test && git status","test":"jest","test-watch":"jest --watch","docshtml":"npx typedoc --plugin typedoc-plugin-external-module-name --mode file src","docsmd":"rm -rf docsMD && yarn build && npx typedoc --readme none --plugin typedoc-plugin-markdown,typedoc-plugin-external-module-name --theme markdown --out docsMD src","docs":"yarn docshtml && yarn docsmd","prettier-src":"prettier --write ./src","prettier-examples":"prettier --write ./examples","prettier-tests":"prettier --write ./tests","prettier-web":"prettier --write ./web","prettier-mocks":"prettier --write ./__mocks__","prettier":"yarn prettier-src && yarn prettier-examples && yarn prettier-tests && yarn prettier-web && yarn prettier-mocks","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-js.git"},"keywords":["Axia","blockchain","defi"],"author":{"name":"Jeet Bhosle","email":"jeet@zeeve.io"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-js/issues"},"homepage":"https://github.com/AxiaCoin/axia-network-v2-js#readme","devDependencies":{"@types/bech32":"1.1.4","@types/bn.js":"5.1.0","@types/create-hash":"1.2.2","@types/hdkey":"2.0.1","@types/jest":"27.5.0","@types/node":"16.11.12","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","clean-webpack-plugin":"4.0.0","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.0.0","eslint-plugin-security":"1.5.0","git-revision-webpack-plugin":"5.0.0","html-webpack-plugin":"5.5.0","husky":"7.0.4","jest":"26.6.3","jest-mock-axios":"4.5.0","prettier":"2.6.2","terser-webpack-plugin":"5.3.1","ts-jest":"26.5.6","ts-loader":"9.3.0","typedoc":"^0.18.0","typedoc-plugin-external-module-name":"^4.0.3","typedoc-plugin-markdown":"^2.4.0","typescript":"4.6.4","webpack":"5.72.0","webpack-cli":"4.9.2"},"engines":{"node":">=14.0.0"},"dependencies":{"assert":"2.0.0","axios":"0.27.2","bech32":"2.0.0","bip39":"3.0.4","bn.js":"5.2.1","buffer":"6.0.3","create-hash":"1.2.0","crypto-browserify":"3.12.0","elliptic":"6.5.4","ethers":"5.6.4","hdkey":"2.0.1","isomorphic-ws":"4.0.1","store2":"2.13.2","stream-browserify":"3.0.0","ws":"8.5.0","xss":"1.0.11"},"prettier":{"tabWidth":2,"useTabs":false,"semi":false,"singleQuote":false,"jsxBracketSameLine":false,"trailingComma":"none"},"types":"./dist/index.d.ts","gitHead":"8481ee9dffd73cc89becda0fe588a04f994d5a9e","_id":"@axiaglobal/axiajs@2.0.16","_nodeVersion":"14.16.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-urIJqcs8miVtNGjZvbLspk87eEVOz45/HQ9Xvx4RXyOGtlKbVST8T0MHYHAwBIhEwhslTD2W286rkOIunZYsVQ==","shasum":"d643165c66da1c95cd0d17f0f6bfcfc5c0801e40","tarball":"https://registry.npmjs.org/@axiaglobal/axiajs/-/axiajs-2.0.16.tgz","fileCount":1295,"unpackedSize":13114658,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXqsPETF1zujTm/eTtWsyngjgQpCgrMteywF/tG5HAdAiBdC4tLsTCDt+YKDuEO+GIJqq8JxrXDJ8ukFq1NLO9Ynw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB8QfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLLQ//Vvr7/P4JkaRiVOviN+JjTCAa8EQSXJ43QKunkolnjvTJC55a\r\nuw/OpmmytHDfl1h8GqjmD1g/TBfyyozFb1XBIJC0UTDp1sbkW3NC9ZOunVeF\r\nN5Q9clfbBhGc7BUFKcyVQrch5v2X9jMK8YaCt/dgPnEerjMARZ6Z951qHSQe\r\nWDKyQsyGmApz6Jqu3CD0g/MDh2i47n5kntaA6LDhymor+wwMw4WmOoGa6eFZ\r\ngDVbLQY5IF+a4bmsaZmN8bno8tdMN+/Nq0Kl+AadtBOehT9YVudhKGBmX88W\r\nJVWCDfy7KPE9tcomqoGAz24Xg8KPaP0sEcCwFvJ+G8dpZ1d4/AeXzl3w14VL\r\nNazFQusIODyUEQn6Q9ky2w8s5R2i1T1+t/XsSZFmPp8QqINJgsZh70Wboj2N\r\nfjsAUDKR/kaag0/Ene3LHgMgf1W8D/hONK01bb6/jKwV58hRGX68JLBHCvfq\r\n5ohKDFZkdjywu1xrulErcfFGrH5CiHAqV9RI1+6k0ZuGYAM5YvpZ4AdJYfpU\r\n9Rl0g6aht7gvDoXIwqtZT1Kxq98AmnzxtLKoP7eM11HoBFBYX9Uv6l/0V3vs\r\nFC0PlA9PxArCMvHcWdtpnKCpQHS25+Re+6kYyfD50wbmV8kF/FUX2/WKPLJt\r\n8MYweN3RhW/R0qw/+0ahJ4UgA+DwY1Selcs=\r\n=7kfp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jeffjing98","email":"jeffjing98@gmail.com"},"directories":{},"maintainers":[{"name":"jeffjing98","email":"jeffjing98@gmail.com"},{"name":"zhizhou","email":"luzhizhou@hotmail.com"},{"name":"axiacoin-org","email":"lucas@axiacoin.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axiajs_2.0.16_1661453342650_0.15462728365811862"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-17T18:31:07.549Z","2.0.12":"2022-08-17T18:31:07.972Z","modified":"2022-08-25T18:49:03.109Z","2.0.13":"2022-08-17T21:22:17.691Z","2.0.14":"2022-08-23T21:07:36.255Z","2.0.15":"2022-08-24T18:34:14.377Z","2.0.16":"2022-08-25T18:49:03.015Z"},"maintainers":[{"name":"jeffjing98","email":"jeffjing98@gmail.com"},{"name":"zhizhou","email":"luzhizhou@hotmail.com"},{"name":"axiacoin-org","email":"lucas@axiacoin.org"}],"description":"Axia Platform JS Library","homepage":"https://github.com/AxiaCoin/axia-network-v2-js#readme","keywords":["Axia","blockchain","defi"],"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-js.git"},"author":{"name":"Jeet Bhosle","email":"jeet@zeeve.io"},"bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-js/issues"},"license":"BSD-3-Clause","readme":"# AxiaJS - The Axia Platform JavaScript Library\n\n## Overview\n\nAxiaJS is a JavaScript Library for interfacing with the Axia Platform. It is built using TypeScript and intended to support both browser and Node.js. The AxiaJS library allows you to issue commands to the Axia node APIs.\n\nThe APIs currently supported by default are:\n\n* Admin API\n* Auth API\n* AVM API (Swap-Chain)\n* EVM API (AX-Chain)\n* Health API\n* Info API\n* Keystore API\n* Metrics API\n* PlatformVM API (Core-Chain)\n\nWe built AxiaJS with ease of use in mind. With this library, any Javascript developer is able to interact with a node on the Axia Platform who has enabled their API endpoints for the developer's consumption. We keep the library up-to-date with the latest changes in the [Axia Platform Specification](https://docs.axc.network).\n\n  Using AxiaJS, developers can:\n\n* Locally manage private keys\n* Retrieve balances on addresses\n* Get UTXOs for addresses\n* Build and sign transactions\n* Issue signed transactions to the Swap-Chain, Core-Chain, and AX-Chain\n* Perform cross-chain swaps between the Swap-Chain<->Core-Chain and between the Swap-Chain<->AX-Chain\n* Add Validators and Nominators to the Primary Allychainwork by staking AXC\n* Create a Allychainwork\n* Administer a local node\n* Retrieve Axia network information from a node\n\n### Requirements\n\nAxiaJS requires Node.js LTS version 14.16.0 or higher to compile.\n\n### Installation\n\nAxia is available for install via `yarn`:\n\n`yarn add axia`\n\nYou can also pull the repo down directly and build it from scratch:\n\n`yarn build`\n\nThis will generate a pure Javascript library and place it in a folder named \"web\" in the project root. The \"axia.js\" file can then be dropped into any project as a pure javascript implementation of Axia.\n\nThe AxiaJS library can be imported into your existing Node.js project as follows:\n\n```js\nconst axia = require(\"axia\")\n```\n\nOr into your TypeScript project like this:\n\n```js\nimport { Axia } from \"axia\"\n```\n\n### Importing essentials\n\n```js\nimport { Axia, BinTools, BN, Buffer } from \"axia\"\n\nconst bintools = BinTools.getInstance()\n```\n\nThe above lines import the libraries used in the tutorials. The libraries include:\n\n* Axia: Our javascript module.\n* BinTools: A singleton built into AxiaJS that is used for dealing with binary data.\n* [BN](https://www.npmjs.com/package/bn.js): A bignumber module use by AxiaJS.\n* [Buffer](https://www.npmjs.com/package/buffer): A Buffer library.\n\n## Example 1 &mdash; Managing Swap-Chain Keys\n\nAxiaJS comes with its own AVM Keychain. This KeyChain is used in the functions of the API, enabling them to sign using keys it's registered. The first step in this process is to create an instance of AxiaJS connected to our Axia Platform endpoint of choice.\n\n```js\nimport { Axia, BinTools, Buffer, BN } from \"axia\"\n\nconst bintools = BinTools.getInstance()\n\nconst myNetworkID = 12345 //default is 1, we want to override that for our local network\nconst axia = new Axia(\"localhost\", 443, \"http\", myNetworkID)\nconst swapchain = axia.SwapChain() //returns a reference to the Swap-Chain used by AxiaJS\n```\n\n### Accessing the KeyChain\n\nThe KeyChain is accessed through the Swap-Chain and can be referenced directly or through a reference variable.\n\n```js\nconst myKeychain = swapchain.keyChain()\n```\n\nThis exposes the instance of the class AVMKeyChain which is created when the Swap-Chain API is created. At present, this supports secp256k1 curve for ECDSA key pairs.\n\n### Creating Swap-Chain key pairs\n\nThe KeyChain has the ability to create new KeyPairs for you and return the address associated with the key pair.\n\n```js\nconst newAddress1 = myKeychain.makeKey() // returns an instance of the KeyPair class\n```\n\nYou may also import your existing private key into the KeyChain using either a Buffer...\n\n```js\nconst mypk = bintools.cb58Decode(\n  \"JaCCSxdoWfo3ao5KwenXrJjJR7cBTQ287G1C5qpv2hr2tCCdb\"\n) // returns a Buffer\nconst newAddress2 = myKeychain.importKey(mypk) // returns an instance of the KeyPair class\n```\n\n... or an CB58 string works, too:\n\n```js\nconst mypk = \"PrivateKey-JaCCSxdoWfo3ao5KwenXrJjJR7cBTQ287G1C5qpv2hr2tCCdb\"\nconst newAddress2 = myKeychain.importKey(mypk) // returns an instance of the KeyPair class\n```\n\n### Working with KeyChains\n\nThe Swap-Chains's KeyChain has standardized key management capabilities. The following functions are available on any KeyChain that implements this interface.\n\n```js\nconst addresses = myKeychain.getAddresses() // returns an array of Buffers for the addresses\nconst addressStrings = myKeychain.getAddressStrings() // returns an array of strings for the addresses\nconst exists = myKeychain.hasKey(addresses[0]) // returns true if the address is managed\nconst keypair = myKeychain.getKey(addresses[0]) // returns the KeyPair class\n```\n\n### Working with KeyPairs\n\nThe Swap-Chain's KeyPair has standardized KeyPair functionality. The following operations are available on any KeyPair that implements this interface.\n\n```js\nconst address = keypair.getAddress() // returns Buffer\nconst addressString = keypair.getAddressString() // returns string\n\nconst pubk = keypair.getPublicKey() // returns Buffer\nconst pubkstr = keypair.getPublicKeyString() // returns a CB58 encoded string\n\nconst privk = keypair.getPrivateKey() //returns Buffer\nconst privkstr = keypair.getPrivateKeyString() //returns a CB58 encoded string\n\nkeypair.generateKey() // creates a new random KeyPair\n\nconst mypk = bintools.cb58Decode(\n  \"24jUJ9vZexUM6expyMcT48LBx27k1m7xpraoV62oSQAHdziao5\"\n)\nconst successful = keypair.importKey(mypk) // returns boolean if private key imported successfully\n\nconst message = Buffer.from(\"Through consensus to the stars\")\nconst signature = keypair.sign(message) // returns a Buffer with the signature\n\nconst signerPubk = keypair.recover(message, signature) // returns a Buffer\nconst isValid = keypair.verify(message, signature) // returns a boolean\n```\n\n## Example 2 &mdash; Creating An Asset\n\nThis example creates an asset in the Swap-Chain and publishes it to the Axia Platform. The first step in this process is to create an instance of AxiaJS connected to our Axia Platform endpoint of choice.\n\n```js\nimport { Axia, BinTools, Buffer, BN } from \"axia\"\nimport { InitialStates, SECPTransferOutput } from \"axia/dist/apis/avm\"\n\nconst myNetworkID = 12345 // default is 1, we want to override that for our local network\nconst axia = new Axia(\"localhost\", 443, \"http\", myNetworkID)\nconst swapchain = axia.SwapChain() // returns a reference to the Swap-Chain used by AxiaJS\n```\n\n### Describe the new asset\n\nThe first steps in creating a new asset using AxiaJS is to determine the qualities of the asset. We will give the asset a name, a ticker symbol, as well as a denomination.\n\n```js\n// Name our new coin and give it a symbol\nconst name = \"TeamRocket\"\nconst symbol = \"ROKT\"\n\n// Where is the decimal point indicate what 1 asset is and where fractional assets begin\n// Ex: 1 AXC is denomination 9, so the smallest unit of AXC is nanoAXC (nAXC) at 10^-9 AXC\nconst denomination = 9\n```\n\n### Creating the initial state\n\nWe want to mint an asset with 400 coins to all of our managed keys, 500 to the second address we know of, and 600 to the second and third address. This sets up the state that will result from the Create Asset transaction.\n\n_Note: This example assumes we have the keys already managed in our Swap-Chain's Keychain._\n\n```js\nconst addresses = swapchain.keyChain().getAddresses()\n\n// Create outputs for the asset's initial state\nconst secpOutput1 = new SECPTransferOutput(\n  new BN(400),\n  new BN(400),\n  1,\n  addresses\n)\nconst secpOutput2 = new SECPTransferOutput(new BN(500), new BN(400), 1, [\n  addresses[1],\n])\nconst secpOutput3 = new SECPTransferOutput(new BN(600), new BN(400), 1, [\n  addresses[1],\n  addresses[2],\n])\n\n// Populate the initialStates with the outputs\nconst initialState = new InitialStates()\ninitialState.addOutput(secpOutput1)\ninitialState.addOutput(secpOutput2)\ninitialState.addOutput(secpOutput3)\n```\n\n### Creating the signed transaction\n\nNow that we know what we want an asset to look like, we create an output to send to the network. There is an AVM helper function `buildCreateAssetTx()` which does just that.\n\n```js\n// Fetch the UTXOSet for our addresses\nconst utxos = await swapchain.getUTXOs(addresses)\n\n// Make an unsigned Create Asset transaction from the data compiled earlier\nconst unsigned = await swapchain.buildCreateAssetTx(\n  utxos, // the UTXOSet containing the UTXOs we're going to spend\n  addresses, // the addresses which will pay the fees\n  addresses, // the addresses which recieve the change from the spent UTXOs\n  initialState, // the initial state to be created for this new asset\n  name, // the full name of the asset\n  symbol, // a short ticker symbol for the asset\n  denomination // the asse's denomination\n)\n\nconst signed = unsigned.sign(swapchain) // returns a Tx class\n```\n\n### Issue the signed transaction\n\nNow that we have a signed transaction ready to send to the network, let's issue it!\n\nUsing the AxiaJS Swap-Chain API, we going to call the `issueTx` function. This function can take either the Tx class returned in the previous step, a CB58 representation of the transaction, or a raw Buffer class with the data for the transaction. Examples of each are below:\n\n```js\n// using the Tx class\nconst txid = await swapchain.issueTx(signed) // returns a CB58 serialized string for the TxID\n```\n\n```js\n// using the base-58 representation\nconst txid = await swapchain.issueTx(signed.toString()) // returns a CB58 serialized string for the TxID\n```\n\n```js\n// using the transaction Buffer\nconst txid = await swapchain.issueTx(signed.toBuffer()) // returns a CB58 serialized string for the TxID\n```\n\nWe assume ONE of those methods are used to issue the transaction.\n\n### Get the status of the transaction\n\nNow that we sent the transaction to the network, it takes a few seconds to determine if the transaction has gone through. We can get an updated status on the transaction using the TxID through the AVM API.\n\n```js\n// returns one of: \"Accepted\", \"Processing\", \"Unknown\", and \"Rejected\"\nconst status = await swapchain.getTxStatus(txid)\n```\n\nThe statuses can be one of \"Accepted\", \"Processing\", \"Unknown\", and \"Rejected\":\n\n* \"Accepted\" indicates that the transaction has been accepted as valid by the network and executed\n* \"Processing\" indicates that the transaction is being voted on.\n* \"Unknown\" indicates that node knows nothing about the transaction, indicating the node doesn't have it\n* \"Rejected\" indicates the node knows about the transaction, but it conflicted with an accepted transaction\n\n### Identifying the newly created asset\n\nThe Swap-Chain uses the TxID of the transaction which created the asset as the unique identifier for the asset. This unique identifier is henceforth known as the \"AssetID\" of the asset. When assets are traded around the Swap-Chain, they always reference the AssetID that they represent.\n\n## Example 3 &mdash; Sending An Asset\n\nThis example sends an asset in the Swap-Chain to a single recipient. The first step in this process is to create an instance of Axia connected to our Axia Platform endpoint of choice.\n\n```js\nimport { Axia, BinTools, Buffer, BN } from \"axia\"\n\nconst myNetworkID = 12345 // default is 1, we want to override that for our local network\nconst axia = new axia.Axia(\n  \"localhost\",\n  443,\n  \"http\",\n  myNetworkID\n)\nconst swapchain = axia.SwapChain() // returns a reference to the Swap-Chain used by AxiaJS\n```\n\nWe're also assuming that the keystore contains a list of addresses used in this transaction.\n\n### Getting the UTXO Set\n\nThe Swap-Chain stores all available balances in a datastore called Unspent Transaction Outputs (UTXOs). A UTXO Set is the unique list of outputs produced by transactions, addresses that can spend those outputs, and other variables such as lockout times (a timestamp after which the output can be spent) and thresholds (how many signers are required to spend the output).\n\nFor the case of this example, we're going to create a simple transaction that spends an amount of available coins and sends it to a single address without any restrictions. The management of the UTXOs will mostly be abstracted away.\n\nHowever, we do need to get the UTXO Set for the addresses we're managing.\n\n```js\nconst myAddresses = swapchain.keyChain().getAddresses() // returns an array of addresses the KeyChain manages as buffers\nconst addressStrings = swapchain.keyChain().getAddressStrings() // returns an array of addresses the KeyChain manages as strings\nconst u = await swapchain.getUTXOs(myAddresses)\nconst utxos = u.utxos\n```\n\n### Spending the UTXOs\n\nThe `buildBaseTx()` helper function sends a single asset type. We have a particular assetID whose coins we want to send to a recipient address. This is an imaginary asset for this example which we believe to have 400 coins. Let's verify that we have the funds available for the transaction.\n\n```js\nconst assetID = \"8pfG5CTyL5KBVaKrEnCvNJR95dUWAKc1hrffcVxfgi8qGhqjm\" // cb58 string\nconst mybalance = utxos.getBalance(myAddresses, assetID) // returns 400 as a BN\n```\n\nWe have 400 coins! We're going to now send 100 of those coins to our friend's address.\n\n```js\nconst sendAmount = new BN(100) // amounts are in BN format\nconst friendsAddress = \"Swap-axc1k26jvfdzyukms95puxcceyzsa3lzwf5ftt0fjk\" // address format is Bech32\n\n// The below returns a UnsignedTx\n// Parameters sent are (in order of appearance):\n//   * The UTXO Set\n//   * The amount being sent as a BN\n//   * An array of addresses to send the funds\n//   * An array of addresses sending the funds\n//   * An array of addresses any leftover funds are sent\n//   * The AssetID of the funds being sent\nconst unsignedTx = await swapchain.buildBaseTx(\n  utxos,\n  sendAmount,\n  [friendsAddress],\n  addressStrings,\n  addressStrings,\n  assetID\n)\nconst signedTx = swapchain.signTx(unsignedTx)\nconst txid = await swapchain.issueTx(signedTx)\n```\n\nAnd the transaction is sent!\n\n### Get the status of the transaction\n\nNow that we sent the transaction to the network, it takes a few seconds to determine if the transaction has gone through. We can get an updated status on the transaction using the TxID through the Swap-Chain.\n\n```js\n// returns one of: \"Accepted\", \"Processing\", \"Unknown\", and \"Rejected\"\nconst status = await swapchain.getTxStatus(txid)\n```\n\nThe statuses can be one of \"Accepted\", \"Processing\", \"Unknown\", and \"Rejected\":\n\n* \"Accepted\" indicates that the transaction has been accepted as valid by the network and executed\n* \"Processing\" indicates that the transaction is being voted on.\n* \"Unknown\" indicates that node knows nothing about the transaction, indicating the node doesn't have it\n* \"Rejected\" indicates the node knows about the transaction, but it conflicted with an accepted transaction\n\n### Check the results\n\nThe transaction finally came back as \"Accepted\", now let's update the UTXOSet and verify that the transaction balance is as we expected.\n\n*Note: In a real network the balance isn't guaranteed to match this scenario. Transaction fees or additional spends may vary the balance. For the purpose of this example, we assume neither of those cases.*\n\n```js\nconst updatedU = await swapchain.getUTXOs()\nconst updatedUTXOs = updatedU.utxos\nconst newBalance = updatedUTXOs.getBalance(myAddresses, assetID)\nif (newBalance.toNumber() != mybalance.sub(sendAmount).toNumber()) {\n  throw Error(\"heyyy these should equal!\")\n}\n```\n\n### Repo Dependency Updates\n\nDependabot will make pull requests against the development branch. If all tests pass, it is safe to merge into development, but for redundancy you want to try to build it locally.\n\n```zsh\ngit fetch origin\ngit checkout -b <branchName>\ngit merge development\nyarn build && yarn test\n```\n\nIf the E2E check does not pass, go into the 'checks' section of the PR.\n`https://github.com/AxiaCoin/axiajs/pull/<PR number>/checks`\n\n* Click on the `> E2E` tab on the left\n* Click 'Re-run jobs' on the right\n","readmeFilename":"README.md"}