`async` functions always return a Promise. `await` pauses execution until the promise settles, allowing standard `try...catch` blocks for error handling.
js
async function fetchAccount(addr) {
try {
return await rpc.getAccount(addr);
} catch (err) {
console.error("Lookup failed", err);
}
}