diff --git a/core/src/createTransfer.ts b/core/src/createTransfer.ts index 27c518b7..2df459f4 100644 --- a/core/src/createTransfer.ts +++ b/core/src/createTransfer.ts @@ -34,7 +34,7 @@ export interface CreateTransferFields { * @param connection - A connection to the cluster. * @param sender - Account that will send the transfer. * @param fields - Fields of a Solana Pay transfer request URL. - * @param options - Options for `getRecentBlockhash`. + * @param options - Options for `getLatestBlockhash`. * * @throws {CreateTransferError} */ @@ -70,7 +70,7 @@ export async function createTransfer( // Create the transaction const transaction = new Transaction(); transaction.feePayer = sender; - transaction.recentBlockhash = (await connection.getRecentBlockhash(commitment)).blockhash; + transaction.recentBlockhash = (await connection.getLatestBlockhash(commitment)).blockhash; // If a memo is provided, add it to the transaction before adding the transfer instruction if (memo != null) {