Beta
an instance of a SmartContract
a mutation object that can be used to update the appURI of a contract
const Component = () => {
const {
mutate: useSetAppURI,
isLoading,
error,
} = useSetAppURI(contract);
if (error) {
console.error("failed to update appURI", error);
}
return (
<button
disabled={isLoading}
onClick={() => useSetAppURI({ uri })}
>
Update App URI
</button>
);
};
AppUR
Generated using TypeDoc
Set App URI