Skip to main content
Check out the sdk quickstart guide for help setting up your client.

Usage

Returns

Parameters

channelAddress

  • type: string
The target channel address

logicContract

  • type: string
The address of the logic contract to use. Use DYNAMIC_LOGIC for the default logic contract, or address zero to disable all logic. Disabling logic means that everyone has unlimited interaction credits.

creatorLogic

  • type: DynamicLogicInputs[]
An array of creator logic rules. For the DYNAMIC_LOGIC contract, each rule specifies a target contract, function signature, data, operator, literal operand, interaction power type, and interaction power. Logic rules can be created by hand, or with the UniformInteractionPower and WeightedInteractionPower utilities. Weighted interaction power rules can be used to give more interaction credits to users who hold more tokens. Uniform interaction power rules give the same number of interaction credits to all users who meet the rule’s conditions. If a user meets multiple logic rules, the highest interaction power from all rules is applied.

minterLogic

  • type: DynamicLogicInputs[]
An array of minter logic rules for the DYNAMIC_LOGIC contract. Logic rules can be created by hand, or with the UniformInteractionPower and WeightedInteractionPower utilities. Weighted interaction power rules can be used to give more interaction credits to users who hold more tokens. Uniform interaction power rules give the same number of interaction credits to all users who meet the rule’s conditions. If a user meets multiple logic rules, the highest interaction power from all rules is applied.

transactionOverrides (optional)

  • type: TransactionOverrides
Overrides for the transaction

Calldata

generate calldata for the transaction

Returns

Gas Estimation

Estimate gas for the transaction

Returns