import * as Abi from 'tevm/Abi'
const abi = [...] // Full contract ABI
const transferFn = Abi.getItem(abi, "transfer", "function")
if (transferFn && transferFn.type === "function") {
const calldata = Abi.Function.encodeParams(transferFn, [to, amount])
await provider.call({ to: contractAddress, data: calldata })
}