From 761f39ccaee36e555e8fdbe2fa7e644608ef001b Mon Sep 17 00:00:00 2001 From: Alla Gopi Karath Date: Thu, 23 Apr 2026 15:48:28 +0530 Subject: [PATCH] fix(statics): add account explorer url for near Add accountExplorerUrl for Near mainnet and testnet networks so that the explorer link on the gas tanks page resolves correctly. Ticket: CSHLD-684 Co-Authored-By: Claude Sonnet 4.6 --- modules/statics/src/networks.ts | 2 ++ modules/statics/test/unit/networks.ts | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index 7d1daad52e..f0461a9ea5 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -1350,6 +1350,7 @@ class Near extends Mainnet implements AccountNetwork { name = 'Near'; family = CoinFamily.NEAR; explorerUrl = 'https://nearblocks.io/txns/'; + accountExplorerUrl = 'https://nearblocks.io/address/'; feeReserve = '50000000000000000000000'; storageReserve = '2000000000000000000000'; // feeReserve + storageReserve is minimum account balance for a NEAR wallet https://docs.near.org/integrator/faq#is-there-a-minimum-account-balance } @@ -1358,6 +1359,7 @@ class NearTestnet extends Testnet implements AccountNetwork { name = 'NearTestnet'; family = CoinFamily.NEAR; explorerUrl = 'https://testnet.nearblocks.io/txns/'; + accountExplorerUrl = 'https://testnet.nearblocks.io/address/'; feeReserve = '50000000000000000000000'; storageReserve = '2000000000000000000000'; // feeReserve + storageReserve is minimum account balance for a NEAR wallet https://docs.near.org/integrator/faq#is-there-a-minimum-account-balance } diff --git a/modules/statics/test/unit/networks.ts b/modules/statics/test/unit/networks.ts index 65bb5b2e2a..7638a73406 100644 --- a/modules/statics/test/unit/networks.ts +++ b/modules/statics/test/unit/networks.ts @@ -61,6 +61,15 @@ Object.entries(Networks).forEach(([category, networks]) => { Networks.test.ada.accountExplorerUrl.should.equal('https://preprod.cardanoscan.io/address/'); }); }); + + describe('Near Network', function () { + it('should have correct explorer URLs', function () { + Networks.main.near.explorerUrl.should.equal('https://nearblocks.io/txns/'); + Networks.main.near.accountExplorerUrl.should.equal('https://nearblocks.io/address/'); + Networks.test.near.explorerUrl.should.equal('https://testnet.nearblocks.io/txns/'); + Networks.test.near.accountExplorerUrl.should.equal('https://testnet.nearblocks.io/address/'); + }); + }); }); });