@@ -111,6 +111,17 @@ public Task<string> SendTransactionAsync(string addressTo, BigInteger value, str
111111 }
112112
113113
114+ // -- Send Raw Transaction ------------------------------------
115+
116+ public Task < string > SendRawTransactionAsync ( string signedTransaction )
117+ {
118+ if ( string . IsNullOrWhiteSpace ( signedTransaction ) )
119+ throw new ArgumentNullException ( nameof ( signedTransaction ) ) ;
120+
121+ return SendRawTransactionAsyncCore ( signedTransaction ) ;
122+ }
123+
124+
114125 // -- Estimate Gas --------------------------------------------
115126
116127 public Task < BigInteger > EstimateGasAsync ( string addressTo , BigInteger value , string data = null )
@@ -133,6 +144,14 @@ public Task<BigInteger> EstimateGasAsync(string contractAddress, string contract
133144 return EstimateGasAsyncCore ( contractAddress , contractAbi , methodName , value , arguments ) ;
134145 }
135146
147+
148+ // -- Gas Price ------------------------------------------------
149+
150+ public Task < BigInteger > GetGasPriceAsync ( )
151+ {
152+ return GetGasPriceAsyncCore ( ) ;
153+ }
154+
136155 protected abstract Task InitializeAsyncCore ( ) ;
137156 protected abstract Task < BigInteger > GetBalanceAsyncCore ( string address ) ;
138157 protected abstract Task < string > SignMessageAsyncCore ( string message ) ;
@@ -142,7 +161,9 @@ public Task<BigInteger> EstimateGasAsync(string contractAddress, string contract
142161 protected abstract Task < TReturn > ReadContractAsyncCore < TReturn > ( string contractAddress , string contractAbi , string methodName , object [ ] arguments = null ) ;
143162 protected abstract Task < string > WriteContractAsyncCore ( string contractAddress , string contractAbi , string methodName , BigInteger value = default , BigInteger gas = default , params object [ ] arguments ) ;
144163 protected abstract Task < string > SendTransactionAsyncCore ( string addressTo , BigInteger value , string data = null ) ;
164+ protected abstract Task < string > SendRawTransactionAsyncCore ( string signedTransaction ) ;
145165 protected abstract Task < BigInteger > EstimateGasAsyncCore ( string addressTo , BigInteger value , string data = null ) ;
146166 protected abstract Task < BigInteger > EstimateGasAsyncCore ( string contractAddress , string contractAbi , string methodName , BigInteger value = default , params object [ ] arguments ) ;
167+ protected abstract Task < BigInteger > GetGasPriceAsyncCore ( ) ;
147168 }
148169}
0 commit comments