@@ -1486,7 +1486,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
14861486 // Get sequence ID using contract call
14871487 // we need to wait between making two explorer api calls to avoid getting banned
14881488 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
1489- const sequenceId = await this . querySequenceId ( params . walletContractAddress ) ;
1489+ const sequenceId = await this . querySequenceId ( params . walletContractAddress , params . apiKey ) ;
14901490
14911491 let operationHash , signature ;
14921492 // Get operation hash and sign it
@@ -1681,7 +1681,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
16811681 ? new optionalDeps . ethUtil . BN ( params . eip1559 . maxFeePerGas )
16821682 : params . gasPrice
16831683 ? new optionalDeps . ethUtil . BN ( this . setGasPrice ( params . gasPrice ) )
1684- : await this . getGasPriceFromExternalAPI ( this . staticsCoin ?. name as string ) ;
1684+ : await this . getGasPriceFromExternalAPI ( this . staticsCoin ?. name as string , params . apiKey ) ;
16851685
16861686 const bitgoFeeAddressNonce = await this . getAddressNonce ( bitgoFeeAddress , params . apiKey ) ;
16871687
@@ -1916,7 +1916,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
19161916 // Get sequence ID using contract call
19171917 // we need to wait between making two explorer api calls to avoid getting banned
19181918 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
1919- const sequenceId = await this . querySequenceId ( params . walletContractAddress ) ;
1919+ const sequenceId = await this . querySequenceId ( params . walletContractAddress , params . apiKey ) ;
19201920
19211921 const txBuilder = this . getTransactionBuilder ( params . common ) as TransactionBuilder ;
19221922 txBuilder . counter ( bitgoFeeAddressNonce ) ;
@@ -1975,7 +1975,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
19751975 params . intendedChain as string ,
19761976 params . bitgoFeeAddress as string ,
19771977 params . walletContractAddress ,
1978- sendData
1978+ sendData ,
1979+ apiKey
19791980 ) ;
19801981 txBuilder . fee ( {
19811982 ...txFee ,
@@ -1984,7 +1985,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
19841985 }
19851986
19861987 // Get the balance of bitgoFeeAddress to ensure funds are available to pay fees
1987- await this . ensureSufficientBalance ( params . bitgoFeeAddress as string , gasPrice , gasLimit ) ;
1988+ await this . ensureSufficientBalance ( params . bitgoFeeAddress as string , gasPrice , gasLimit , params . apiKey ) ;
19881989
19891990 const tx = await txBuilder . build ( ) ;
19901991
0 commit comments