import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function buyShares(address sharesSubject, uint256 amount) payable",
params: [sharesSubject, amount]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});