Skip to content

@gala-chain/chaincodeAPI


API > configureDexFeeAddress

Function: configureDexFeeAddress()

configureDexFeeAddress(ctx, dto): Promise\<DexFeeConfig>

Configures or updates the authorities for the DEX fee address configuration.

Parameters

ctx: GalaChainContext

GalaChain execution context containing identity and ledger access.

dto: ConfigureDexFeeAddressDto

Data transfer object containing the new authorities.

Returns

The updated or newly created DexFeeConfig.

Throws

ValidationFailedError - If no authorities are provided.

Throws

UnauthorizedError - If the calling user is not from the CuratorOrg MSP or is not an authorized authority.

Source

chaincode/src/dex/setProtocolFee.ts:66