Hi!
I am trying to implement allowance in runContractFunction but it seems that i made fell!
this is my code:
const abi = [{
constant: true,
inputs: [{“name”: “_owner”, “type”: “address” }, { “name”: “_spender”, “type”: “address” }
],
name: “allowance”,
outputs: [{“name”: “”,“type”: “uint256”}],
payable: false,
stateMutability: “view”,
type: “function”
},
];
const options = {
chain: "bsc",
function_name: "allowance",
abi: abi,
params: { owner: "0xc25C9DCb43984CD99227fA7Bc482dAF19738Dd2e" , spender:"0x642ca54373E44450bC79F4239b914711D70b3F86"},
};
const allowance = await Moralis.Web3API.native.runContractFunction(options);
console.log(allowance);
can you please help me with it?