useSetAppURI

Set App URI of the contract

Example

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>
);
};

Parameters

Returns

A mutation object to update the appURI of a contract