Docs

setApprovalForAll

Prepares a transaction to call the "setApprovalForAll" function on the contract.

Example

import { setApprovalForAll } from "thirdweb/extensions/erc1155";
const transaction = setApprovalForAll({
contract,
operator: ...,
approved: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.