@@ -303,10 +303,10 @@ func (s *PrivateAccountAPI) LockAccount(addr common.Address) bool {
303
303
return s .am .Lock (addr ) == nil
304
304
}
305
305
306
- // SignAndSendTransaction will create a transaction from the given arguments and
306
+ // SendTransaction will create a transaction from the given arguments and
307
307
// tries to sign it with the key associated with args.To. If the given passwd isn't
308
308
// able to decrypt the key it fails.
309
- func (s * PrivateAccountAPI ) SignAndSendTransaction (ctx context.Context , args SendTxArgs , passwd string ) (common.Hash , error ) {
309
+ func (s * PrivateAccountAPI ) SendTransaction (ctx context.Context , args SendTxArgs , passwd string ) (common.Hash , error ) {
310
310
var err error
311
311
args , err = prepareSendTxArgs (ctx , args , s .b )
312
312
if err != nil {
@@ -336,6 +336,12 @@ func (s *PrivateAccountAPI) SignAndSendTransaction(ctx context.Context, args Sen
336
336
return submitTransaction (ctx , s .b , tx , signature )
337
337
}
338
338
339
+ // SignAndSendTransaction was renamed to SendTransaction. This method is deprecated
340
+ // and will be removed in the future. It primary goal is to give clients time to update.
341
+ func (s * PrivateAccountAPI ) SignAndSendTransaction (ctx context.Context , args SendTxArgs , passwd string ) (common.Hash , error ) {
342
+ return s .SendTransaction (ctx , args , passwd )
343
+ }
344
+
339
345
// PublicBlockChainAPI provides an API to access the Ethereum blockchain.
340
346
// It offers only methods that operate on public data that is freely available to anyone.
341
347
type PublicBlockChainAPI struct {
0 commit comments