@@ -22,7 +22,7 @@ Local vs Hosted Keys
2222Local Private Key
2323 A key is 32 :class: `bytes ` of data that you can use to sign transactions and messages,
2424 before sending them to your node.
25- You must use :meth: `~web3.eth.Eth.sendRawTransaction `
25+ You must use :meth: `~web3.eth.Eth.send_raw_transaction `
2626 when working with local keys, instead of
2727 :meth: `~web3.eth.Eth.send_transaction ` .
2828
@@ -224,7 +224,7 @@ Sign a Transaction
224224------------------------
225225
226226Create a transaction, sign it locally, and then send it to your node for broadcasting,
227- with :meth: `~web3.eth.Eth.sendRawTransaction `.
227+ with :meth: `~web3.eth.Eth.send_raw_transaction `.
228228
229229.. doctest ::
230230
@@ -249,8 +249,8 @@ with :meth:`~web3.eth.Eth.sendRawTransaction`.
249249 >>> signed.v
250250 37
251251
252- # When you run sendRawTransaction , you get back the hash of the transaction:
253- >>> w3.eth.sendRawTransaction (signed.rawTransaction) # doctest: +SKIP
252+ # When you run send_raw_transaction , you get back the hash of the transaction:
253+ >>> w3.eth.send_raw_transaction (signed.rawTransaction) # doctest: +SKIP
254254 '0xd8f64a42b57be0d565f385378db2f6bf324ce14a594afc05de90436e9ce01f60'
255255
256256Sign a Contract Transaction
@@ -262,7 +262,7 @@ To sign a transaction locally that will invoke a smart contract:
262262#. Build the transaction
263263#. Sign the transaction, with :meth: `w3.eth.account.sign_transaction()
264264 <eth_account.account.Account.sign_transaction> `
265- #. Broadcast the transaction with :meth: `~web3.eth.Eth.sendRawTransaction `
265+ #. Broadcast the transaction with :meth: `~web3.eth.Eth.send_raw_transaction `
266266
267267.. testsetup ::
268268
@@ -317,8 +317,8 @@ To sign a transaction locally that will invoke a smart contract:
317317 >>> signed_txn.v
318318 37
319319
320- >>> w3.eth.sendRawTransaction (signed_txn.rawTransaction) # doctest: +SKIP
320+ >>> w3.eth.send_raw_transaction (signed_txn.rawTransaction) # doctest: +SKIP
321321
322- # When you run sendRawTransaction , you get the same result as the hash of the transaction:
322+ # When you run send_raw_transaction , you get the same result as the hash of the transaction:
323323 >>> w3.toHex(w3.keccak(signed_txn.rawTransaction))
324324 '0x4795adc6a719fa64fa21822630c0218c04996e2689ded114b6553cef1ae36618'
0 commit comments