{"_id":"@rhea-finance/cross-chain-sdk","_rev":"27-a58a4eb9b0e3ae09cebd8b59452562ac","name":"@rhea-finance/cross-chain-sdk","dist-tags":{"latest":"0.1.22"},"versions":{"0.1.0":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.0","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.0","maintainers":[{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"7e476aeae2b2d649059ba14117de32ecbfadedce","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.0.tgz","fileCount":8,"integrity":"sha512-5N1xGOet7K9kYoHvRc2inVyEi6LAeis46kRjbWL+Hr2NMkv3XLgQaBXxcNccaiiorDmmVTI1WmGPS5979aonwg==","signatures":[{"sig":"MEYCIQDP1j/c4h6SoojjAvrpqiKsPG7QkjzQf2WLZPZoXQx1ggIhAPQ5K9tgYr6LjCF5Mp30EJ7xeKaNNah6BM67E2JC4f2s","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":518848},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"dcb156b00beaa689765d66cb909ee7da158732e8","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13","crypto-browserify":"3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.0_1764560500898_0.27393761870303757","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.1","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.1","maintainers":[{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"15c2af778a9ca09482af26221649e0573656a677","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.1.tgz","fileCount":8,"integrity":"sha512-yDAxyCrOX6EmCuZpnl5QsyWO+0FYL/MraSR4YZGbxNMpBrL48FIK6A6U2p1GzcWsrWcF0os4dHTTbIQTcXeL1A==","signatures":[{"sig":"MEQCIGm4q215VT589dYVxjCNHzxidoC14h07tHgS/LFe1CVAAiAdudHdxYVJujxJO2RFGILF2sy5uWCjLyzhq8kyCsBSAw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":538103},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"63a987eba275dbc94d730e0f58dbf72fe20e11c3","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13","crypto-browserify":"3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.1_1764724181914_0.1927314058259515","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.2","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.2","maintainers":[{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"8ea75ae38fa146862d12f8194ec973f079ea1ae2","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.2.tgz","fileCount":8,"integrity":"sha512-i3I/aOg3AoV3/73toO1e0W2Tpv9s+atY7oseQXyCdfREL8uNPhXax22cKGrnprZm2wqcDVvjG+ilt7Co/nP4Qw==","signatures":[{"sig":"MEQCIHH5jWpo1EphuwCmFVbNE0oaMywOZonOfydI4vq6q79pAiAsgh7MRU7nCk0bVEzd4eojrtK3KwePDu0Ldcu3n5pHQA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":538617},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c3b0ed98d3655eb654b38adb1948d3ed362764dd","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13","crypto-browserify":"3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.2_1764725777997_0.1630829479932927","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.3","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.3","maintainers":[{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"7bbb984d4c0e97d59d9a9a32691257e11bfc9604","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.3.tgz","fileCount":8,"integrity":"sha512-eodDsfs7IQyCS3a4wekDmP7Yop5KfMGauGwcG/f+zg2Hf0C6vs3BDUoEmZbYrgEtITKxbeqMVXnaDSNIy0VeIA==","signatures":[{"sig":"MEUCIQDR6jvyzY/e6cRFqwCx/CizaE4/KlcK+9D8sqJ8SBDwTwIgG4iOyo0XHpUJOF1dBBXwHDUY3FXzLFQ6rDaDLF7B20Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":635779},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"28bba074e4666c2da240efd465f8324946160ce9","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13","crypto-browserify":"3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.3_1764780032431_0.40910775507507435","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.4","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.4","maintainers":[{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"768152596b36157f16e6ccf1cfed1aa5358322e7","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.4.tgz","fileCount":8,"integrity":"sha512-i8ZkOuinDYsuccMEUfcz+OiDEuKpUYvfO2PPNXFfAdgL/yzjL8thdo9OOVIibcHi1jF/106WkqOLJJG+hdSQcw==","signatures":[{"sig":"MEUCIQDIIf9Obs62ikuuP8fw3czaaueX/gwbGIfHhDiPIeR+1gIgRfkkT1ieKFpk0g2uKy7epm1fGa9imQcD+fodnQ71LLA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":637143},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"1a1c3e8ca8f9ff5d54ca7ecffbfba30a2d8c27c8","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13","crypto-browserify":"3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.4_1767621539512_0.46894526369324785","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.5","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.5","maintainers":[{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"6f7db91492520cfaafdc8e6b7a0c858aaa4718ac","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.5.tgz","fileCount":8,"integrity":"sha512-JcFOQxRE9SIP/iv75DK54Dyp8pQElizgukITYHLE2jjr8dLuIxAPoK69IrxlIUQTaCNBcNSETIX7bSPPvRRxyg==","signatures":[{"sig":"MEUCIHitNBYxsZumZaDkYBUuSSa2qX/JeY5ljnK9d/pPF9kUAiEAsjs7OlfoKRGhI0VMYUqVqNU4OoO460ch7+dfH2S3l7U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":637143},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"3d373ef8baf4915645196897e2c6d0ed64cd8ac7","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13","crypto-browserify":"3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.5_1767622748461_0.47770134846690304","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.6","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.6","maintainers":[{"name":"naturexie","email":"nature@ref.finance"},{"name":"lilyyy","email":"lily@ref.finance"}],"dist":{"shasum":"bebf76ea51d0d608710c11bf1ff75fe3cd75b558","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.6.tgz","fileCount":8,"integrity":"sha512-PG8/CtTb9tYyHOu0DMlJqx/8KfQQ2MdNnZS/QIqiwXAotFwkVl4AfGOuESMU+rzpgBD9JlBUXPXLJdQPSASFGQ==","signatures":[{"sig":"MEUCIQCjD3H6XJQEtgiaT7vW9q+22DNfTJ0XzK1psxwi2kdgbwIgB4ml7yqlQ+fRzmjinGfjgBT2M4LfNtpG6tLwF8QxUV0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":752054},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"6297d24aaf0124ec9e27eacfc91d17979fa6728c","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13","crypto-browserify":"3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.6_1770710478793_0.5265088129940914","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.7","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.7","maintainers":[{"name":"naturexie","email":"nature@ref.finance"},{"name":"lilyyy","email":"lily@ref.finance"}],"dist":{"shasum":"e84b1b3bf7d273e4d0d4afcdac1435c7ac41fb2b","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.7.tgz","fileCount":8,"integrity":"sha512-3KZ4NmlJVcWN3ftHn378+xGu/YX//MBB14fk9i1eo217MeZS2JlxNU8+6CaJ22bk7kf6GlfIlq7z8oR1iJ/qZQ==","signatures":[{"sig":"MEYCIQDlau4QXyq5AHdqIgcOnVP0BBDvESuBvvu+fO83QNPHhAIhAKXpzNubx8V6iiryD9hU/cZNIDZx6OVpOfvyZ/XTvgYe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4984986},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"68a547f51aff5a9321daa09b062566ed9deb3f07","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.8.2","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.8.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.7_1770861456413_0.8273632695891873","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.8","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.8","maintainers":[{"name":"naturexie","email":"nature@ref.finance"},{"name":"lilyyy","email":"lily@ref.finance"}],"dist":{"shasum":"2b40d6824cec3e65fbf5d53c13907ad7ff9fd6f6","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.8.tgz","fileCount":8,"integrity":"sha512-H3JiaqJJAWlKWp0WKnxvW0khrehZ5hab7U02P29lA+pzKGTXrkofDDQnQIgzH0q3RQF5TppWfKWR0EnhMQJ9gA==","signatures":[{"sig":"MEUCIQCxnGwsu0oEAmPfyhB3pwjMX3bG2x/IfJh6ZPM3i2SSswIgbf9aQyn/ffMc1+PxZaRfF40hI++D78qPe4coiY5Cnp8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4985066},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"cc8907f77ff3b77e3ebfee85702b1019c2c00583","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.8_1771920427639_0.45362212929763324","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.9","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.9","maintainers":[{"name":"naturexie","email":"nature@ref.finance"},{"name":"lilyyy","email":"lily@ref.finance"}],"dist":{"shasum":"3350363a4c5e41f6eb4c9e433fcc6901908e0556","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.9.tgz","fileCount":8,"integrity":"sha512-3cZPtZgH6AYxTkZTdxevE8OBYY6Y1MUPDofRQv9T1c7f0PTmOSZUgIdKwxGhR2oFIxTr2NmmAlctQ7UXklGGwg==","signatures":[{"sig":"MEUCIBhtZIMVk7xGJ+MArSmv4uC9oib6OgXqkZQnxCR8iFHnAiEAitnW5WIClz0JkW98LB5J3GJHOmZRe87igrpRMOugAUY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5000680},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"39a462866a40d27af1e601a64d71a4fa1943623a","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.9_1771924769484_0.8451526865779482","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.10","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.10","maintainers":[{"name":"naturexie","email":"nature@ref.finance"},{"name":"lilyyy","email":"lily@ref.finance"}],"dist":{"shasum":"12252bb3f743a0e57eef14810798da18720e6448","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.10.tgz","fileCount":8,"integrity":"sha512-CrWq4eE6SzoYD3p+gNEFp1hSsOaY76GNW2STovIM5yoN+qqmvrUKWXknrf2Cujw+oiEWdWFIzB6hjvsiTm57Lw==","signatures":[{"sig":"MEUCIQDCqand6LCqab1b+shajhucU7qju6bMvKUvAHMSVInyBgIgS9xIUbA6ZaLG1XmtB6jc1FnDgrm6UtpsKnFQ83bQWdA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5010794},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4e7cf0ccd177d1251adfa61edc6c49d6d2797c84","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.10_1772174828616_0.3466851538267415","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.11","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.11","maintainers":[{"name":"naturexie","email":"nature@ref.finance"},{"name":"lilyyy","email":"lily@ref.finance"}],"dist":{"shasum":"3d841b199a563859036006be2a59698e4f11206f","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.11.tgz","fileCount":8,"integrity":"sha512-vWiyirgJWLZ61ukYCumv4IvdgmS0AFSHA6IxTBCXpQiTCUV0AVxMOkTIYOpNLVmVB6cyUu42hfNQIOx36tFYXQ==","signatures":[{"sig":"MEUCIASfBKIpOFTI71ZBmGvF1kyHDYS3gWSI53mWBziAaHqhAiEAyllPEuJXOUB2nQy2S6QQu4+D+cFWE7hin5TOqaknjJg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5010782},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"153e91a0be7c55127209e49d63be76a180c4a163","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.11_1773107261457_0.16754026575098369","host":"s3://npm-registry-packages-npm-production"}},"0.1.12":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.12","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.12","maintainers":[{"name":"naturexie","email":"nature@ref.finance"},{"name":"lilyyy","email":"lily@ref.finance"}],"dist":{"shasum":"c08c73531a74b73c0f89b7fdd581b7123e6b969f","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.12.tgz","fileCount":8,"integrity":"sha512-kxUDXHy74Omh8fGyxXtCAMOd1H+GzDk9IU05dsZDFxM+UpwwK4ak1mOHeMhudJS6de3+fQT8B57zKysNXAILjA==","signatures":[{"sig":"MEUCIGKT+J1knCxZmiFAkq22CyEklne+RK2vyTRplzpcGRBnAiEAmhE7MQWSeLABWy2PSNff/78nnq015gjMAoQj9ZVJOzM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5015894},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"6d2f1c69424b48cfd10d6e8a3b78322668c03d86","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.12_1773209687820_0.9823158336694782","host":"s3://npm-registry-packages-npm-production"}},"0.1.13":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.13","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.13","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"40aa570f748c2546e0f4a2fa4d09f250a6c44f0d","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.13.tgz","fileCount":8,"integrity":"sha512-aJhjhrgEk1szeDqBVPmq2C66uuc5KySk4uLYP6AlmSWuKwnNU1VZ6nzwJ1yBzhu53wGc5ZNveBZ6JkROWGNyZw==","signatures":[{"sig":"MEQCIBW+mLo6F6Y/OS3mG5UzmyVcb7XXPnFjPbPZURJSevMUAiAuc0Vbvfjdi9zZXsbX7BIrlcxU3EHvWmTUp+ZAD7SYhg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5137642},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"5a98e0c823c23ef9efaf07c44b3994488291cd20","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.13_1776215746871_0.6644036075625763","host":"s3://npm-registry-packages-npm-production"}},"0.1.14":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.14","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.14","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"fb4cce126360c0668c07f95358152d649b89a85f","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.14.tgz","fileCount":8,"integrity":"sha512-hEzmXX9l5+ZxS8pwf4NyYI4UhvMd+AQ8Fc410GrxFGmqq0OHestagxLAcQnohDdOMfjbZd9s8ULgXUYEv7wawg==","signatures":[{"sig":"MEUCIQDWIXZQLNSv9FiYYLDVTAW5sgQNHDxL0zyrHpNT1/UtaQIgQozf/pHoSbb5Gcxh14Z3gTwuui3Ad4gSTPz7hCvhm7E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5164679},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"955d8cb3971ab3f63a0c6dded946ebc2e59de2e4","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.14_1776322812815_0.8205992872530776","host":"s3://npm-registry-packages-npm-production"}},"0.1.15":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.15","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.15","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"f159bd29590777d2f0985da04fc950e26478eb79","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.15.tgz","fileCount":8,"integrity":"sha512-erFAfjFkGvzRfUL/A4hpNa6YSBFWYEHbDaOZj+wuqcK/89owApQCw5MQSKtwgnJtX+b+vezw1zlozFVDEeYlsQ==","signatures":[{"sig":"MEYCIQDjIRzCaXOC2nWF25b5ImsZVu5vsKBa8q1hxeKzhg3LDgIhAP/cSmpt9vklHLl5G6R6+oa2Q1fje1m8FhDR0oQuzrTj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5171195},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"deab575c56b90644dcd40663b279f34b6926ba63","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.15_1776326500978_0.7246231188206991","host":"s3://npm-registry-packages-npm-production"}},"0.1.16":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.16","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.16","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"3b354caf9f1f4a08f02d9a4764c4cebafc0769d2","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.16.tgz","fileCount":8,"integrity":"sha512-hJOtaBnUSouiMoGZAOoxeDmgfPsZmwCjMbLgHwS3e/MVhM8TzWUQ89OwFbd3x3rF6XEm2J7Pa0+l3QGoovn4GA==","signatures":[{"sig":"MEQCIFf1D0A6rq6wWlWHbHoO/YlA6JWq2+WdEQQ3GLPoZ1qNAiAY8rqqtWBipIARpE9ILvaJH1UbiN4Qll1lvMn+LaRy1w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5185111},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"08eadbc2cef6c95137740990b391efd4910549ac","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.16_1776843772464_0.22186814451315295","host":"s3://npm-registry-packages-npm-production"}},"0.1.17":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.17","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.17","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"e2433786a6f56f472777db161a77efd7cb09b593","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.17.tgz","fileCount":8,"integrity":"sha512-hs6o4CDOXpDxHbPQ74WILqVcYgrGh6/+Mg4wZ9U4lHzad2Vcd/eWYUMxBILEHsYdCxpv5YkecSFiLrnST2hRLQ==","signatures":[{"sig":"MEUCIQDIHFQJrDutRjRNG6avSCUuKw6KWy1+5hPLNB+zhiesNgIgEUeHwh0575OEnXxr7wQoTQvwZxNMkX2RRFaVx9rdew8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5186219},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b14b4d39bab87c5f10ba81af07e8a6e975b788b9","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.17_1779268274468_0.23067880005928476","host":"s3://npm-registry-packages-npm-production"}},"0.1.18":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.18","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.18","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"fa84a3e9d7069ba973347b9818d8667fe4cd2505","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.18.tgz","fileCount":8,"integrity":"sha512-CBH2wokV0Dd5IqrGDgPNH3K7Xhyla7/Vden9eJe5c4w1CdclB/q68z3XPOASfWHX8/X1iGwN1udRsPNQWduG4w==","signatures":[{"sig":"MEUCIAa/ZfTxY0jzIcNbvoVbUd2V8Ib6PoqZ1cWHzGEVIHCQAiEAqFUnYhLY9MlobShuou7P/szGNHKYAeCpliCStyIXfz8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5187939},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"aa8957564671d596051fe4c10aeeddc19338f0b5","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.18_1781858942686_0.9370592534952011","host":"s3://npm-registry-packages-npm-production"}},"0.1.19":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.19","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.19","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"08d8a926f783726c4e2289ca15a2acff78c38416","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.19.tgz","fileCount":8,"integrity":"sha512-47/Xy6/sMCLWPOjTFiQhka2NrJx/hqJMNkx7dM8cUeIloYl9O9KulMoY+gevZ8jkpRIe0p//WC4wKTcBpUpayg==","signatures":[{"sig":"MEYCIQCgr4vU6F3s3INhZ45rG+QJS86gBPjgoHibReEWtMCTQwIhAIlg3vBRB0cqu3DWCeGvVD/0kkHj/awWxjprp97xzGWj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5227120},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"42faafd84dafd0b6551e934e9ef249460cc67aff","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build","test:near-rpc-failover":"pnpm build && node scripts/near-rpc-failover-test.mjs"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.19_1782121387868_0.6122498063347517","host":"s3://npm-registry-packages-npm-production"}},"0.1.20":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.20","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.20","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"}],"dist":{"shasum":"6a58c01c2b5c11beffdc9d5ea5fccaa19029ee64","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.20.tgz","fileCount":8,"integrity":"sha512-kZM0h0VMKQKIk0APuv2qLV3KKUSnl2YvftvcUmzG4gCjS2LTtr8NEL6KyLNz0N3Y8tSP6qKzkhoLtdOvVWnnFg==","signatures":[{"sig":"MEQCIDaLoA9PKRQ+5/b65n7C62GdXETq17urH87QaMPd0sZHAiAX/UC9VH3j9BpoASWqOoivBa1NZcv/GXFmXp4zIO5Jzw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5227942},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9bf7b621c58c23c3ff07b76bda7c71e73d3b5251","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build","test:near-rpc-failover":"pnpm build && node scripts/near-rpc-failover-test.mjs"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.20_1785718664295_0.13396656498549087","host":"s3://npm-registry-packages-npm-production"}},"0.1.21":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.21","keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","_id":"@rhea-finance/cross-chain-sdk@0.1.21","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"},{"name":"jimi-ref","email":"jimi@ref.finance"}],"dist":{"shasum":"8b8c6c788197fe2b6c7d4a8c09a0f8cc1d62dab9","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.21.tgz","fileCount":8,"integrity":"sha512-6RuHJZ+QvB70/4Uk2gLHy/r8AHXFAfCOBNyXxHzMueCcAX1x0tUkYf6k7t6Lin4TUNbca+ilRaBvxb3D/vfAww==","signatures":[{"sig":"MEUCIHAnICkJcLZ3A4wGEl6h08Pvdr0+eDAcwQJ5tFIurvYWAiEAyK1YenszLcnYXwhK4kgcUAMZ3djGDzBpU2l27zFAfy0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5229722},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"7a86371589e5e50d85798d271fbb5a3f50d5eae8","scripts":{"dev":"tsup --watch","build":"tsup","type-check":"tsc --noEmit","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build","test:near-rpc-failover":"pnpm build && node scripts/near-rpc-failover-test.mjs","test:batch-views-errors":"pnpm build && node scripts/batch-views-error-test.mjs"},"_npmUser":{"name":"naturexie","email":"nature@ref.finance"},"_npmVersion":"10.9.4","description":"Cross-chain lending SDK","directories":{},"_nodeVersion":"22.22.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","ramda":"^0.32.0","big.js":"^7.0.1","buffer":"^6.0.3","ethers":"5.7.2","lodash":"^4.17.21","mathjs":"^15.1.0","btc-wallet":"0.5.100-beta","decimal.js":"^10.5.0","near-api-js":"4.0.3","bignumber.js":"^9.1.2","@solana/web3.js":"1.98.0","@solana/spl-token":"0.4.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","prettier":"^3.6.2","typescript":"^5.0.0","@types/node":"^20","@types/bn.js":"^5.2.0","@types/big.js":"^6.2.2","@types/lodash":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/cross-chain-sdk_0.1.21_1786692688147_0.6018206218329312","host":"s3://npm-registry-packages-npm-production"}},"0.1.22":{"name":"@rhea-finance/cross-chain-sdk","version":"0.1.22","description":"Cross-chain lending SDK","packageManager":"pnpm@10.33.4","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","dev":"tsup --watch","type-check":"tsc --noEmit","test:batch-views-errors":"pnpm build && node scripts/batch-views-error-test.mjs","test:near-rpc-failover":"pnpm build && node scripts/near-rpc-failover-test.mjs","prettier:fix":"prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"","prepublishOnly":"pnpm build"},"keywords":["lending","cross-chain","sdk"],"author":"","license":"MIT","dependencies":{"big.js":"7.0.1","buffer":"6.0.3","decimal.js":"10.6.0","ethers":"6.17.0","lodash":"4.18.1","mathjs":"15.2.0","near-api-js":"5.1.1","ramda":"0.32.0","util":"0.12.5"},"devDependencies":{"@types/big.js":"6.2.2","@types/lodash":"4.17.25","@types/node":"20.19.25","prettier":"3.6.2","tsup":"8.5.1","typescript":"5.9.3"},"gitHead":"10cb49c81ffab495421331a6b22516e6aad259d6","_id":"@rhea-finance/cross-chain-sdk@0.1.22","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-jxK+LL2P+7c1IAiEuDLyuOFm9lT//iqd+5KcpnDTU0RtWgkYGyC0HPp2qvu3lVmEEOXJSHeHuWZjWJk8XGJbyg==","shasum":"1b5b2a1f2a8445321a3eeada0a55ecf6c7c49947","tarball":"https://registry.npmjs.org/@rhea-finance/cross-chain-sdk/-/cross-chain-sdk-0.1.22.tgz","fileCount":8,"unpackedSize":7111053,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC/oBjfnIWg2yxHMmOw2heyliM2SBqD+3l9ca34QyoMWAiAFKMIvNuBAoZb727Z4C6PeomAVXEhN7zGZnSVmmf02Zw=="}]},"_npmUser":{"name":"jimi-ref","email":"jimi@ref.finance"},"directories":{},"maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"},{"name":"jimi-ref","email":"jimi@ref.finance"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cross-chain-sdk_0.1.22_1787728460527_0.625051532549111"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-01T03:41:40.800Z","modified":"2026-08-26T07:14:20.942Z","0.1.0":"2025-12-01T03:41:41.074Z","0.1.1":"2025-12-03T01:09:42.136Z","0.1.2":"2025-12-03T01:36:18.243Z","0.1.3":"2025-12-03T16:40:32.689Z","0.1.4":"2026-01-05T13:58:59.655Z","0.1.5":"2026-01-05T14:19:08.629Z","0.1.6":"2026-02-10T08:01:18.979Z","0.1.7":"2026-02-12T01:57:36.601Z","0.1.8":"2026-02-24T08:07:07.860Z","0.1.9":"2026-02-24T09:19:29.710Z","0.1.10":"2026-02-27T06:47:08.813Z","0.1.11":"2026-03-10T01:47:41.648Z","0.1.12":"2026-03-11T06:14:48.035Z","0.1.13":"2026-04-15T01:15:47.125Z","0.1.14":"2026-04-16T07:00:13.027Z","0.1.15":"2026-04-16T08:01:41.397Z","0.1.16":"2026-04-22T07:42:52.687Z","0.1.17":"2026-05-20T09:11:14.716Z","0.1.18":"2026-06-19T08:49:02.834Z","0.1.19":"2026-06-22T09:43:08.060Z","0.1.20":"2026-08-03T00:57:44.539Z","0.1.21":"2026-08-14T07:31:28.402Z","0.1.22":"2026-08-26T07:14:20.722Z"},"license":"MIT","keywords":["lending","cross-chain","sdk"],"description":"Cross-chain lending SDK","maintainers":[{"name":"dapdap-universe","email":"benjm240@gmail.com"},{"name":"naturexie","email":"nature@ref.finance"},{"name":"jimi-ref","email":"jimi@ref.finance"}],"readme":"# @rhea-finance/cross-chain-sdk\n\nCross-chain lending SDK that supports unified lending operations across multiple blockchains, including EVM chains, Solana, Bitcoin, and NEAR.\n\n[swap api doc](https://github.com/rhea-finance/rhea-sdk-docs/blob/main/CrossChainDexAPI.md \"\")\n\n[swap sdk doc](https://github.com/rhea-finance/rhea-sdk-docs/blob/main/CrossChainDexSdk.md \"\")\n\n## Features\n\n- 🔗 **Cross-chain Support**: Supports multi-chain operations on EVM, Solana, Bitcoin, and NEAR\n- 💰 **Lending Functions**: Provides complete lending functionality including Supply, Borrow, Repay, Withdraw, etc.\n- 📊 **Data Queries**: Supports querying asset information, portfolio, prices, balances, and other data\n- 🏥 **Health Factor**: Automatically calculates and manages lending health factors\n- 💼 **Multi-chain Account (MCA)**: Supports creating and managing multi-chain accounts to unify multi-chain asset management\n- 🔐 **Wallet Management**: Supports adding and removing multi-chain wallets\n- 📈 **Liquidity Mining**: Supports liquidity mining and reward queries\n- ⚡ **Batch Queries**: Provides batch view queries to reduce RPC call frequency\n\n## Supported Blockchains\n\n- **EVM Chains**: Ethereum, Arbitrum, Optimism, Base, BNB Chain, etc.\n- **Solana**\n- **Bitcoin**\n- **NEAR Protocol**\n\n## Installation\n\n```bash\nnpm install @rhea-finance/cross-chain-sdk\n# or\npnpm add @rhea-finance/cross-chain-sdk\n# or\nyarn add @rhea-finance/cross-chain-sdk\n```\n\n## Quick Start\n\n### Basic Usage\n\n```typescript\n// Type imports\nimport type {\n  ILendingData,\n  IAccountAllPositionsDetailed,\n  IAssetDetailed,\n  IConfig,\n  IPythInfo,\n  IMetadata,\n  IAssetFarm,\n  IPrices,\n  Portfolio,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// Function imports\nimport {\n  batchViews,\n  getAccountAllPositions,\n  getAssetsDetail,\n  getConfig,\n  getTokenPythInfos,\n  getAllMetadata,\n  getMetadata,\n  getBalance,\n  getAllFarms,\n  getPrices,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// Batch query - get all data at once\nconst lendingData: ILendingData = await batchViews(accountId);\nconsole.log(lendingData.account_all_positions);\nconsole.log(lendingData.assets_paged_detailed);\nconsole.log(lendingData.config);\nconsole.log(lendingData.token_pyth_infos);\n\n// Individual queries - get data separately\n\n// Get account all positions\nconst accountAllPositions: IAccountAllPositionsDetailed = await getAccountAllPositions(accountId);\n// Get assets detail\nconst assetsPagedDetailed: IAssetDetailed[] = await getAssetsDetail();\n\n// Get config\nconst config: IConfig = await getConfig();\n\n// Get token pyth infos\nconst tokenPythInfos: Record<string, IPythInfo> = await getTokenPythInfos();\n\n// Get metadata - batch query\nconst tokenIds = [\"usdt.tether-token.near\", \"17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1\", \"zec.omft.near\"];\nconst allMetadata: IMetadata[] = await getAllMetadata(tokenIds);\n\n// Get metadata - single query\nconst metadata: IMetadata | undefined = await getMetadata(\"token1.near\");\n\n// Get balance - get token balance in NEAR wallet\nconst balance: string = await getBalance(\"usdt.tether-token.near\", accountId);\n\n// Get all farms - get all lending farm data\nconst allFarms: [Record<string, string>, IAssetFarm][] = await getAllFarms();\n\n// Get prices - get price data for all assets in lending\nconst prices: IPrices | undefined = await getPrices({\n  token_pyth_infos: tokenPythInfos,\n  config: config,\n});\n\n```\n\n### Multi-chain Account (MCA) Management\n\n```typescript\n// Import MCA related functions separately\nimport {\n  getMcaByWallet,\n  getListWalletsByMca,\n  getCreateMcaFee,\n  getCreateMcaFeePaged,\n  getNearValue,\n  getNearValuesPaged,\n  getZcashCreateMcaDepositAddress,\n  getZcashResponseDataByAddress,\n} from \"@rhea-finance/cIChainross-chain-sdk\";\nimport type { , IWallet } from \"@rhea-finance/cross-chain-sdk\";\n\n// Get MCA by wallet - query multi-chain account based on logged-in wallet\n// Parameters:\n//   chain: Supported chain type: \"evm\", \"solana\", \"btc\", or \"zcash\"\n//   identityKey: Unique identifier of the logged-in account on the specified chain\n//     - evm: Account ID (e.g., \"0x1234...\")\n//     - solana: Account ID (e.g., \"ABC123...\")\n//     - btc: Public key (e.g., \"02abc123...\")\n//     - zcash: Public identity key\nconst mcaId: string | null = await getMcaByWallet({\n  chain: \"evm\" as IChain,\n  identityKey: \"0x1234...\",\n});\n\n// Get list wallets by MCA - query all wallets bound to a multi-chain account\nconst wallets: IWallet[] = await getListWalletsByMca(mcaId);\n\n// Get create MCA fee - get creation fee for a specific asset\nconst createFee: string = await getCreateMcaFee(\"usdt.tether-token.near\");\n\n// Get create MCA fee paged - get list of creation fee tokens\nconst createFeeList: Record<string, string> = await getCreateMcaFeePaged();\n\n// Get near value - get exchange rate between a specific token and NEAR\nconst nearValue: string = await getNearValue(\"usdt.tether-token.near\");\n\n// Get near values paged - get all token exchange rates with NEAR\nconst nearValues: Record<string, string> = await getNearValuesPaged();\n\n// Get Zcash create MCA deposit address - get deposit address when creating MCA with Zcash (Old way)\nconst zcashDepositAddress: string = await getZcashCreateMcaDepositAddress(\"multica.near\");\n\n// Get Zcash response data by address - query Zcash deposit/creation status (Old way)\nconst zcashData = await getZcashResponseDataByAddress(address);\n```\n\n## Operations\n\n### Create Multi-chain Account (MCA)\n\nThe following steps describe how to create a multi-chain account:\n\n```typescript\nimport type {\n  IChain,\n  IIntentsQuoteResult,\n  Asset,\n} from \"@rhea-finance/cross-chain-sdk\";\nimport {\n  format_wallet,\n  serializationObj,\n  getCreateMcaCustomRecipientMsg,\n  getCreateMcaFeeData,\n  intentsQuotation,\n  prepare_sign_message_evm,\n  process_signature_evm,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// Step 1: Create multi-chain wallet\nconst w = format_wallet({\n  chain: \"evm\" as IChain,\n  identityKey: \"0x1234...\",\n});\n\n// Step 2: Sign\n// Signing content\nconst message = serializationObj([w]);\n\n// Format signing content\nconst _message = prepare_sign_message_evm(message);\n\n// Sign (this is a wallet SDK method, not from this SDK)\nconst signature = signMessage(_message);\n\n// Process signature result\nconst signedMessage = process_signature_evm(signature);\n\n// Step 3: Get customRecipientMsg\n// useAsCollateral parameter determines whether these assets should be used as collateral.\nconst customRecipientMsg = getCreateMcaCustomRecipientMsg({\n  useAsCollateral: true,\n  wallets: [w],\n  signedMessages: [signedMessage],\n});\n\n// Step 4: Get create MCA fee data\n// Get the on-chain fee for creating an MCA account\n// Parameters:\n//   asset: The Asset object\n//   bufferMultiple: Optional buffer multiplier (default 1.05)\nconst mcaFee = await getCreateMcaFeeData({\n  asset: asset,\n  bufferMultiple: 1.05, // optional, default 1.05\n});\n// mcaFee.amountRaw     - fee amount with token precision (for contract calls)\n// mcaFee.amountReadable - human-readable fee amount\n\n// Step 5: Get intents quote to obtain depositAddress\nconst res_quote: IIntentsQuoteResult = await intentsQuotation({\n  originAsset: \"nep141:xxx\",\n  destinationAsset: \"nep141:xxx\",\n  amount: \"14743\",\n  refundTo: \"0xxxx\",\n  recipient: \"multica.near\",\n  isReverse: false,\n  dry: false,\n  slippageTolerance: 50,\n  customRecipientMsg: customRecipientMsg,\n});\n\n// Step 6: Get depositAddress and transfer funds to complete MCA creation\nconst depositAddress = res_quote.quoteSuccessResult?.quote?.depositAddress;\n\n// Step 7: Calculate total fee\n// Total fee = MCA creation fee + intents quotation fee (cross-chain bridge/swap fee)\n// quoteFeeData is returned by intentsQuotation when quoteStatus is \"success\"\n//   quoteFeeData.feeAmount - bridge/swap fee amount (readable)\n//   quoteFeeData.feeUsd    - bridge/swap fee in USD\nconst quoteFee = res_quote.quoteFeeData;\n// Total fee (readable) = mcaFee.amountReadable + quoteFee.feeAmount\n// Total fee (USD)       = mcaFee amount in USD  + quoteFee.feeUsd\n\n// Transfer funds to depositAddress using your wallet\n```\n\n### Create MCA via Zcash (Old way)\n\nWhen creating an MCA account with Zcash, use `getZcashCreateMcaDepositAddress` to obtain the deposit address:\n\n```typescript\nimport { getZcashCreateMcaDepositAddress } from \"@rhea-finance/cross-chain-sdk\";\n\n// Get deposit address for Zcash MCA creation\n// Parameters:\n//   am_id: Account manager ID (e.g., \"multica.near\")\nconst depositAddress: string = await getZcashCreateMcaDepositAddress(\"multica.near\");\n\n// Transfer Zcash to depositAddress to complete MCA creation\n```\n\n### getZcashResponseDataByAddress (Old way)\n\nGet Zcash deposit/creation data by address. Query the status and details of a Zcash MCA creation or adding wallet flow:\n\n```typescript\nimport {\n  getZcashResponseDataByAddress,\n  type IDataByAddressResponse,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// Parameters:\n//   address: Zcash deposit address\nconst data: IDataByAddressResponse | undefined =\n  await getZcashResponseDataByAddress(address);\n\n// data contains: deposit_address, mca_id, status, tx_hash, application, etc.\n```\n\n### Cross-chain Supply\n\n```typescript\nimport {\n  getSupplyCustomRecipientMsg,\n  format_wallet,\n  intentsQuotation,\n  config_near,\n} from \"@rhea-finance/cross-chain-sdk\";\n\nconst wallet = format_wallet({ chain, identityKey });\nconst customRecipientMsg = getSupplyCustomRecipientMsg({\n  useAsCollateral: true,\n  w: wallet,\n});\n\nconst quoteResult = await intentsQuotation({\n  recipient: \"rhea00000x.multica.near\", // or mca account address\n  customRecipientMsg,\n  // ... other parameters\n});\n\n// Transfer to depositAddress\nconst depositAddress = quoteResult.quoteSuccessResult?.quote?.depositAddress;\n```\n\n### getSupplyDepositData\n\nGet supply deposit address and quote result, simplifies Cross-chain Supply flow:\n\n```typescript\nimport { getSupplyDepositData } from \"@rhea-finance/cross-chain-sdk\";\n\n// Parameters:\n//   chain: Chain type, supports \"evm\" | \"solana\" | \"btc\"\n//   identityKey: Wallet address or public key\n//   useAsCollateral: Whether to use as collateral\n//   originAsset: Origin asset (e.g. \"nep141:usdt.tether-token.near\")\n//   destinationAsset: Destination asset\n//   amount: Amount (raw amount)\n//   refundTo: Refund address\n//   recipient: MCA account address\nconst result = await getSupplyDepositData({\n  chain: \"evm\",\n  identityKey: \"0x1234...\",\n  useAsCollateral: true,\n  originAsset: \"nep141:usdt.tether-token.near\",\n  destinationAsset: \"nep141:wrap.near\",\n  amount: \"1000000\",\n  refundTo: \"rhea00000x.multica.near\",\n  recipient: \"rhea00000x.multica.near\",\n});\n\n// Transfer to depositAddress to complete Supply\nconst depositAddress = result.depositAddress;\n// result also contains quoteResult's full quote data\n\n// quoteFeeData - cross-chain bridge/swap fee (present when quote succeeds)\nconst quoteFeeData = result.quoteResult?.quoteFeeData;\n// quoteFeeData.feeAmount - bridge/swap fee amount (readable)\n// quoteFeeData.feeUsd    - bridge/swap fee in USD\n```\n\n### Cross-chain Repay\n\n```typescript\nimport {\n  getRepayCustomRecipientMsg,\n  format_wallet,\n  intentsQuotation,\n  config_near,\n} from \"@rhea-finance/cross-chain-sdk\";\n\nconst wallet = format_wallet({ chain, identityKey });\nconst customRecipientMsg = getRepayCustomRecipientMsg({\n  w: wallet,\n});\n\nconst quoteResult = await intentsQuotation({\n  recipient: \"rhea00000x.multica.near\", // or mca account address\n  customRecipientMsg,\n  // ... other parameters\n});\n\n// Transfer to depositAddress\nconst depositAddress = quoteResult.quoteSuccessResult?.quote?.depositAddress;\n```\n\n### Cross-chain Borrow\n\n```typescript\n// Get simple withdraw data\n// simpleWithdrawData: Extract a portion of assets from user's lending assets to pay the relayer\n// User pays relayer's gas fees and NEAR required for registration\n// Parameters:\n//   nearStorageAmount: NEAR storage amount\n//   mca: Multi-chain account ID\n//   relayerGasFees: Relayer gas fees for different chains\n//   assets: Assets data (from getAssets() or batchViews())\n//   portfolio: Portfolio data (from getAccountAllPositions() or batchViews())\nconst simpleWithdrawData: ISimpleWithdraw | null = computeRelayerGas({\n  nearStorageAmount,\n  mca,\n  relayerGasFees,\n  assets,\n  portfolio\n})\n\n// Prepare borrow business data\n// Parameters:\n//   amountBurrow: Amount of assets to withdraw from lending (precision required by lending contract)\n//   amountToken: Amount of assets to withdraw from lending (precision of the token)\n//   config: Configuration data (from getConfig() or batchViews())\n//   simpleWithdrawData: Simple withdraw data (see above for details)\nconst { businessMap, quoteResult } = await prepareBusinessDataOnBorrow({\n  mca,\n  recipient: \"0x7dxxx...\",\n  tokenId: \"usdt.tether-token.near\",\n  originAsset: \"nep141:usdt.tether-token.near\",\n  destinationAsset: \"xxxx\",\n  amountBurrow,\n  amountToken,\n  config: config,\n  simpleWithdrawData: simpleWithdrawData,\n});\n\nconst wallet = format_wallet({ chain, identityKey });\nconst signedBusiness = await sign_message({\n  chain,\n  message: serializationObj(businessMap),\n});\n\n// Submit multi-chain lending request\nconst relayer_result = await postMultichainLendingRequests({\n  mca_id: mca,\n  wallet: serializationObj(wallet),\n  request: [\n    serializationObj({\n      signer_wallet: wallet,\n      business: businessMap,\n      signature: signedBusiness,\n      attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n    }),\n  ],\n});\n\n// Poll transaction result\nif (relayer_result?.code == 0) {\n  const { status, tx_hash } = await pollingRelayerTransactionResult(\n    relayer_result.data,\n    2000\n  );\n  console.log(\"Transaction status:\", status);\n  console.log(\"Transaction hash:\", tx_hash);\n}\n```\n\n### Cross-chain Withdraw\n\n```typescript\n// Get simple withdraw data (see Cross-chain Borrow section for detailed explanation)\nconst simpleWithdrawData: ISimpleWithdraw | null = await computeRelayerGas({\n  nearStorageAmount,\n  mca,\n  relayerGasFees,\n  assets,\n  portfolio\n})\n\n// Prepare withdraw business data\n// Parameters:\n//   amountBurrow: Amount of assets to withdraw from lending (precision required by lending contract)\n//   amountToken: Amount of assets to withdraw from lending (precision of the token)\n//   config: Configuration data (from getConfig() or batchViews())\n//   simpleWithdrawData: Simple withdraw data (see Cross-chain Borrow section for details)\n//   isDecrease: Whether to decrease collateral\n//   decreaseCollateralAmount: Amount to decrease collateral (if isDecrease is true)\nconst { businessMap, quoteResult } = await prepareBusinessDataOnWithdraw({\n  mca,\n  recipient: \"0x7dxxx...\",\n  tokenId: \"usdt.tether-token.near\",\n  originAsset: \"nep141:usdt.tether-token.near\",\n  destinationAsset: \"xxxx\",\n  amountBurrow,\n  amountToken,\n  config: config,\n  simpleWithdrawData,\n  isDecrease: false,\n  decreaseCollateralAmoun,\n});\n\n// quoteFeeData - cross-chain bridge/swap fee (present when quote succeeds)\nconst quoteFeeData = quoteResult?.quoteFeeData;\n// quoteFeeData.feeAmount - bridge/swap fee amount (readable)\n// quoteFeeData.feeUsd    - bridge/swap fee in USD\n\nconst wallet = format_wallet({ chain, identityKey });\nconst signedBusiness = await sign_message({\n  chain,\n  message: serializationObj(businessMap),\n});\n\n// Submit multi-chain lending request\nconst relayer_result = await postMultichainLendingRequests({\n  mca_id: mca,\n  wallet: serializationObj(wallet),\n  request: [\n    serializationObj({\n      signer_wallet: wallet,\n      business: businessMap,\n      signature: signedBusiness,\n      attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n    }),\n  ],\n});\n\n// Poll transaction result\nif (relayer_result?.code == 0) {\n  const { status, tx_hash } = await pollingRelayerTransactionResult(\n    relayer_result.data,\n    2000\n  );\n  console.log(\"Transaction status:\", status);\n  console.log(\"Transaction hash:\", tx_hash);\n}\n```\n\n### Add Wallet to MCA\n\n```typescript\n// Step 1: the new wallet to add\nconst newWallet = {\n  chain: \"xxx\",\n  identityKey,\n}\nconst add_w = format_wallet({\n  chain: newWallet.chain,\n  identityKey: newWallet.identityKey,\n});\n\n// Step 2: Sign the new wallet with the new wallet itself\n// Signing content: mca + serialized wallet\nconst signature_new_wallet = await sign_message({\n  chain: newWallet.chain,\n  message: mca + serializationObj(add_w),\n});\n\n// Step 3: Prepare add wallet business data\n// Parameters:\n//   mca: Multi-chain account ID\n//   w: Wallet to add (formatted using format_wallet)\n//   signature_w: Signature of the new wallet (signed by the new wallet itself)\n//   gas_token_id: Token ID for gas payment\n//   gas_token_amount: Amount of gas token\nconst businessMap = await prepareBusinessDataOnAddWallet({\n  mca: \"rhea00000x.multica.near\",\n  w: add_w,\n  signature_w: signature_new_wallet,\n  gas_token_id: \"usdt.tether-token.near\",\n  gas_token_amount: \"1000000\",\n});\n\n// Step 4: Sign the business data with the signer wallet\nconst signerWallet = { chain: \"xxx\", identityKey };\nconst sign_w = format_wallet({ signerWallet.chain, signerWallet.identityKey });\nconst signedBusiness = await sign_message({\n  chain: signerWallet.chain,\n  message: serializationObj(businessMap),\n});\n\n// Submit multi-chain lending request\nconst relayer_result = await postMultichainLendingRequests({\n  mca_id: mca,\n  wallet: serializationObj(sign_w),\n  request: [\n    serializationObj({\n      signer_wallet: sign_w,\n      business: businessMap,\n      signature: signedBusiness,\n      attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n    }),\n  ],\n});\n\n// Poll transaction result\nif (relayer_result?.code == 0) {\n  const { status, tx_hash } = await pollingRelayerTransactionResult(\n    relayer_result.data,\n    2000\n  );\n  console.log(\"Transaction status:\", status);\n  console.log(\"Transaction hash:\", tx_hash);\n}\n```\n\n### Remove Wallet from MCA\n\n```typescript\n// Prepare remove wallet business data\n// Parameters:\n//   mca: Multi-chain account ID\n//   w: Wallet to remove (formatted using format_wallet)\n//   gas_token_id: Token ID for gas payment\n//   gas_token_amount: Amount of gas token\nconst removeWallet = {\n  chain: \"xxx\",\n  identityKey,\n}\nconst remove_w = format_wallet({ chain: removeWallet.chain, identityKey: removeWallet.identityKey });\nconst businessMap = await prepareBusinessDataOnRemoveWallet({\n  mca: \"rhea00000x.multica.near\",\n  w: _removeWallet,\n  gas_token_id: \"usdt.tether-token.near\",\n  gas_token_amount: \"1000000\",\n});\n\n// Sign the business data with the signer wallet\nconst signerWallet = { chain: \"xxx\", identityKey };\nconst _signerWallet = format_wallet({ chain: signerWallet.chain, identityKey: signerWallet.identityKey });\nconst signedBusiness = await sign_message({\n  chain: _signerWallet.chain,\n  message: serializationObj(businessMap),\n});\n\n// Submit multi-chain lending request\nconst relayer_result = await postMultichainLendingRequests({\n  mca_id: mca,\n  wallet: serializationObj(_signerWallet),\n  request: [\n    serializationObj({\n      signer_wallet: _signerWallet,\n      business: businessMap,\n      signature: signedBusiness,\n      attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n    }),\n  ],\n});\n\n// Poll transaction result\nif (relayer_result?.code == 0) {\n  const { status, tx_hash } = await pollingRelayerTransactionResult(\n    relayer_result.data,\n    2000\n  );\n  console.log(\"Transaction status:\", status);\n  console.log(\"Transaction hash:\", tx_hash);\n}\n```\n\n### Adjust Collateral\n\n```typescript\n// Get simple withdraw data (see Cross-chain Borrow section for detailed explanation)\nconst simpleWithdrawData: ISimpleWithdraw | null = await computeRelayerGas({\n  nearStorageAmount,\n  mca,\n  relayerGasFees,\n  assets,\n  portfolio\n})\n\n// Prepare adjust business data\n// Parameters:\n//   mca: Multi-chain account ID\n//   tokenId: Token ID to adjust\n//   config: Configuration data (from getConfig() or batchViews())\n//   simpleWithdrawData: Simple withdraw data (see Cross-chain Borrow section for details)\n//   isIncreaseCollateral: Whether to increase collateral\n//   increaseAmountBurrow: Amount to increase collateral (if isIncreaseCollateral is true)\n//   isDecreaseCollateral: Whether to decrease collateral\n//   decreaseAmountBurrow: Amount to decrease collateral (if isDecreaseCollateral is true)\nconst businessMap = await prepareBusinessDataOnAdjust({\n  mca: \"rhea00000x.multica.near\",\n  tokenId: \"usdt.tether-token.near\",\n  config: config,\n  simpleWithdrawData: simpleWithdrawData,\n  isIncreaseCollateral: true,\n  increaseAmountBurrow,\n  isDecreaseCollateral: false,\n  decreaseAmountBurrow,\n});\n\nconst wallet = format_wallet({ chain, identityKey });\nconst signedBusiness = await sign_message({\n  chain,\n  message: serializationObj(businessMap),\n});\n\n// Submit multi-chain lending request\nconst relayer_result = await postMultichainLendingRequests({\n  mca_id: mca,\n  wallet: serializationObj(wallet),\n  request: [\n    serializationObj({\n      signer_wallet: wallet,\n      business: businessMap,\n      signature: signedBusiness,\n      attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n    }),\n  ],\n});\n\n// Poll transaction result\nif (relayer_result?.code == 0) {\n  const { status, tx_hash } = await pollingRelayerTransactionResult(\n    relayer_result.data,\n    2000\n  );\n  console.log(\"Transaction status:\", status);\n  console.log(\"Transaction hash:\", tx_hash);\n}\n```\n\n### Repay from Supplied\n\n```typescript\n// Get simple withdraw data (see Cross-chain Borrow section for detailed explanation)\nconst simpleWithdrawData: ISimpleWithdraw | null = await computeRelayerGas({\n  nearStorageAmount,\n  mca,\n  relayerGasFees,\n  assets,\n  portfolio\n})\n\n// Prepare repay from supplied business data\n// Parameters:\n//   mca: Multi-chain account ID\n//   tokenId: Token ID to repay\n//   config: Configuration data (from getConfig() or batchViews())\n//   simpleWithdrawData: Simple withdraw data (see Cross-chain Borrow section for details)\n//   amountBurrow: Amount to repay (precision required by lending contract)\n//   decreaseAmountBurrow: Amount to decrease collateral (precision required by lending contract)\nconst businessMap = await prepareBusinessDataOnRepayFromSupplied({\n  mca: \"rhea00000x.multica.near\",\n  tokenId: \"usdt.tether-token.near\",\n  config: config,\n  simpleWithdrawData: simpleWithdrawData,\n  amountBurrow,\n  decreaseAmountBurrow,\n});\n\nconst wallet = format_wallet({ chain, identityKey });\nconst signedBusiness = await sign_message({\n  chain,\n  message: serializationObj(businessMap),\n});\n\n// Submit multi-chain lending request\nconst relayer_result = await postMultichainLendingRequests({\n  mca_id: mca,\n  wallet: serializationObj(wallet),\n  request: [\n    serializationObj({\n      signer_wallet: wallet,\n      business: businessMap,\n      signature: signedBusiness,\n      attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n    }),\n  ],\n});\n\n// Poll transaction result\nif (relayer_result?.code == 0) {\n  const { status, tx_hash } = await pollingRelayerTransactionResult(\n    relayer_result.data,\n    2000\n  );\n  console.log(\"Transaction status:\", status);\n  console.log(\"Transaction hash:\", tx_hash);\n}\n```\n\n### Claim Rewards\n\n```typescript\n// Prepare claim business data\n// Parameters:\n//   mca: Multi-chain account ID\n//   gas_token_id: Token ID for gas payment\n//   gas_token_amount: Amount of gas token\nconst businessMap = await prepareBusinessDataOnClaim({\n  mca: \"rhea00000x.multica.near\",\n  gas_token_id: \"usdt.tether-token.near\",\n  gas_token_amount: \"1000000\",\n});\n\nconst wallet = format_wallet({ chain, identityKey });\nconst signedBusiness = await sign_message({\n  chain,\n  message: serializationObj(businessMap),\n});\n\n// Submit multi-chain lending request\nconst relayer_result = await postMultichainLendingRequests({\n  mca_id: mca,\n  wallet: serializationObj(wallet),\n  request: [\n    serializationObj({\n      signer_wallet: wallet,\n      business: businessMap,\n      signature: signedBusiness,\n      attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n    }),\n  ],\n});\n\n// Poll transaction result\nif (relayer_result?.code == 0) {\n  const { status, tx_hash } = await pollingRelayerTransactionResult(\n    relayer_result.data,\n    2000\n  );\n  console.log(\"Transaction status:\", status);\n  console.log(\"Transaction hash:\", tx_hash);\n}\n```\n\n### Get farm details for an asset\n\n```typescript\nimport {\n  getFarmDetailsOfAsset,\n  getAssetDetailsView,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// Get assets view (IAssetsView)\nconst assets = await getAssetDetailsView();\n\n// Get farm details for a specific asset\nconst farmDetails = getFarmDetailsOfAsset({\n  assets,\n  assetId: \"zec.omft.near\",\n  booster: 1.5, // optional, default 1.5\n});\n\n// farmDetails: IFarmDetailsOfAsset\nconsole.log(farmDetails.minFarmApy);    // market farm APY (min)\nconsole.log(farmDetails.maxFarmApy);    // max farm APY (with booster)\nconsole.log(farmDetails.tokenNetRewards); // reward token metadata\nconsole.log(farmDetails.canBeBooster);  // whether asset can be boosted\nconsole.log(farmDetails.supplyApy);     // supply APR (%)\nconsole.log(farmDetails.borrowApy);    // borrow APR (%)\n```\n\n### Cross-chain Withdraw Rewards\n\n```typescript\nimport {\n  prepareBusinessDataOnWithdrawRewards,\n  getUnclaimedRewards,\n  batchViewsData,\n  getSimpleWithdrawData,\n  format_wallet,\n  serializationObj,\n  NDeposit,\n  TOKEN_STORAGE_DEPOSIT_READ,\n  postMultichainLendingRequests,\n  pollingRelayerTransactionResult,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// Get assets, portfolio and config (e.g. for MCA)\nconst mca = \"your_mca_id\";\nconst { assetsView, portfolioView, config } = await batchViewsData(mca);\n\n// Get unclaimed rewards and pick one to withdraw\nconst unclaimedRewards = getUnclaimedRewards({ portfolioView, assetsView });\nconst unclaimedReward = unclaimedRewards[0];\n\n// Get simple withdraw data (relayer gas)\nconst gasData = await getSimpleWithdrawData({\n  nearStorageAmount: \"0.00125\",\n  mca,\n  assets: assetsView,\n  portfolio: portfolioView,\n  businessNum: 2, // optional\n});\nconst simpleWithdrawData = gasData?.simpleWithdrawData ?? null;\n\n// Prepare withdraw rewards business data\nconst receiveTokenId = \"zec.omft.near\";\nconst originAsset = \"1cs_v1:near:nep141:zec.omft.near\";\nconst destinationAsset = \"nep141:zec.omft.near\";\nconst recipient = \"t1dsFgNR2nr99MJ7Dq2Wwk3d4EnUs43ATqY\";\n\nconst res = await prepareBusinessDataOnWithdrawRewards({\n  mca,\n  rewardTokenId: unclaimedReward?.rewardTokenId,\n  amountBurrow: unclaimedReward?.amountBurrow,\n  amountToken: unclaimedReward?.amountToken,\n  config,\n  simpleWithdrawData,\n  receiveTokenId,\n  originAsset,\n  destinationAsset,\n  recipient,\n});\n\nif (res.status === \"success\") {\n  const { businessMap, businessMapExtra } = res;\n  const signedBusiness = await sign_message({\n    message: JSON.stringify(businessMap),\n  });\n  const signedBusinessExtra = await sign_message({\n    message: JSON.stringify(businessMapExtra),\n  });\n\n  const wallet = format_wallet({ chain, identityKey });\n  const relayer_result = await postMultichainLendingRequests({\n    mca_id: mca,\n    wallet: serializationObj(wallet),\n    request: [\n      serializationObj({\n        signer_wallet: wallet,\n        business: businessMap,\n        signature: signedBusiness,\n        attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n      }),\n      serializationObj({\n        signer_wallet: wallet,\n        business: businessMapExtra,\n        signature: signedBusinessExtra,\n        attach_deposit: NDeposit(TOKEN_STORAGE_DEPOSIT_READ),\n      }),\n    ],\n  });\n\n  if (relayer_result?.code === 0) {\n    const { status, tx_hash } = await pollingRelayerTransactionResult(\n      relayer_result.data,\n      2000\n    );\n    console.log(\"Transaction status:\", status);\n    console.log(\"Transaction hash:\", tx_hash);\n  }\n} else {\n  console.error(\"Prepare failed:\", res.message);\n}\n```\n\n### LSD Intents Supply and Withdraw\n\nThe LSD module prepares the two-leg Intents route used by the LSD page in the demo project:\n\n- Supply: BSC USDT -> NEAR USDT -> LSD -> BSC lsdUSDT\n- Withdraw: BSC lsdUSDT -> NEAR LSD -> USDT -> BSC USDT\n\nThe SDK prepares quotes and transfer data, but it does not send EVM wallet transactions. Your app should use its own wallet integration to transfer the returned token amount to the returned `depositAddress`.\n\n```typescript\nimport {\n  BSC_CHAIN_ID,\n  calculateLsdFromUsdt,\n  calculateUsdtFromLsd,\n  getLsdBalances,\n  getLsdIntentsOrderHistory,\n  pollLsdIntentsTransactionStatuses,\n  prepareLsdSupplyByIntents,\n  prepareLsdWithdrawByIntents,\n  quoteLsdSupplyByIntents,\n  quoteLsdWithdrawByIntents,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// This is app-side wallet code, not provided by the SDK.\nasync function transferToken(params: {\n  tokenAddress: string;\n  depositAddress: string;\n  chain: \"bsc\";\n  amount: string;\n}) {\n  // Example:\n  // await erc20Contract.transfer(params.depositAddress, params.amount);\n}\n\nconst accountAddress = \"0x...\";\n\n// Optional: pass your own BSC RPC if the default RPC is unstable.\nconst balances = await getLsdBalances({\n  accountAddress,\n  rpcUrl: \"https://your-bsc-rpc.example\",\n});\nconsole.log(balances.usdt);\nconsole.log(balances.lsdUsdt);\n\n// Query LSD intents order history for the current wallet.\n// The SDK returns a lightweight record_list with:\n//   timestamp\n//   status\n//   quoteRequest.originAsset / destinationAsset / recipient / refundTo / customRecipientMsg\n//   quote (all fields)\nconst history = await getLsdIntentsOrderHistory({\n  accountId: accountAddress,\n  pageSize: 10,\n});\nconsole.log(history.total_size);\nconsole.log(history.record_list[0]?.status);\nconsole.log(history.record_list[0]?.quote.depositAddress);\n\n// Exchange conversion helpers return both readable and raw values.\nconst lsdFromUsdt = await calculateLsdFromUsdt(\"100\");\nconsole.log(lsdFromUsdt.readableAmount); // readable lsdUSDT amount for display\nconsole.log(lsdFromUsdt.amount); // raw lsdUSDT amount with token precision\n\nconst usdtFromLsd = await calculateUsdtFromLsd(\"50\");\nconsole.log(usdtFromLsd.readableAmount); // readable USDT amount for display\nconsole.log(usdtFromLsd.amount); // raw NEAR USDT amount for Intents quote\n\n// Quote supply. Amounts are human-readable strings.\nconst supplyQuote = await quoteLsdSupplyByIntents({\n  accountAddress,\n  amount: \"100\",\n});\nconsole.log(supplyQuote.estimatedReceive);\nconsole.log(supplyQuote.bridgeFeeUsd);\n\n// Prepare supply transfer data.\nconst preparedSupply = await prepareLsdSupplyByIntents({\n  accountAddress,\n  amount: \"100\",\n  onStatusChange(stage) {\n    console.log(\"Supply prepare stage:\", stage);\n  },\n});\n\nif (preparedSupply.status !== \"success\" || !preparedSupply.transferData) {\n  throw new Error(preparedSupply.message || \"Failed to prepare LSD supply\");\n}\n\nawait transferToken({\n  tokenAddress: preparedSupply.transferData.tokenAddress,\n  depositAddress: preparedSupply.transferData.depositAddress,\n  chain: preparedSupply.transferData.chain,\n  amount: preparedSupply.transferData.amount,\n});\n\nif (!preparedSupply.intentsDepositAddresses) {\n  throw new Error(\"Missing Intents deposit addresses\");\n}\n\nconst supplyStatuses = await pollLsdIntentsTransactionStatuses({\n  originDepositAddress:\n    preparedSupply.intentsDepositAddresses.originDepositAddress,\n  returnDepositAddress:\n    preparedSupply.intentsDepositAddresses.returnDepositAddress,\n});\n\nif (\n  supplyStatuses.origin.status !== \"success\" ||\n  supplyStatuses.return.status !== \"success\"\n) {\n  throw new Error(\n    `LSD supply failed: origin=${supplyStatuses.origin.status}, return=${supplyStatuses.return.status}`\n  );\n}\n\n// Quote withdraw.\nconst withdrawQuote = await quoteLsdWithdrawByIntents({\n  accountAddress,\n  amount: \"50\",\n});\nconsole.log(withdrawQuote.estimatedReceive);\nconsole.log(withdrawQuote.bridgeFeeUsd);\n\n// Prepare withdraw transfer data.\nconst preparedWithdraw = await prepareLsdWithdrawByIntents({\n  accountAddress,\n  amount: \"50\",\n});\n\nif (preparedWithdraw.status !== \"success\" || !preparedWithdraw.transferData) {\n  throw new Error(\n    preparedWithdraw.message || \"Failed to prepare LSD withdraw\"\n  );\n}\n\nawait transferToken({\n  tokenAddress: preparedWithdraw.transferData.tokenAddress,\n  depositAddress: preparedWithdraw.transferData.depositAddress,\n  chain: preparedWithdraw.transferData.chain,\n  amount: preparedWithdraw.transferData.amount,\n});\n\nif (!preparedWithdraw.intentsDepositAddresses) {\n  throw new Error(\"Missing Intents deposit addresses\");\n}\n\nconst withdrawStatuses = await pollLsdIntentsTransactionStatuses({\n  originDepositAddress:\n    preparedWithdraw.intentsDepositAddresses.originDepositAddress,\n  returnDepositAddress:\n    preparedWithdraw.intentsDepositAddresses.returnDepositAddress,\n});\n\nif (\n  withdrawStatuses.origin.status !== \"success\" ||\n  withdrawStatuses.return.status !== \"success\"\n) {\n  throw new Error(\n    `LSD withdraw failed: origin=${withdrawStatuses.origin.status}, return=${withdrawStatuses.return.status}`\n  );\n}\n```\n\n## Core API\n\n### Actions\n\n#### Account Management\n\n- `createMca` - Create multi-chain account\n- `addWallet` - Add wallet to MCA\n- `removeWallet` - Remove wallet from MCA\n\n#### Lending Operations\n\n- `supply` - Supply (deposit)\n- `borrow` - Borrow\n- `repay` - Repay\n- `repayFromSupplied` - Repay from supplied assets\n- `withdraw` - Withdraw\n- `adjust` - Adjust collateral\n- `innnerWithdraw` - Inner withdraw\n- `claim` - Claim rewards\n\n### Views\n\n- `batchViews` - Batch query views (account, assets, config, etc.)\n- `getAssets` - Get asset list\n- `getPrices` - Get price information\n- `getBalance` - Get balance\n- `getFarms` - Get liquidity mining information\n- `getFarmDetailsOfAsset` - Get farm details (APY, rewards, canBeBooster) for an asset\n- `getConfig` - Get configuration\n- `getBoosterTokens` - Get booster token information\n- `getTokenDetail` - Get token details\n- `getLiquidations` - Get liquidation information\n- `getMultichainLendingHistory` - Get multi-chain lending history\n\n#### Health Factor Calculation\n- `recomputeHealthFactorSupply` - Calculate health factor after supply\n- `recomputeHealthFactorBorrow` - Calculate health factor after borrow\n- `recomputeHealthFactorRepay` - Calculate health factor after repay\n- `recomputeHealthFactorWithdraw` - Calculate health factor after withdraw\n- `recomputeHealthFactorAdjust` - Calculate health factor after adjusting collateral\n\n#### Maximum Available Amount\n- `getBorrowMaxAmount` - Get maximum borrowable amount\n- `getWithdrawMaxAmount` - Get maximum withdrawable amount\n\n#### Core Utilities\n\n**Lending Operations**\n- `prepareBusinessDataOnBorrow` - Prepare borrow business data\n- `prepareBusinessDataOnWithdraw` - Prepare withdraw business data\n- `prepareBusinessDataOnAdjust` - Prepare adjust collateral business data\n- `prepareBusinessDataOnRepayFromSupplied` - Prepare repay from supplied business data\n- `prepareBusinessDataOninnerWithdraw` - Prepare inner withdraw business data\n\n**MCA Creation**\n- `getCreateMcaCustomRecipientMsg` - Get custom recipient message for creating MCA\n- `getCreateMcaFeeData` - Get the on-chain fee for creating an MCA account. Returns `{ amountRaw, amountReadable }`. Parameters: `asset` (Asset object), `bufferMultiple` (optional, default 1.5)\n- `getZcashCreateMcaDepositAddress` - Get deposit address when creating MCA with Zcash (Old way)\n- `getZcashResponseDataByAddress` - Get Zcash deposit/creation data by address (Old way)\n\n**Custom Recipient Messages**\n- `getSupplyCustomRecipientMsg` - Get custom recipient message for supply\n- `getSupplyDepositData` - Get supply deposit address and quote result\n- `getRepayCustomRecipientMsg` - Get custom recipient message for repay\n\n**Account Management**\n- `prepareBusinessDataOnAddWallet` - Prepare add wallet business data\n- `prepareBusinessDataOnRemoveWallet` - Prepare remove wallet business data\n- `prepareBusinessDataOnClaim` - Prepare claim rewards business data\n- `prepareBusinessDataOnWithdrawRewards` - Prepare cross-chain withdraw rewards business data\n\n\n**Intents Quotation**\n- `intentsQuotation` - Get cross-chain swap/bridge quote. Returns `IIntentsQuoteResult` which includes:\n  - `quoteStatus` - `\"success\"` or `\"error\"`\n  - `quoteSuccessResult` - Quote details (depositAddress, amounts, etc.)\n  - `quoteFeeData` - Fee data for the cross-chain bridge/swap (only present when `quoteStatus` is `\"success\"`):\n    - `feeAmount` - Bridge/swap fee amount (readable, = amountInFormatted - amountOutFormatted)\n    - `feeUsd` - Bridge/swap fee in USD (= amountInUsd - amountOutUsd)\n\n**General Utilities**\n- `format_wallet` - Format wallet address\n- `serializationObj` - Serialize object\n- `computeRelayerGas` - Calculate relayer gas fee\n- `pollingTransactionStatus` - Poll transaction status\n- `postMultichainLendingRequests` - Submit multi-chain lending request\n- `pollingRelayerTransactionResult` - Poll relayer transaction result\n\n### Chain Interaction\n\n- `view_on_near` - Call NEAR contract view method\n- `getAccountBalance` - Get NEAR account balance\n\n### Chain Configuration\n\n- `config_near` - NEAR chain configuration\n- `config_evm` - EVM chain configuration\n- `config_solana` - Solana chain configuration\n- `config_btc` - Bitcoin chain configuration\n- `setSdkEnv` - Switch SDK environment between `prd` and `stg`\n- `getSdkEnv` - Get current SDK environment\n- `setCustomNodeUrl` - Set custom RPC node URL for NEAR chain. This function allows you to customize the RPC endpoint used for NEAR chain interactions.\n- `setCustomNodeUrls` - Set multiple custom NEAR RPC node URLs. The SDK falls back to the next URL when the active RPC is rate limited or unavailable.\n\n```typescript\nimport {\n  setSdkEnv,\n  getSdkEnv,\n  setCustomNodeUrl,\n  setCustomNodeUrls,\n} from \"@rhea-finance/cross-chain-sdk\";\n\n// Default environment is prd\nconsole.log(getSdkEnv()); // \"prd\"\n\n// Switch to stg\nsetSdkEnv(\"stg\");\nconsole.log(getSdkEnv()); // \"stg\"\n\n// Switch back to prd\nsetSdkEnv(\"prd\");\nconsole.log(getSdkEnv()); // \"prd\"\n\n// Set custom NEAR RPC node URL for the current environment\nsetCustomNodeUrl(\"https://your-custom-near-rpc-url.com\");\n\n// Set custom NEAR RPC failover URLs for the current environment\nsetCustomNodeUrls([\n  \"https://your-primary-near-rpc-url.com\",\n  \"https://your-secondary-near-rpc-url.com\",\n]);\n```\n\nNotes:\n- The default SDK environment is `prd`.\n- `setSdkEnv(\"stg\" | \"prd\")` only switches the SDK environment.\n- `setCustomNodeUrl(...)` only overrides the NEAR RPC URL of the current environment and does not switch between `stg` and `prd`.\n- By default, NEAR view and balance calls use `https://free.rpc.fastnear.com` first and fall back to `https://nearinner.deltarpc.com` on transient failures such as HTTP 429, HTTP 408, HTTP 5xx, or network errors.\n\n### Type Definitions\n\n```typescript\n// Chain type\ntype IChain = \"evm\" | \"solana\" | \"btc\" | \"zcash\";\n\n// Wallet type\ntype IWallet =\n  | { EVM: string }\n  | { Solana: string }\n  | { Bitcoin: string }\n  | { Zcash: string };\n\n```\n\n## Usage Examples\n\nCheck out the [cross-chain-demo](./../cross-chain-demo) project for more complete usage examples.\n\n### Example 1: Query Account Data\n\n```typescript\nimport { batchViews  } from \"@rhea-finance/cross-chain-sdk\";\n\nasync function fetchAccountData(mcaId: string) {\n  // Batch query\n  const lendingData = await batchViews(mcaId);\n  \n  return {\n    assets: lendingData.assets_paged_detailed,\n    config: lendingData.config,\n  };\n}\n```\n```\n\n## Development\n\n### Build\n\n```bash\npnpm build\n```\n\n### Development Mode (watch file changes)\n\n```bash\npnpm dev\n```\n\n### Type Check\n\n```bash\npnpm type-check\n```\n\n### Code Formatting\n\n```bash\npnpm prettier:fix\n```\n\n## Dependencies\n\nMain dependencies include:\n\n- `ethers` - EVM chain interaction\n- `near-api-js` - NEAR chain interaction\n- `big.js` / `decimal.js` / `mathjs` - Precise number calculations\n- `lodash` / `ramda` - Utility functions\n- `buffer` - Browser-compatible binary encoding\n\n## License\n\nMIT\n\n## Related Links\n\n- Demo Project: [cross-chain-demo](https://github.com/rhea-finance/cross-chain-demo)\n- Rhea Finance: https://rhea.finance\n\n## Contributing\n\nIssues and Pull Requests are welcome!\n","readmeFilename":"README.md"}