useSetAppURI
Set App URI of the 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> );};
function useSetAppURI( contract: RequiredParam<ValidContractInstance>,): UseMutationResult< Omit< { data: () => Promise<unknown>; receipt: providers.TransactionReceipt; }, "data" >, unknown, { uri: string }, unknown>;