Moralis JS SDK, Web3 API Native - runContractFunction with parameters

const ABI = [{
  "constant": true,
  "inputs": [
    {
      "internalType": "address",
      "name": "owner",
      "type": "address"
    },
    {
      "internalType": "address",
      "name": "spender",
      "type": "address"
    }
  ],
  "name": "allowance",
  "outputs": [
    {
      "internalType": "uint256",
      "name": "",
      "type": "uint256"
    }
  ],
  "payable": false,
  "stateMutability": "view",
  "type": "function"
}];
const options = {
  chain: "bsc",
  address: "0x...16",
  function_name: "allowance",
  abi: ABI 
};
const allowance = await Moralis.Web3API.native.runContractFunction(options);

How to call the same way the contract function with params?
This “allowance” function call is from Moralis Docs. How does it work without specifying params since the “allowance” function requires two params (owner, spender) to call it?

It looks like Moralis.Web3API.native.runContractFunction doesn’t support params now.
You can use web3 in a cloud function (https://docs.moralis.io/moralis-server/cloud-code/cloud-functions#web3) as a solution to call read only function (Moralis.executeFunction supports parameters):

// get a web3 instance for a specific chain
const web3 = Moralis.web3ByChain(“0x1”); // mainnet

and with web3 you can call a read only function with parameters from a cloud function

examples: