@@ -22,7 +22,7 @@ async def main() -> None:
2222 priv_key = PrivateKey .from_hex ("f9db9bf330e23cb7839039e944adef6e9df447b90b503d5b4464c90bea9022f3" )
2323 pub_key = priv_key .to_public_key ()
2424 address = pub_key .to_address ()
25- await client .get_account (address .to_acc_bech32 ())
25+ await client .fetch_account (address .to_acc_bech32 ())
2626 subaccount_id = address .get_subaccount_id (index = 0 )
2727 subaccount_id_2 = address .get_subaccount_id (index = 1 )
2828
@@ -118,7 +118,7 @@ async def main() -> None:
118118 tx_raw_bytes = tx .get_tx_data (sig , pub_key )
119119
120120 # broadcast tx: send_tx_async_mode, send_tx_sync_mode, send_tx_block_mode
121- res = await client .send_tx_sync_mode (tx_raw_bytes )
121+ res = await client .broadcast_tx_sync_mode (tx_raw_bytes )
122122 print (res )
123123 print ("gas wanted: {}" .format (gas_limit ))
124124 print ("gas fee: {} INJ" .format (gas_fee ))
@@ -155,7 +155,7 @@ async def main() -> None:
155155 tx_raw_bytes = tx .get_tx_data (sig , pub_key )
156156
157157 # broadcast tx: send_tx_async_mode, send_tx_sync_mode, send_tx_block_mode
158- res = await client .send_tx_sync_mode (tx_raw_bytes )
158+ res = await client .broadcast_tx_sync_mode (tx_raw_bytes )
159159 print (res )
160160 print ("gas wanted: {}" .format (gas_limit ))
161161 print ("gas fee: {} INJ" .format (gas_fee ))
@@ -245,7 +245,7 @@ async def main() -> None:
245245 tx_raw_bytes = tx .get_tx_data (sig , pub_key )
246246
247247 # broadcast tx: send_tx_async_mode, send_tx_sync_mode, send_tx_block_mode
248- res = await client .send_tx_sync_mode (tx_raw_bytes )
248+ res = await client .broadcast_tx_sync_mode (tx_raw_bytes )
249249 print (res )
250250 print ("gas wanted: {}" .format (gas_limit ))
251251 print ("gas fee: {} INJ" .format (gas_fee ))
0 commit comments