@@ -1503,7 +1503,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
15031503 gasLimit ,
15041504 gasPrice ,
15051505 userKey ,
1506- userSigningKey
1506+ userSigningKey ,
1507+ params . apiKey
15071508 ) ;
15081509 }
15091510
@@ -1543,7 +1544,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
15431544 // Get sequence ID using contract call
15441545 // we need to wait between making two explorer api calls to avoid getting banned
15451546 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
1546- const sequenceId = await this . querySequenceId ( walletContractAddress ) ;
1547+ const sequenceId = await this . querySequenceId ( walletContractAddress , params . apiKey ) ;
15471548
15481549 const network = this . getNetwork ( ) ;
15491550 const batcherContractAddress = network ?. batcherContractAddress as string ;
@@ -1602,7 +1603,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
16021603 params . intendedChain as string ,
16031604 params . bitgoFeeAddress as string ,
16041605 params . walletContractAddress ,
1605- sendData
1606+ sendData ,
1607+ params . apiKey
16061608 ) ;
16071609 txBuilder . fee ( {
16081610 ...txFee ,
@@ -1611,7 +1613,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
16111613 }
16121614
16131615 // Get the balance of bitgoFeeAddress to ensure funds are available to pay fees
1614- await this . ensureSufficientBalance ( bitgoFeeAddress , gasPrice , gasLimit ) ;
1616+ await this . ensureSufficientBalance ( bitgoFeeAddress , gasPrice , gasLimit , params . apiKey ) ;
16151617
16161618 const tx = await txBuilder . build ( ) ;
16171619
@@ -1704,12 +1706,14 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
17041706 gasLimit ,
17051707 gasPrice ,
17061708 userKey ,
1707- userSigningKey
1709+ userSigningKey ,
1710+ apiKey ?: string
17081711 ) {
17091712 // get token balance of wallet
17101713 const txAmount = await this . queryAddressTokenBalance (
17111714 params . tokenContractAddress as string ,
1712- params . walletContractAddress
1715+ params . walletContractAddress ,
1716+ apiKey
17131717 ) ;
17141718
17151719 // build recipients object
0 commit comments