Beta
the contract instance of the contract to call a function on
the name of the function to call
a response object that includes the write function to call
const { contract } = useContract("{{contract_address}}");
const { mutate: myFunction, isLoading, error } = useContractWrite(contract, "myFunction");
// the function can be called as follows:
// myFunction(["param 1", "param 2", ...])
Generated using TypeDoc
Mke a write call to your contract