Skip to content

@gala-chain/chaincodeReadme | API


@gala-chain/chaincode / authorize

Function: authorize()

authorize(ctx, dto, legacyCAUser): Promise\<object>

Parameters

ctx: GalaChainContext

dto: undefined | ChainCallDTO

legacyCAUser: string

fallback user alias to use then the new flow is not applicable

Returns

Promise\<object>

User alias of the calling user.

alias

alias: string

ethAddress?

optional ethAddress: string

Source

chaincode/src/contracts/authorize.ts:54