diamondCut
nonpayable
Use this function in your app
const response = await fetch('https://api.thirdweb.com/v1/contracts/write', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-secret-key': '<YOUR_SECRET_KEY>'
},
body: JSON.stringify({
calls: [
{
contractAddress: "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
method: "function diamondCut((address facetAddress, uint8 action, bytes4[] functionSelectors)[] _diamondCut, address _init, bytes _calldata)",
params: [_diamondCut, _init, _calldata]
}
],
chainId: 534352,
from: "<YOUR_WALLET_ADDRESS>"
})
});
const data = await response.json();