@@ -1431,6 +1431,31 @@ class ZCashTestnet extends Testnet implements UtxoNetwork {
14311431 explorerUrl = 'https://testnet.zcashexplorer.app/transactions/' ;
14321432}
14331433
1434+ /*
1435+ * Pearl is served through @bitgo/wasm-utxo and is deliberately NOT registered as a
1436+ * network in @bitgo/utxo-lib.
1437+ *
1438+ * `utxolibName` is required by UtxoNetwork, so it carries the wasm-utxo `CoinName`
1439+ * instead. It must not be resolved via `utxolib.networks[...]` - that yields
1440+ * undefined for Pearl and throws `TypeError: invalid network` downstream. Use the
1441+ * wasm-utxo coin name directly.
1442+ */
1443+ class Pearl extends Mainnet implements UtxoNetwork {
1444+ name = 'Pearl' ;
1445+ family = CoinFamily . PEARL ;
1446+ /** wasm-utxo CoinName, not a utxo-lib network - see note above */
1447+ utxolibName = 'pearl' ;
1448+ explorerUrl = undefined ;
1449+ }
1450+
1451+ class PearlTestnet extends Testnet implements UtxoNetwork {
1452+ name = 'PearlTestnet' ;
1453+ family = CoinFamily . PEARL ;
1454+ /** wasm-utxo CoinName, not a utxo-lib network - see note above */
1455+ utxolibName = 'tpearl' ;
1456+ explorerUrl = undefined ;
1457+ }
1458+
14341459class Near extends Mainnet implements AccountNetwork {
14351460 name = 'Near' ;
14361461 family = CoinFamily . NEAR ;
@@ -2953,6 +2978,7 @@ export const Networks = {
29532978 plume : Object . freeze ( new Plume ( ) ) ,
29542979 polygon : Object . freeze ( new Polygon ( ) ) ,
29552980 polyx : Object . freeze ( new Polymesh ( ) ) ,
2981+ pearl : Object . freeze ( new Pearl ( ) ) ,
29562982 phrs : Object . freeze ( new Pharos ( ) ) ,
29572983 ctc : Object . freeze ( new Creditcoin ( ) ) ,
29582984 hypeevm : Object . freeze ( new HypeEVM ( ) ) ,
@@ -3087,6 +3113,7 @@ export const Networks = {
30873113 mantra : Object . freeze ( new MantraTestnet ( ) ) ,
30883114 polygon : Object . freeze ( new PolygonTestnet ( ) ) ,
30893115 polyx : Object . freeze ( new PolymeshTestnet ( ) ) ,
3116+ pearl : Object . freeze ( new PearlTestnet ( ) ) ,
30903117 phrs : Object . freeze ( new PharosTestnet ( ) ) ,
30913118 ctc : Object . freeze ( new CreditcoinTestnet ( ) ) ,
30923119 hypeevm : Object . freeze ( new HypeEVMTestnet ( ) ) ,
0 commit comments