createParty

nonpayable
Input should be passed in JSON format - Ex: ["0x..."]

Input should be passed in JSON format - Ex: { "governance": { "hosts": ["0x..."], "voteDuration": "0", "executionDelay": "0", "passThresholdBps": "0", "totalVotingPower": "0", "feeBps": "0", "feeRecipient": "0x..." }, "proposalEngine": { "enableAddAuthorityProposal": true, "allowArbCallsToSpendPartyEth": true, "allowOperators": true, "distributionsConfig": "0" }, "name": "...", "symbol": "...", "customizationPresetId": "0" }

Input should be passed in JSON format - Ex: ["0x..."]
Input should be passed in JSON format - Ex: ["0"]

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: "0xB418f5B001Af94A91daB2cE641E39722e1d9dDAC", method: "function createParty(address partyImpl, address[] authorities, ((address[] hosts, uint40 voteDuration, uint40 executionDelay, uint16 passThresholdBps, uint96 totalVotingPower, uint16 feeBps, address feeRecipient) governance, (bool enableAddAuthorityProposal, bool allowArbCallsToSpendPartyEth, bool allowOperators, uint8 distributionsConfig) proposalEngine, string name, string symbol, uint256 customizationPresetId) opts, address[] preciousTokens, uint256[] preciousTokenIds, uint40 rageQuitTimestamp) returns (address party)", params: [partyImpl, authorities, opts, preciousTokens, preciousTokenIds, rageQuitTimestamp] } ], chainId: 84532, from: "<YOUR_WALLET_ADDRESS>" }) }); const data = await response.json();