Skip to content

Commit f37d670

Browse files
committed
update the method to fetch recent blockhash
1 parent 2701e65 commit f37d670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/sol_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def withdraw_token(priv, transfer_params: TransferCheckedParams) -> RPCResponse:
5555

5656
def get_blockhash():
5757
solana_client = Client(URL)
58-
response = solana_client.get_recent_blockhash()
58+
response = solana_client.get_latest_blockhash()
5959
try:
6060
blockhash = response['result']['value']['blockhash']
6161
except KeyError as err:

0 commit comments

Comments
 (0)