thirdweb

FriendtechSharesV1

Base
basescoutdexguru

Buy Shares

(buyShares)

payable

sharesSubject

amount


The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

Sign in

Use this function in your app


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 });