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/'); + }); + }); }); });