@@ -1692,7 +1692,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
16921692 gasLimit ,
16931693 gasPrice ,
16941694 userKey ,
1695- userSigningKey
1695+ userSigningKey ,
1696+ params . apiKey
16961697 ) ;
16971698 }
16981699
@@ -1732,7 +1733,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
17321733 // Get sequence ID using contract call
17331734 // we need to wait between making two explorer api calls to avoid getting banned
17341735 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
1735- const sequenceId = await this . querySequenceId ( walletContractAddress ) ;
1736+ const sequenceId = await this . querySequenceId ( walletContractAddress , params . apiKey ) ;
17361737
17371738 const network = this . getNetwork ( ) ;
17381739 const batcherContractAddress = network ?. batcherContractAddress as string ;
@@ -1791,7 +1792,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
17911792 params . intendedChain as string ,
17921793 params . bitgoFeeAddress as string ,
17931794 params . walletContractAddress ,
1794- sendData
1795+ sendData ,
1796+ params . apiKey
17951797 ) ;
17961798 txBuilder . fee ( {
17971799 ...txFee ,
@@ -1800,7 +1802,7 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
18001802 }
18011803
18021804 // Get the balance of bitgoFeeAddress to ensure funds are available to pay fees
1803- await this . ensureSufficientBalance ( bitgoFeeAddress , gasPrice , gasLimit ) ;
1805+ await this . ensureSufficientBalance ( bitgoFeeAddress , gasPrice , gasLimit , params . apiKey ) ;
18041806
18051807 const tx = await txBuilder . build ( ) ;
18061808
@@ -1893,12 +1895,14 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
18931895 gasLimit ,
18941896 gasPrice ,
18951897 userKey ,
1896- userSigningKey
1898+ userSigningKey ,
1899+ apiKey ?: string
18971900 ) {
18981901 // get token balance of wallet
18991902 const txAmount = await this . queryAddressTokenBalance (
19001903 params . tokenContractAddress as string ,
1901- params . walletContractAddress
1904+ params . walletContractAddress ,
1905+ apiKey
19021906 ) ;
19031907
19041908 // build recipients object
0 commit comments