{"_id":"@tronweb3/walletconnect-tron","_rev":"13-794e4d56b9f8b83ea258752323e9c7b5","name":"@tronweb3/walletconnect-tron","dist-tags":{"latest":"4.0.3"},"versions":{"1.0.0":{"name":"@tronweb3/walletconnect-tron","version":"1.0.0","author":{"name":"tron protocol"},"license":"MIT","_id":"@tronweb3/walletconnect-tron@1.0.0","maintainers":[{"name":"tron-dev","email":"zcathy.tron@proton.me"}],"homepage":"https://tron.network/","dist":{"shasum":"c6927975dd0863b077945075b4f29dd3446c4bb6","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-1.0.0.tgz","fileCount":20,"integrity":"sha512-p25gH2rKfsb1xIrczBsNEuV0o1uu7dT3xSOIf/9E2YiJ9PQf74vad6147aDFLGdjNqEB9ZBauH7/r2U44PSR5g==","signatures":[{"sig":"MEUCIQC5IufLY0gYNZejyIMhtE4MHXuLziz7fpamKJ/8lJk1kgIge8Xz7MMD7MoIME4YQH6qobZNJy0GDrV2fR9lhPR+hHA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjg2YcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmXA//SIqlhwvDSre0RvhUd+wZKD7N+eCsgCvxl+Q39+HgwA4xDb3E\r\nGGG24faAjbl6NIWruL59f4VfCjGBxpaDj7kJhDzzuod+6LlS4VZAG+b0wcQ5\r\nTEvqPgNBEpxLWQZzZMxPEe8PuwxcfYjv2EysRxK6nyjvaj5kjPr9SLuZm26e\r\nBaNk1H5zSg/lYGflRFP/zunhP4eFWWLEl60h1GYqqVcTzINsnnug0TT7JlEa\r\nonBJVrvhmtNr07A545/ZT/mWvQswZDgKOylPRTuDkNqHZfVDhmiRrBtZj82P\r\n/oBew5wIgZQUuoK/1X7U4R14mPjZEp0Afih/sw6KnicOf8vsX63LKHKz7lIi\r\nsUX9YDSnRMJJh5MOv1sWVG8FldL+DnkGxA80NiYlsJydO9eq9auLD3qb/3BI\r\nPkolajHvWFiF+sydGP2tDyJJjLLe8DmEa/cIXotP/hhMAMub6k50RzPcIKsW\r\n32opRgCLsiluhN4MimQTSV+Ludy1qvf0Jh8hDFG4wRJPsqCncpHQ0T60b/R/\r\nIuywgmKv3l89bH1vvDZi4A24mRfiNxUwm/sXD9a9ExfhCeFC48LspyHnxGdx\r\nPeuc9GVpeKrsPR3wa/a5HcQWovLwT+HUV4M6+suq/JLmhxjCLgm2HwTLLHl/\r\nxMQXXp4Gyn/LbbL2b0x5Ahpy0GhWy2WGEZo=\r\n=YC10\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"fcc6d5f742143d9ca51bebe68b816cd8d69705c4","scripts":{"clean":"shx mkdir -p lib && shx rm -rf lib","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json"},"_npmUser":{"name":"tron-dev","email":"zcathy.tron@proton.me"},"_npmVersion":"8.15.0","description":"@tronweb3/walletconnect-tron","directories":{},"sideEffects":false,"_nodeVersion":"16.17.0","dependencies":{"@walletconnect/utils":"^2.1.3","@walletconnect/sign-client":"^2.1.3","@walletconnect/qrcode-modal":"1.8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@walletconnect/types":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/walletconnect-tron_1.0.0_1669555740227_0.2766973424633261","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@tronweb3/walletconnect-tron","version":"1.0.1","author":{"name":"tronprotocol"},"license":"MIT","_id":"@tronweb3/walletconnect-tron@1.0.1","maintainers":[{"name":"cathytan","email":"huijuant58@163.com"},{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tron-dev","email":"zcathy.tron@proton.me"}],"dist":{"shasum":"30473d7a9f80e73f70bd417ba825197aec095b82","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-1.0.1.tgz","fileCount":22,"integrity":"sha512-2OIb+2xOX3OgXrwVBqYw37rwInbYe9X1lI6MJmlumLpyBaNzKARr4zT0DOJrJwCmCi38ah2AgCrhGOb6/WfFbw==","signatures":[{"sig":"MEQCIGLvY4ZXS6JTu/4FrsLncdK+EkAqJ7UisGxk4MDHRje+AiAFToV9/9zTDAIKLaoRmM4pTXtrY07ccI+Glbd4wEkX0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36686},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"1c866dc12adc671d47faa3733a8b0d93d0a67b22","scripts":{"clean":"shx mkdir -p lib && shx rm -rf lib","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json"},"_npmUser":{"name":"troncore","email":"tronweb3@tron.network"},"_npmVersion":"8.15.0","description":"@tronweb3/walletconnect-tron helps DApp to connect with WalletConnect TRON Chain.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"@walletconnect/utils":"^2.1.3","@walletconnect/types-v1":"npm:@walletconnect/types@^1.8.0","@walletconnect/sign-client":"^2.1.3","@walletconnect/qrcode-modal":"1.8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@walletconnect/types":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/walletconnect-tron_1.0.1_1684223262995_0.7789260195166117","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@tronweb3/walletconnect-tron","version":"2.0.0","author":{"name":"tronprotocol"},"license":"MIT","_id":"@tronweb3/walletconnect-tron@2.0.0","maintainers":[{"name":"cathytan","email":"huijuant58@163.com"},{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tron-dev","email":"zcathy.tron@proton.me"}],"dist":{"shasum":"067b36595e6608ff5c432d93a443380fc0dae986","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-2.0.0.tgz","fileCount":22,"integrity":"sha512-COAm1zOnCUHKU+rMFsTDYn5PX9fD8z1/QItHNpWo33BBDPk+nZfz0mK7orGpVOpO5IcOG33AsyGxqv/C/gJnTQ==","signatures":[{"sig":"MEYCIQCgLDUMZVmbte+aquIIaGk1rMDyUPChIAvnnVA18Gy5HwIhAPJBN6iG3SQPgWgvbYVfdNKxoDdqAJKWaaN2AM8CIgoK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38761},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"5ef41b847224a0ab9b615e27c16cb46e7154ca7d","scripts":{"clean":"shx mkdir -p lib && shx rm -rf lib","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json"},"_npmUser":{"name":"troncore","email":"tronweb3@tron.network"},"_npmVersion":"8.15.0","description":"@tronweb3/walletconnect-tron helps DApp to connect with WalletConnect TRON Chain.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"@walletconnect/utils":"^2.1.3","@web3modal/standalone":"^2.4.1","@walletconnect/sign-client":"^2.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@walletconnect/types":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/walletconnect-tron_2.0.0_1685416052061_0.3978643825448793","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@tronweb3/walletconnect-tron","version":"3.0.0","author":{"name":"tronprotocol"},"license":"MIT","_id":"@tronweb3/walletconnect-tron@3.0.0","maintainers":[{"name":"cathytan","email":"huijuant58@163.com"},{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tron-dev","email":"zcathy.tron@proton.me"}],"dist":{"shasum":"4081b6462072c6b3871e74510f329b486db084a4","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-3.0.0.tgz","fileCount":22,"integrity":"sha512-aYFbUsZHYumdGXt+1VN4mN9Cjr1+GWYr7cXOLawoQ1WqiHOlAiovSnsTpGhUFLn2FZV8m6rdnXTZ59S/0Mv9mw==","signatures":[{"sig":"MEQCIH01o4HCYhDePLcuWOXHe500bXfLTqm8F2zkvYB/HcXrAiBSVlbrNfQMe6MwKJlhX57tsqmc0RtKiKWTS1wLIvTnPg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38888},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"ecc949ab1778be8c2aa6e6920b151f42e9fab47e","scripts":{"clean":"shx mkdir -p lib && shx rm -rf lib","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json"},"_npmUser":{"name":"troncore","email":"tronweb3@tron.network"},"_npmVersion":"10.2.3","description":"@tronweb3/walletconnect-tron helps DApp to connect with WalletConnect TRON Chain.","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","dependencies":{"@walletconnect/modal":"^2.6.2","@walletconnect/utils":"^2.1.3","@walletconnect/sign-client":"^2.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@walletconnect/types":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/walletconnect-tron_3.0.0_1721026274900_0.9873366249337265","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"@tronweb3/walletconnect-tron","version":"4.0.0","license":"MIT","_id":"@tronweb3/walletconnect-tron@4.0.0","maintainers":[{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tronwallet-adapter","email":"tronwallet-adapter@tronlink.org"}],"dist":{"shasum":"df21f8e827588d2b254b10146310535adb3b0305","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-4.0.0.tgz","fileCount":27,"integrity":"sha512-Pv2g2rGlBXHSfCPmTP6qpCnQ6l61Ci7bkry6ef7NF3t/ilye3ZIlWlCWxM2REOr0s9WEoXzD0O+t+9XHRAeHFw==","signatures":[{"sig":"MEYCIQDElxGYYNyOxnWzDB1GbBfITQjem+4iGCs0prdt/0eFawIhAJ07fQfS83ELPMUdxjPN0ZGl/J6fIL7Gp212UeZ2mtS1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72177},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=18","pnpm":">=7"},"exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"d471152b06691f57b633ce8177f3fff18087e559","scripts":{"fmt":"prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'","lint":"prettier --check '{*,**/*}.{ts,tsx,js,jsx,json}' && eslint .","build":"pnpm run build:cjs && pnpm run build:esm","clean":"shx mkdir -p lib && shx rm -rf lib **/*.tsbuildinfo","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","release":"pnpm run clean && pnpm run build && pnpm run package","lint:fix":"pnpm run fmt && eslint --fix .","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"tronwallet-adapter","email":"tronwallet-adapter@tronlink.org"},"_npmVersion":"10.5.0","description":"`@tronweb3/walletconnect-tron` helps dApps connect to the TRON network via WalletConnect.","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","dependencies":{"@reown/appkit":"1.7.20","@walletconnect/utils":"2.21.7","@walletconnect/sign-client":"2.21.7","@walletconnect/universal-provider":"2.21.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","eslint":"^8.20.0","prettier":"^2.7.1","typescript":"^5.0.4","@types/node":"^18.6.4","@walletconnect/types":"2.21.7","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.32.0","@typescript-eslint/eslint-plugin":"^5.32.0","eslint-plugin-require-extensions":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/walletconnect-tron_4.0.0_1763019281430_0.6308317434377511","host":"s3://npm-registry-packages-npm-production"}},"4.0.1":{"name":"@tronweb3/walletconnect-tron","version":"4.0.1","keywords":["tron","walletconnect","blockchain","web3","wallet","tronweb3"],"author":{"name":"tronweb3"},"license":"MIT","_id":"@tronweb3/walletconnect-tron@4.0.1","maintainers":[{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tronwallet-adapter","email":"tronwallet-adapter@tronlink.org"}],"homepage":"https://github.com/tronweb3/walletconnect-tron#readme","bugs":{"url":"https://github.com/tronweb3/walletconnect-tron/issues"},"dist":{"shasum":"9eb83666c9d4fa8e9f008816c2f3e11b505efa31","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-4.0.1.tgz","fileCount":27,"integrity":"sha512-/JGhj7dgNaFHYy5ino7+az+QbFiTGgKkwzEXYkQtYZQJluCp/Ygw3GBE/Y0XpWvU+K6hNh5Rn1aMkuX3sL+xUQ==","signatures":[{"sig":"MEQCIGqGDOJzCCKm4lnuHO3cmm9qmzbuLGnqV9P7h/tyTMRVAiB8NSe/AfGYXFZVMN/hedQaJwCYYpwyO8Gm0g5ULDMRQA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110638},"main":"./lib/cjs/index.js","type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=18","pnpm":">=7"},"exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"cb9514ddaa09a9eb24782523307318b52599aebd","scripts":{"fmt":"prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'","lint":"prettier --check '{*,**/*}.{ts,tsx,js,jsx,json}' && eslint .","build":"pnpm run build:cjs && pnpm run build:esm","clean":"shx mkdir -p lib && shx rm -rf lib **/*.tsbuildinfo","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","release":"pnpm run clean && pnpm run build && pnpm run package","lint:fix":"pnpm run fmt && eslint --fix .","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"tronwallet-adapter","email":"tronwallet-adapter@tronlink.org"},"repository":{"url":"git+https://github.com/tronweb3/walletconnect-tron.git","type":"git"},"_npmVersion":"10.8.2","description":"Helps dApps connect to the TRON network via WalletConnect.","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"@reown/appkit":"1.7.20","@walletconnect/utils":"2.21.7","@walletconnect/sign-client":"2.21.7","@walletconnect/universal-provider":"2.21.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.3.4","eslint":"8.57.1","prettier":"2.8.8","typescript":"5.0.4","@types/node":"18.16.14","@walletconnect/types":"2.21.7","eslint-config-prettier":"8.8.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.59.6","@typescript-eslint/eslint-plugin":"5.59.6","eslint-plugin-require-extensions":"0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/walletconnect-tron_4.0.1_1766565029118_0.6036697956543131","host":"s3://npm-registry-packages-npm-production"}},"4.0.2":{"name":"@tronweb3/walletconnect-tron","version":"4.0.2","keywords":["tron","walletconnect","blockchain","web3","wallet","tronweb3"],"author":{"name":"tronweb3"},"license":"MIT","_id":"@tronweb3/walletconnect-tron@4.0.2","maintainers":[{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tronwallet-adapter","email":"tronwallet-adapter@tronlink.org"}],"homepage":"https://github.com/tronweb3/walletconnect-tron#readme","bugs":{"url":"https://github.com/tronweb3/walletconnect-tron/issues"},"dist":{"shasum":"3867ad7dce639d861f065dcbb7d2ba0f935214c3","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-4.0.2.tgz","fileCount":27,"integrity":"sha512-ubJHqCYxeS3obAxIdWkGOi2kWfX8CNbWHBmAj9LEiTwB4BAgdBJ3P7T2TwSSIZa6ARvc7zmbFtarFCQ4ckWAKQ==","signatures":[{"sig":"MEYCIQD622vttVk3GyyT/AUcknF3q+2qwgsrtexJCDhc9lFBJwIhAOCk22VSuQb7D4eoO/xg+Kt7DfNvLA+3G+SOpdfh+x3+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":116874},"main":"./lib/cjs/index.js","pnpm":{"overrides":{"h3":"^1.15.5","ajv":">=6.14.0","js-yaml":">=4.1.1","minimatch":">=3.1.4"}},"type":"module","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=18","pnpm":">=7"},"exports":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"},"gitHead":"a1b0d69db62a9002f7fc50912e51866c06598e91","scripts":{"fmt":"prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'","lint":"prettier --check '{*,**/*}.{ts,tsx,js,jsx,json}' && eslint .","build":"pnpm run build:cjs && pnpm run build:esm","clean":"shx mkdir -p lib && shx rm -rf lib **/*.tsbuildinfo","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","release":"pnpm run clean && pnpm run build && pnpm run package","lint:fix":"pnpm run fmt && eslint --fix .","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json"},"_npmUser":{"name":"tronwallet-adapter","email":"tronwallet-adapter@tronlink.org"},"repository":{"url":"git+https://github.com/tronweb3/walletconnect-tron.git","type":"git"},"_npmVersion":"10.8.2","description":"Helps dApps connect to the TRON network via WalletConnect.","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"@reown/appkit":"1.7.20","@walletconnect/utils":"2.21.7","@walletconnect/sign-client":"2.21.7","@walletconnect/universal-provider":"2.21.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.3.4","eslint":"8.57.1","prettier":"2.8.8","typescript":"5.0.4","@types/node":"18.16.14","@walletconnect/types":"2.21.7","eslint-config-prettier":"8.8.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.59.6","@typescript-eslint/eslint-plugin":"5.59.6","eslint-plugin-require-extensions":"0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/walletconnect-tron_4.0.2_1773210141726_0.9430349526526458","host":"s3://npm-registry-packages-npm-production"}},"4.0.3":{"name":"@tronweb3/walletconnect-tron","version":"4.0.3","description":"Helps dApps connect to the TRON network via WalletConnect.","keywords":["tron","walletconnect","blockchain","web3","wallet","tronweb3"],"homepage":"https://github.com/tronweb3/walletconnect-tron#readme","repository":{"type":"git","url":"git+https://github.com/tronweb3/walletconnect-tron.git"},"license":"MIT","author":{"name":"tronweb3"},"type":"module","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/types/index.d.ts","exports":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js","types":"./lib/types/index.d.ts"},"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"clean":"shx mkdir -p lib && shx rm -rf lib **/*.tsbuildinfo","build":"pnpm run build:cjs && pnpm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","release":"pnpm run clean && pnpm run build && pnpm run package","fmt":"prettier --write '{*,**/*}.{ts,tsx,js,jsx,json}'","lint":"prettier --check '{*,**/*}.{ts,tsx,js,jsx,json}' && eslint .","lint:fix":"pnpm run fmt && eslint --fix ."},"pnpm":{"overrides":{"h3":"1.15.9","picomatch":"2.3.2","minimatch":"3.1.4","js-yaml":"4.1.1","ws@>=8.0.0 <8.21.0":"8.21.0","form-data@>=4.0.0 <4.0.6":"4.0.6"}},"devDependencies":{"@types/node":"18.16.14","@typescript-eslint/eslint-plugin":"5.62.0","@typescript-eslint/parser":"5.62.0","eslint":"8.57.1","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","eslint-plugin-require-extensions":"0.1.3","ox":"0.14.27","prettier":"3.3.3","shx":"0.3.4","typescript":"5.4.5","@walletconnect/types":"2.23.9"},"dependencies":{"@reown/appkit":"1.8.20","@walletconnect/universal-provider":"2.23.9","@walletconnect/sign-client":"2.23.9","@walletconnect/utils":"2.23.9"},"engines":{"node":">=18","pnpm":">=7"},"_id":"@tronweb3/walletconnect-tron@4.0.3","gitHead":"37102bc4a7ec28af5aa6ca28eccd2e8aee071cbb","bugs":{"url":"https://github.com/tronweb3/walletconnect-tron/issues"},"_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-P3K/xUsP/7GuVTpKi0z/NLF9cln0MCQPnaI4lM9xZUTutAwuBHli2jwkXJ8VRsslynYcOXPNnMalq9Kt5PruDw==","shasum":"f9b5613116d6e59d4004ab6aa29b77072f1f178e","tarball":"https://registry.npmjs.org/@tronweb3/walletconnect-tron/-/walletconnect-tron-4.0.3.tgz","fileCount":27,"unpackedSize":114360,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCnouUqYCSVB9OiO6IrPn7cvmxGgXmIoTeSeK9D9ctiqgIgWYfi+isxI3YBC8OLI718SVop/ulfn/+NGmuLxg7Eesc="}]},"_npmUser":{"name":"tronwallet-adapter","email":"developer@walletadapter.org"},"directories":{},"maintainers":[{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tronwallet-adapter","email":"developer@walletadapter.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/walletconnect-tron_4.0.3_1781684813923_0.6543804557218507"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-27T13:29:00.173Z","modified":"2026-06-17T08:26:54.197Z","1.0.0":"2022-11-27T13:29:00.402Z","1.0.1":"2023-05-16T07:47:43.324Z","2.0.0":"2023-05-30T03:07:32.302Z","3.0.0":"2024-07-15T06:51:15.064Z","4.0.0":"2025-11-13T07:34:41.604Z","4.0.1":"2025-12-24T08:30:29.269Z","4.0.2":"2026-03-11T06:22:21.907Z","4.0.3":"2026-06-17T08:26:54.056Z"},"bugs":{"url":"https://github.com/tronweb3/walletconnect-tron/issues"},"author":{"name":"tronweb3"},"license":"MIT","homepage":"https://github.com/tronweb3/walletconnect-tron#readme","keywords":["tron","walletconnect","blockchain","web3","wallet","tronweb3"],"repository":{"type":"git","url":"git+https://github.com/tronweb3/walletconnect-tron.git"},"description":"Helps dApps connect to the TRON network via WalletConnect.","maintainers":[{"name":"troncore","email":"tronweb3@tron.network"},{"name":"tronwallet-adapter","email":"developer@walletadapter.org"}],"readme":"# @tronweb3/walletconnect-tron\n\n`@tronweb3/walletconnect-tron` helps dApps connect to the TRON network via WalletConnect.\n\n## Get Started\n\n### Installation\n\nYou can install `@tronweb3/walletconnect-tron` with npm, yarn, or pnpm:\n\n```shell\nnpm i @tronweb3/walletconnect-tron\n```\n\n```shell\nyarn add @tronweb3/walletconnect-tron\n```\n\n```shell\npnpm add @tronweb3/walletconnect-tron\n```\n\n## Create a WalletConnect wallet\n\n### Request Parameters\n\n| Argument       | Description                        | Type   |\n| -------------- | ---------------------------------- | ------ |\n| network        | The chain (Mainnet, Shasta, Nile)  | string |\n| options        | WalletConnect client options       | object |\n| themeMode      | Theme mode (`dark` &#124; `light`) | string |\n| themeVariables | Theming variables (`--w3m-*`)      | object |\n\n```typescript\ninterface WalletConnectAdapterConfig {\n  network: WalletConnectChainID;\n  options: SignClientTypes.Options;\n  /**\n   * Theme mode configuration flag. By default, `themeMode` follows the user's system setting.\n   * @type `dark` | `light`\n   * @see https://docs.reown.com/appkit/react/core/theming\n   */\n  themeMode?: 'dark' | 'light';\n  /**\n   * Theme variable configuration object.\n   * @default undefined\n   * @see https://docs.reown.com/appkit/react/core/theming#themevariables\n   */\n  themeVariables?: ThemeVariables;\n}\n```\n\n### Example\n\n```javascript\nimport { WalletConnectWallet, WalletConnectChainID } from '@tronweb3/walletconnect-tron';\nconst wallet = new WalletConnectWallet({\n  network: WalletConnectChainID.Mainnet,\n  options: {\n    relayUrl: 'wss://relay.walletconnect.com',\n    projectId: '....',\n    metadata: {\n      name: 'Your dApp name',\n      description: 'Your dApp description',\n      url: 'Your dApp url',\n      icons: ['Your dApp icon']\n    }\n  },\n  // Theming (optional)\n  themeMode: 'dark',\n  themeVariables: {\n    '--w3m-z-index': 1000\n    // More variables: https://docs.reown.com/appkit/react/core/theming#themevariables\n  }\n});\n```\n\n## Connect to the Wallet\n\nUse `wallet.connect()` to establish a connection. If the dApp has previously connected, it will reconnect automatically; otherwise, a WalletConnect QR code will be displayed.\n\n### Response\n\nReturns an object containing the wallet address when connected (e.g., `{ address: string }`).\n\n### Example\n\n```javascript\nconst { address } = await wallet.connect();\n```\n\n### Custom QR Code Rendering\n\nIf you want to use your own UI to display the QR code, you can provide an `onUri` callback to receive the WalletConnect URI. When `onUri` is provided, the AppKit modal will be automatically skipped.\n\n#### Parameters\n\n| Parameter | Description                                      | Type       |\n| --------- | ------------------------------------------------ | ---------- |\n| onUri     | Callback to receive the WalletConnect URI string | `Function` |\n\n#### Example\n\n```javascript\nconst { address } = await wallet.connect({\n  onUri: (uri) => {\n    console.log('WalletConnect URI:', uri);\n    // Display the QR code using your own UI\n    // For example, using the qrcode library:\n    // import QRCode from 'qrcode';\n    // QRCode.toCanvas(document.getElementById('canvas'), uri);\n  }\n});\n```\n\n#### Use Cases\n\n- Implement custom QR code styling and branding\n- Display QR codes in mobile apps or custom web interfaces\n- Integrate with existing UI frameworks or design systems\n- Add custom loading states or error handling around QR code display\n\n## Disconnect from the Wallet\n\nUse `wallet.disconnect()` to disconnect the wallet.\n\n### Example\n\n```javascript\ntry {\n  await wallet.disconnect();\n} catch (error) {\n  console.log('disconnect:' + error);\n}\n```\n\n## Sign Transaction\n\nSigns the provided transaction object.\n\n### Request Parameters\n\n| Argument    | Description      | Type   |\n| ----------- | ---------------- | ------ |\n| transaction | TRON transaction | object |\n\n### Response\n\nReturns a signed transaction object.\n\n### Examples\n\n- TRX transfer (native TRX)\n\n```javascript\nimport { TronWeb } from 'tronweb';\n\nconst tronWeb = new TronWeb({ fullHost: 'https://nile.trongrid.io' }); // Nile Testnet\nconst from = '<yourAddress>';\nconst to = '<recipientAddress>';\nconst amountSun = 1_000_000; // 1 TRX\n\n// build\nconst tx = await tronWeb.transactionBuilder.sendTrx(to, amountSun, from);\n\n// sign\nconst signedTransaction = await wallet.signTransaction(tx);\n\n// optional: broadcast\n// const receipt = await tronWeb.trx.sendRawTransaction(signedTransaction)\n```\n\n- Contract call (USDT approve)\n\n```javascript\nimport { TronWeb } from 'tronweb';\n\nconst tronWeb = new TronWeb({ fullHost: 'https://nile.trongrid.io' }); // Nile Testnet\nconst from = '<yourAddress>';\nconst usdt = '<usdtContract>';\nconst spender = '<spenderAddress>';\nconst amount = 100n * 1_000_000n; // 100 USDT, 6 decimals\n\n// triggerSmartContract returns { transaction }\nconst { transaction } = await tronWeb.transactionBuilder.triggerSmartContract(\n  usdt,\n  'approve(address,uint256)',\n  { feeLimit: 200000000 },\n  [\n    { type: 'address', value: spender },\n    { type: 'uint256', value: amount.toString() }\n  ],\n  from\n);\n\nconst signedTransaction = await wallet.signTransaction(transaction);\n// optional: broadcast\n// const receipt = await tronWeb.trx.sendRawTransaction(signedTransaction)\n```\n\n### Note\n\n- For `triggerSmartContract`, pass the `transaction` field from its response, not the whole response object.\n- `sendTrx` returns the transaction object directly; pass it to `wallet.signTransaction`.\n- Some wallets auto-broadcast, others do not. If not, call `tronWeb.trx.sendRawTransaction(signedTransaction)` yourself.\n\n## Sign Message\n\nSigns a string message.\n\n### Request Parameters\n\n| Argument | Description         | Type   |\n| -------- | ------------------- | ------ |\n| message  | The message to sign | string |\n\n### Example\n\n```javascript\ntry {\n  const signature = await wallet.signMessage('hello world');\n} catch (error) {\n  console.log('signMessage:' + error);\n}\n```\n\n## Check Connection Status\n\nChecks the connection status.\n\n### Response\n\nReturns `{ address: string }`. If not connected, returns `{ address: '' }`.\n\n### Example\n\n```javascript\nconst { address } = await wallet.checkConnectStatus();\n```\n\n## Event Listeners\n\nThe wallet supports event listeners to monitor connection state and account changes.\n\n**Note:** The `on()` method returns a function that can be called to unsubscribe from the event. This is why the returned value is typically named `unsubscribe`.\n\n### accountsChanged Event\n\nTriggered when the connected account address changes (e.g., user switches accounts in the wallet).\n\n#### Parameters\n\n| Parameter | Description                | Type     |\n| --------- | -------------------------- | -------- |\n| accounts  | Array of account addresses | string[] |\n\nThe first address in the array is the primary account address.\n\n#### Example\n\n```javascript\n// on() returns a function that can be called to unsubscribe\nconst unsubscribe = wallet.on('accountsChanged', accounts => {\n  const primaryAddress = accounts[0];\n  console.log('Primary address:', primaryAddress);\n  console.log('All addresses:', accounts);\n});\n\n// Call the returned function to unsubscribe when done\nunsubscribe();\n```\n\n### disconnect Event\n\nTriggered when the wallet connection is disconnected (either by user action or network issues).\n\n#### Example\n\n```javascript\n// on() returns a function that can be called to unsubscribe\nconst unsubscribe = wallet.on('disconnect', () => {\n  console.log('Wallet disconnected');\n  // Clean up your app state\n});\n\n// Call the returned function to unsubscribe when done\nunsubscribe();\n```\n\n### Remove Event Listeners\n\nRecommended: use the unsubscribe function returned by `on()`. To remove a specific listener with `off()`, pass the same function reference:\n\n```javascript\n// Preferred\nconst fn = accounts => {\n  /* ... */\n};\nconst unsubscribe = wallet.on('accountsChanged', fn);\nunsubscribe();\n\n// Or remove by function reference\nwallet.off('accountsChanged', fn);\n\n// Cleanup\nwallet.removeAllListeners('accountsChanged');\n// wallet.removeAllListeners();\n```\n\n## AppKit Control Methods\n\nThe SDK exposes AppKit control methods for advanced use cases. These methods allow you to control the AppKit modal and subscribe to its state changes.\n\n**Note:** AppKit is initialized during the first `connect()` call. Most methods require AppKit to be initialized first.\n\n### closeModal()\n\nProgrammatically close the AppKit modal.\n\n#### Example\n\n```javascript\n// Close the modal programmatically\nawait wallet.closeModal();\n```\n\n#### Use Cases\n\n- Auto-close modal after a timeout\n- Close modal based on custom business logic\n- Integrate with your own UI flow\n\n### setThemeMode()\n\nDynamically change the AppKit theme mode after initialization.\n\n#### Parameters\n\n| Parameter | Description       | Type                      |\n| --------- | ----------------- | ------------------------- |\n| mode      | Theme mode to set | `'light'` &#124; `'dark'` |\n\n#### Example\n\n```javascript\n// Switch to light theme\nwallet.setThemeMode('light');\n\n// Switch to dark theme\nwallet.setThemeMode('dark');\n```\n\n**Note:** This method can be called after `connect()` to dynamically change the theme. The initial theme is set via the `themeMode` config option when creating the wallet instance.\n\n### subscribeModalState()\n\nSubscribe to AppKit modal state changes (e.g., modal open/close events).\n\n#### Parameters\n\n| Parameter | Description                      | Type       |\n| --------- | -------------------------------- | ---------- |\n| callback  | Function called on state changes | `Function` |\n\n#### Returns\n\nReturns an unsubscribe function that can be called to stop receiving updates.\n\n#### Example\n\n```javascript\n// Subscribe to modal state changes\nconst unsubscribe = wallet.subscribeModalState(state => {\n  console.log('Modal open:', state.open);\n  console.log('Selected network:', state.selectedNetworkId);\n\n  if (state.open) {\n    console.log('Modal opened');\n  } else {\n    console.log('Modal closed');\n  }\n});\n\n// Later: unsubscribe when done\nunsubscribe();\n```\n\n**Note:** This method can be called before `connect()`. The subscription will become active after AppKit is initialized.\n\n### subscribeEvents()\n\nSubscribe to all AppKit events for analytics and tracking purposes.\n\n#### Parameters\n\n| Parameter | Description                   | Type       |\n| --------- | ----------------------------- | ---------- |\n| callback  | Function called on each event | `Function` |\n\n#### Returns\n\nReturns an unsubscribe function that can be called to stop receiving events.\n\n#### Example\n\n```javascript\n// Subscribe to all AppKit events\nconst unsubscribe = wallet.subscribeEvents(event => {\n  const { data } = event;\n  if (data) {\n    console.log('Event type:', data.event);\n    console.log('Event data:', data.properties);\n\n    // Track specific events\n    if (data.event === 'MODAL_OPEN') {\n      console.log('User opened wallet selection modal');\n    } else if (data.event === 'MODAL_CLOSE') {\n      console.log('User closed wallet selection modal');\n    } else if (data.event === 'CONNECT_SUCCESS') {\n      console.log('User successfully connected wallet');\n    }\n  }\n});\n\n// Later: unsubscribe when done\nunsubscribe();\n```\n\n#### Common Events\n\n- `MODAL_OPEN` - Modal opened\n- `MODAL_CLOSE` - Modal closed\n- `SELECT_WALLET` - User selected a wallet\n- `CONNECT_SUCCESS` - Connection successful\n- `CONNECT_ERROR` - Connection failed\n\n**Note:** This method can be called before `connect()`. The subscription will become active after AppKit is initialized.\n\n## Note\n\nThe connection uses the WalletConnect relay service specified by `relayUrl`. Network errors may occur occasionally, so dApp developers should handle network errors, connection errors, and timeout errors appropriately.\n\nRefer to the [WalletConnect Error Definitions](https://github.com/WalletConnect/walletconnect-monorepo/blob/v2.0/packages/utils/src/errors.ts) for all error messages and codes.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}